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
Libs/XbeeManager/XbeeManager.h@34:18bcf276d3bf, 2015-01-07 (annotated)
- Committer:
- pspatel321
- Date:
- Wed Jan 07 03:25:50 2015 +0000
- Revision:
- 34:18bcf276d3bf
- Parent:
- 33:6bc82b6b62e5
- Child:
- 38:8efacce315ae
Added serial input. Updated glvBat coulomb counter to match AMS, brought in changes to outDiag and inCommands from AMS.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pspatel321 | 33:6bc82b6b62e5 | 1 | #ifndef XBEE_MANAGER_H |
pspatel321 | 33:6bc82b6b62e5 | 2 | #define XBEE_MANAGER_H |
pspatel321 | 33:6bc82b6b62e5 | 3 | |
pspatel321 | 33:6bc82b6b62e5 | 4 | #include "mbed.h" |
pspatel321 | 33:6bc82b6b62e5 | 5 | #include "CAN-xbee.h" |
pspatel321 | 33:6bc82b6b62e5 | 6 | |
pspatel321 | 33:6bc82b6b62e5 | 7 | class XbeeManager { |
pspatel321 | 33:6bc82b6b62e5 | 8 | public: |
pspatel321 | 34:18bcf276d3bf | 9 | XbeeManager(PinName tx1, PinName rx1, PinName tx2, PinName rx2, int baud, int txSize, int rxSize); |
pspatel321 | 33:6bc82b6b62e5 | 10 | bool send(CANMessage &msg); |
pspatel321 | 33:6bc82b6b62e5 | 11 | bool receive(CANMessage &msg); |
pspatel321 | 33:6bc82b6b62e5 | 12 | unsigned int counterX1in; |
pspatel321 | 33:6bc82b6b62e5 | 13 | unsigned int counterX2in; |
pspatel321 | 33:6bc82b6b62e5 | 14 | unsigned int counterX1out; |
pspatel321 | 33:6bc82b6b62e5 | 15 | unsigned int counterX2out; |
pspatel321 | 33:6bc82b6b62e5 | 16 | |
pspatel321 | 33:6bc82b6b62e5 | 17 | private: |
pspatel321 | 33:6bc82b6b62e5 | 18 | bool alternate; |
pspatel321 | 34:18bcf276d3bf | 19 | CANxbee x1; |
pspatel321 | 34:18bcf276d3bf | 20 | CANxbee x2; |
pspatel321 | 33:6bc82b6b62e5 | 21 | CANMessage extra; |
pspatel321 | 33:6bc82b6b62e5 | 22 | bool extraAvail; |
pspatel321 | 33:6bc82b6b62e5 | 23 | }; |
pspatel321 | 33:6bc82b6b62e5 | 24 | |
pspatel321 | 33:6bc82b6b62e5 | 25 | #endif |