I/O support
I/O sample data format
Digi XBee® 3 802.15.4 RF Module User Guide
94
Bytes Name
Description
2
Digital
data set
Each bit in the digital data set corresponds to a digital bit in the channel mask
and indicates the state of the digital pin, whether high (1) or low (0).
If the digital portion of the channel mask is
0
, then these two bytes are omitted
as no
lines are enabled.
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 = N/A
bit 10 = N/A
bit 11 = N/A
bit 12 = N/A
bit 13 = N/A
bit 14 = N/A
bit 15 = N/A
2
Analog
data set
(multiple)
Each enabled
in the analog portion of the channel mask has a separate
2-byte value based on the number of ADC inputs on the originating device. The
data starts with AD0 and continues sequentially for each enabled analog input
channel up to AD3.
If the analog portion of the channel mask is
0
, then no analog sample bytes are
included.
Enhanced data format
If you set
AO
to
0
or
1
on both the source and destination node, then the data format is represented
as a series of bytes in the following format which matches the DigiMesh and Zigbee firmwares:
Bytes Name
Description
1
Sample
sets
Number of sample sets. There is always one sample set per frame.