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
Diff: Libs/XbeeManager/XbeeManager.h
- Revision:
- 33:6bc82b6b62e5
- Child:
- 34:18bcf276d3bf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Libs/XbeeManager/XbeeManager.h Tue Jan 06 20:45:26 2015 +0000 @@ -0,0 +1,25 @@ +#ifndef XBEE_MANAGER_H +#define XBEE_MANAGER_H + +#include "mbed.h" +#include "CAN-xbee.h" + +class XbeeManager { +public: + XbeeManager(CANxbee* x1, CANxbee* x2); + bool send(CANMessage &msg); + bool receive(CANMessage &msg); + unsigned int counterX1in; + unsigned int counterX2in; + unsigned int counterX1out; + unsigned int counterX2out; + +private: + bool alternate; + CANxbee* x1; + CANxbee* x2; + CANMessage extra; + bool extraAvail; +}; + +#endif \ No newline at end of file