modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h
asxeem/openaliro
Module
aliro_uwb_msg_parser.h
TLV attribute iteration and big-endian reads.
Overview
TLV attribute iteration and big-endian reads.
depends on aliro_uwb_msg_spec.h aliro_uwb_session.h · used by aliro_uwb_msg.c aliro_uwb_msg_parser.c
API
Cstruct aliro_uwb_msg_attribute
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:19
A single type/length/value attribute overlaid on message bytes.
id- Attribute identifier.
length- Length of value in bytes.
value- Variable-length attribute value.
Cstruct aliro_uwb_msg_parser
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:31
Cursor walking the attributes of one message payload.
length- Total length of the message in bytes.
offset- Current parse offset in bytes.
data- Message bytes being walked.
Fstruct aliro_uwb_msg_attribute * aliro_uwb_msg_next_attribute(struct aliro_uwb_msg_parser *parser)
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:46
Advance to the next attribute; NULL at end-of-payload or on overrun.
Fbool aliro_uwb_msg_read_u8(const struct aliro_uwb_msg_attribute *attr, const char *name, uint8_t *out)
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:49
Fbool aliro_uwb_msg_read_u16(const struct aliro_uwb_msg_attribute *attr, const char *name, uint16_t *out)
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:51
Fbool aliro_uwb_msg_read_u32(const struct aliro_uwb_msg_attribute *attr, const char *name, uint32_t *out)
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:53
Fbool aliro_uwb_msg_read_u64(const struct aliro_uwb_msg_attribute *attr, const char *name, uint64_t *out)
modules/woz_uwb/src/aliro/aliro_uwb_msg_parser.h:55