Operate in API mode
Frame descriptions
Frame
Field
Offset
Size
16-bit
Description
Bit field that indicates which I/O lines on the remote are
configured as inputs, if any:
15
Sample
mask
bit 0: DIO0
bit 1: DIO1
bit 2: DIO2
bit 3: DIO3
bit 4: DIO4
bit 5: DIO5
bit 6: DIO6
bit 7: DIO7
bit 8: DIO8
bit 9: ADC0
bit 10: ADC1
bit 11: ADC2
bit 12: ADC3
bit 13: N/A
bit 14: N/A
bit 15: N/A
Each bit represents either a DIO line or ADC channel. Bit set to 1
if channel is active.
If the sample set includes any digital I/O lines—Digital channel
mask > 0—this field contain samples for all enabled digital I/O
lines. If no digital lines are configured as inputs or outputs, this
field will be omitted.
17
16-bit
Digital
samples (if
included)
DIO lines that do not have sampling enabled return 0. Bits in
this field are arranged the same as they are in the channel mask
field.
If the sample set includes any analog I/O lines, each enabled
analog input returns a 16-bit value indicating the ADC
measurement of that input.
19
16-bit
variable
Analog
samples (if
included)
Analog samples are ordered sequentially from AD0 to AD3.
EOF
8-bit
Checksum
0xFF minus the 8-bit sum of bytes from offset 3 to this byte
(between length and checksum).
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
130