ZigBee Encapsulation Protocol¶
Provides definitions for the ZigBee Encapsulation Protocol (ZEP)
-
ZEP_PORT_DEFAULT
¶ default ZEP port
1
(17754)
-
ZEP_V2_TYPE_DATA
¶ Type == Data for ZEPv2 header.
1
(1)
-
ZEP_V2_TYPE_ACK
¶ Type == Ack for ZEPv2 header.
1
(2)
-
ZEP_LENGTH_MASK
¶ Mask for length field.
1
(0x7f)
-
struct
zep_hdr_t
¶ ZEP header definition.
-
char
preamble
()¶ Preamble code (must be “EX”)
-
uint8_t
version
¶ Protocol Version (must be 1 or 2)
-
char
-
struct
zep_v1_hdr_t
¶ ZEPv1 header definition.
-
uint8_t
chan
¶ channel ID
-
byteorder.h::network_uint16_t
dev
¶ device ID
-
uint8_t
lqi_mode
¶ CRC/LQI Mode (0: append LQI to frame, 1: append FCS)
-
uint8_t
lqi_val
¶ LQI value.
-
uint8_t
resv
()¶ reserved field, must always be 0
-
uint8_t
length
¶ length of the frame
-
uint8_t
-
struct
zep_v2_data_hdr_t
¶ ZEPv2 header definition (type == Data)
-
uint8_t
type
¶ type (must be
zep.h::ZEP_V2_TYPE_DATA
)
-
uint8_t
chan
¶ channel ID
-
byteorder.h::network_uint16_t
dev
¶ device ID
-
uint8_t
lqi_mode
¶ CRC/LQI Mode.
-
uint8_t
lqi_val
¶ LQI value.
-
ntp_timestamp_t
time
¶ NTP timestamp.
-
byteorder.h::network_uint32_t
seq
¶ Sequence number.
-
uint8_t
resv
()¶ reserved field, must always be 0
-
uint8_t
length
¶ length of the frame
-
uint8_t
-
struct
zep_v2_ack_hdr_t
¶ ZEPv2 header definition (type == Ack)
-
uint8_t
type
¶ type (must be
zep.h::ZEP_V2_TYPE_ACK
)
-
byteorder.h::network_uint32_t
seq
¶ Sequence number.
-
uint8_t