General Purpose Flash Memory
General Purpose Flash Memory commands
XBee Wi-Fi RF Module User Guide
80
Byte offset
in payload
Number of
bytes
Field name
General field description
0
1
GPM_CMD_ID
Specific GPM commands are described
in detail in the topics that follow.
1
1
GPM_OPTIONS
Command-specific options.
2
2*
GPM_BLOCK_NUM
The block number addressed in the
GPM.. Ranges from 0 to 159 (0x9F).
4
2*
GPM_START_INDEX
The byte index within the addressed
GPM block.
6
2*
GPM_NUM_BYTES
The number of bytes in the GPM_DATA
field, or in the case of a READ, the
number of bytes requested.
8
varies
GPM_DATA
* Specify multi-byte parameters with big-endian byte ordering.
When a device sends a GPM command to another device via a unicast, the receiving device sends a
unicast response back to the requesting device's source endpoint specified in the request packet. It
does not send a response for broadcast requests. If the source endpoint is set to the DIGI_DEVICE
endpoint (0xE6) or Explicit API mode is enabled on the requesting device, then the requesting node
outputs a GPM response as an explicit API RX indicator frame (assuming it has API mode enabled).
The format of the response is similar to the request packet:
Byte offset in
payload
Number of
bytes
Field name
General field description
0
1
GPM_CMD_ID
This field is the same as the request
field.
1
1
GPM_STATUS
Status indicating whether the
command was successful.
2
2*
GPM_BLOCK_NUM
The block number addressed in the
GPM.. Ranges from 0 to 159 (0x9F).
4
2*
GPM_START_INDEX
The byte index within the addressed
GPM block.
6
2*
GPM_NUM_BYTES
The number of bytes in the GPM_
DATA field.
8
varies
GPM_DATA
* Specify multi-byte parameters with big-endian byte ordering.
General Purpose Flash Memory commands
This section provides information about commands that interact with GPM: