Functions for processing received MIP fields. More...
Modules | |
Field Accessors [C] | |
Functions for inspecting a MIP field. | |
Field Iteration [C] | |
Functions for iterating over fields in a MIP packet. | |
Classes | |
struct | mip_field |
A structure representing a MIP field. More... | |
Typedefs | |
typedef struct mip_field | mip_field |
A structure representing a MIP field. More... | |
Functions | |
void | mip_field_init (mip_field *field, uint8_t descriptor_set, uint8_t field_descriptor, const uint8_t *payload, uint8_t payload_length) |
Constructs a mip_field given the parameters. More... | |
Functions for processing received MIP fields.
A structure representing a MIP field.
Use to access fields from a received MIP packet.
This structure references the original packet data and does not contain a copy of the field payload. Therefore, the data buffer must exist as long as there are mip_field instances which reference it (even if the field payload itself is not used directly).
void mip_field_init | ( | mip_field * | field, |
uint8_t | descriptor_set, | ||
uint8_t | field_descriptor, | ||
const uint8_t * | payload, | ||
uint8_t | payload_length | ||
) |
Constructs a mip_field given the parameters.
field | |
descriptor_set | The MIP descriptor set of the packet. |
field_descriptor | The MIP field descriptor. |
payload | A pointer to a buffer containing the field payload, not including the field header. The data must exist while the field is in use. Can be NULL if payload_length is 0. |
payload_length | The length of the payload. Cannot exceed MIP_FIELD_PAYLOAD_LENGTH_MAX. |
Definition at line 28 of file mip_field.c.