Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Committer:
martydd3
Date:
Tue Oct 21 23:44:15 2014 +0000
Revision:
12:e0adb697fcdb
Parent:
6:6a04210a3f4f
Added Error update thread, changed CAN message IDs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martydd3 6:6a04210a3f4f 1 #ifndef _FILE_DC_DC_H
martydd3 6:6a04210a3f4f 2 #define _FILE_DC_DC_H
martydd3 6:6a04210a3f4f 3
martydd3 6:6a04210a3f4f 4 #include "CANBuffer.h"
martydd3 6:6a04210a3f4f 5 #include "FanPump.h"
martydd3 6:6a04210a3f4f 6 #include "rtos.h"
martydd3 6:6a04210a3f4f 7
martydd3 12:e0adb697fcdb 8 const int TX_DC_DC_ID = ((0x4 << 8) | 0x01);
martydd3 12:e0adb697fcdb 9 const int RX_DC_DC_ID = ((0x4 << 8) | 0x90);
martydd3 6:6a04210a3f4f 10
martydd3 6:6a04210a3f4f 11 class DC{
martydd3 6:6a04210a3f4f 12 public:
martydd3 6:6a04210a3f4f 13 DC(FanPump *fanPump, CANBuffer *can); //constructor takes function to shut down certain processes when off
martydd3 6:6a04210a3f4f 14 bool is_on();
martydd3 6:6a04210a3f4f 15 void set(bool status);
martydd3 6:6a04210a3f4f 16 void start_update();
martydd3 6:6a04210a3f4f 17 };
martydd3 6:6a04210a3f4f 18
martydd3 6:6a04210a3f4f 19 #endif