34#define ZEP_PORT_DEFAULT (17754)
39#define ZEP_V2_TYPE_DATA (1)
44#define ZEP_V2_TYPE_ACK (2)
49#define ZEP_LENGTH_MASK (0x7f)
54typedef struct __attribute__((packed)) {
64typedef struct __attribute__((packed)) {
78typedef struct __attribute__((packed)) {
95typedef struct __attribute__((packed)) {
Functions to work with different byte orders.
be_uint32_t network_uint32_t
A 32 bit integer in network byte order.
be_uint16_t network_uint16_t
A 16 bit integer in network byte order.
Common macros and compiler attributes/pragmas configuration.
#define NONSTRING
The NONSTRING keyword tells the compiler to assume that a char array is not used as c string.
uint8_t version
Protocol Version (must be 1 or 2)
NONSTRING char preamble[2]
Preamble code (must be "EX")
uint8_t lqi_mode
CRC/LQI Mode (0: append LQI to frame, 1: append FCS)
uint8_t lqi_val
LQI value.
network_uint16_t dev
device ID
zep_hdr_t hdr
common header fields
uint8_t length
length of the frame
uint8_t resv[7]
reserved field, must always be 0
ZEPv2 header definition (type == Ack)
network_uint32_t seq
Sequence number.
zep_hdr_t hdr
common header fields
uint8_t type
type (must be ZEP_V2_TYPE_ACK)
ZEPv2 header definition (type == Data)
ntp_timestamp_t time
NTP timestamp.
zep_hdr_t hdr
common header fields
uint8_t type
type (must be ZEP_V2_TYPE_DATA)
uint8_t lqi_val
LQI value.
uint8_t resv[10]
reserved field, must always be 0
network_uint16_t dev
device ID
uint8_t length
length of the frame
network_uint32_t seq
Sequence number.
uint8_t lqi_mode
CRC/LQI Mode.