a
Fork of xbee_api by
Diff: xbee.h
- Revision:
- 7:8e5855f18ad3
- Parent:
- 4:ede20c047d8b
- Child:
- 10:61e607fa8621
--- a/xbee.h Wed Aug 29 14:34:53 2012 +0000 +++ b/xbee.h Sat Jan 25 16:29:44 2014 +0000 @@ -17,6 +17,14 @@ */ #include "mbed.h" +#define FRAME_SIZE 127 +#define STARTBYTE 0x7E +#define MAX_DATA_LEN 70 + +#define TX_STATUS 0x89 +#define TX_REQUEST_64 000 +#define RX_PACKET_64 0x80 + /** Xbee interface class for configuring, sending and recieving data using an Xbee */ class xbee { @@ -24,6 +32,7 @@ PinName _tx; PinName _rx; PinName _reset; + public: /** Configure serial data pin. * @param tx The serial tx pin the xbee is conected to. @@ -73,5 +82,4 @@ /** Resets the Xbee. */ void Reset(); - }; \ No newline at end of file