System Management code
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
serviceCAN/serviceCAN.h@33:6bc82b6b62e5, 2015-01-06 (annotated)
- Committer:
- pspatel321
- Date:
- Tue Jan 06 20:45:26 2015 +0000
- Revision:
- 33:6bc82b6b62e5
- Parent:
- 30:91af74a299e1
Updated IDs to match AMS, added a constants.h file.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pspatel321 | 30:91af74a299e1 | 1 | #ifndef _SERVICE_CAN_H |
pspatel321 | 30:91af74a299e1 | 2 | #define _SERVICE_CAN_H |
pspatel321 | 30:91af74a299e1 | 3 | |
pspatel321 | 30:91af74a299e1 | 4 | #include "IOobjects.h" |
pspatel321 | 30:91af74a299e1 | 5 | |
pspatel321 | 30:91af74a299e1 | 6 | const int DEVICE_CAN_TIMEOUT = 0.25; // Comms. lost to external device if a message is not received within 200 ms |
pspatel321 | 30:91af74a299e1 | 7 | |
pspatel321 | 30:91af74a299e1 | 8 | namespace canbus { |
pspatel321 | 33:6bc82b6b62e5 | 9 | bool serviceCAN(CANMessage* fromXbee=0); |
pspatel321 | 33:6bc82b6b62e5 | 10 | bool receiveMsgXbee(); |
pspatel321 | 30:91af74a299e1 | 11 | } |
pspatel321 | 30:91af74a299e1 | 12 | |
pspatel321 | 30:91af74a299e1 | 13 | #endif |