33#define ZEP_PORT_DEFAULT (17754)
38#define ZEP_V2_TYPE_DATA (1)
43#define ZEP_V2_TYPE_ACK (2)
48#define ZEP_LENGTH_MASK (0x7f)
53typedef struct __attribute__((packed)) {
62typedef struct __attribute__((packed)) {
76typedef struct __attribute__((packed)) {
93typedef struct __attribute__((packed)) {
Functions to work with different byte orders.
uint8_t version
Protocol Version (must be 1 or 2)
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
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.
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.
A 16 bit integer in big endian aka network byte order.
A 32 bit integer in big endian aka network byte order.