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-rtos mbed EthernetInterface
Diff: xbee.h
- Revision:
- 2:ff0b74e5e62c
- Parent:
- 1:d5fc0c731f5d
--- a/xbee.h Sun Feb 12 17:00:40 2017 +0000 +++ b/xbee.h Sun Feb 12 17:11:58 2017 +0000 @@ -111,7 +111,7 @@ #define RECEIVED_PACKET_DATA_IDX 15 #define RECEIVED_PACKET_MIN_SIZE 12 -// +// Spécifique pour la Remote AT Command Response #define REMOTE_CMD_RSP_64BIT_MSB_IDX 5 #define REMOTE_CMD_RSP_64BIT_LSB_IDX 12 #define REMOTE_CMD_RSP_16BIT_MSB_IDX 13 @@ -121,7 +121,7 @@ #define REMOTE_CMD_RSP_DATA_IDX 18 #define REMOTE_CMD_RSP_MIN_SIZE 14 -// Les status pour la AT Command Response +// Les status pour la Remote AT Command Response #define REMOTE_AT_CMD_RSP_STATUS_OK 0x00 #define REMOTE_AT_CMD_RSP_STATUS_ERROR 0x01 #define REMOTE_AT_CMD_RSP_STATUS_INVALID_CMD 0x02 @@ -174,4 +174,11 @@ return addr; } +inline short Get16Addr(char * buffer, int start){ + short addr = 0; + memcpy(&addr, &buffer[start], ADDR_16BIT_SIZE); + + return addr; +} + #endif \ No newline at end of file