Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
CANController/DC_DC/DC_DC.h@22:fc802e7715f8, 2014-11-07 (annotated)
- Committer:
- martydd3
- Date:
- Fri Nov 07 21:09:50 2014 +0000
- Revision:
- 22:fc802e7715f8
CANController to link DC_DC and FanPump, as well as listen to CAN Messages (since only these 2 functions act based on incoming messages)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| martydd3 | 22:fc802e7715f8 | 1 | #ifndef _FILE_DC_DC_H |
| martydd3 | 22:fc802e7715f8 | 2 | #define _FILE_DC_DC_H |
| martydd3 | 22:fc802e7715f8 | 3 | |
| martydd3 | 22:fc802e7715f8 | 4 | #include "CANBuffer.h" |
| martydd3 | 22:fc802e7715f8 | 5 | #include "FanPump.h" |
| martydd3 | 22:fc802e7715f8 | 6 | #include "rtos.h" |
| martydd3 | 22:fc802e7715f8 | 7 | |
| martydd3 | 22:fc802e7715f8 | 8 | const int TX_DC_DC_ID = ((0x4 << 8) | 0x01); |
| martydd3 | 22:fc802e7715f8 | 9 | const int RX_DC_DC_ID = ((0x4 << 8) | 0x90); |
| martydd3 | 22:fc802e7715f8 | 10 | |
| martydd3 | 22:fc802e7715f8 | 11 | class DC{ |
| martydd3 | 22:fc802e7715f8 | 12 | public: |
| martydd3 | 22:fc802e7715f8 | 13 | DC(); //constructor takes function to shut down certain processes when off |
| martydd3 | 22:fc802e7715f8 | 14 | bool is_on(); |
| martydd3 | 22:fc802e7715f8 | 15 | void set(bool status); |
| martydd3 | 22:fc802e7715f8 | 16 | }; |
| martydd3 | 22:fc802e7715f8 | 17 | |
| martydd3 | 22:fc802e7715f8 | 18 | #endif |
