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.
Fork of xbee_api by
Diff: xbeeFrame.h
- Revision:
- 10:61e607fa8621
- Parent:
- 9:08ccd085662f
- Child:
- 11:c8737cf52430
--- a/xbeeFrame.h Sun Jan 26 15:00:52 2014 +0000 +++ b/xbeeFrame.h Sun Jan 26 17:19:28 2014 +0000 @@ -1,3 +1,11 @@ +#define FRAME_SIZE 127 +#define STARTBYTE 0x7E +#define MAX_DATA_LEN 70 + +#define TX_STATUS 0x89 +#define TX_REQUEST_64 0x00 +#define RX_PACKET_64 0x80 + class xbeeFrame : public xbee { private: @@ -44,6 +52,14 @@ * @return Returns the length of the packet */ int GetLength(void); + /** Get the type of the frame + * @return Returns the type of the packet + */ + int GetType(void); + /** Get the status of the sent frame + * @return Returns the status of sent packet + */ + int GetStatus(void); /** Set the packet destination address * @param dest_address Pointer to a array storing destination address */