MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Functions for processing received MIP fields. More...
Modules | |
Mip Field Accessors | |
Functions for inspecting a MIP field. | |
Mip Field Iteration | |
Functions for iterating over fields in a MIP packet. | |
Classes | |
struct | mip::C::mip_field_view |
A structure representing a MIP field. More... | |
Typedefs | |
typedef struct mip::C::mip_field_view | mip::C::mip_field_view |
A structure representing a MIP field. More... | |
Functions | |
void | mip::C::mip_field_init (mip_field_view *field, uint8_t descriptor_set, uint8_t field_descriptor, const uint8_t *payload, uint8_t payload_length) |
Constructs a field view given the parameters. More... | |
Functions for processing received MIP fields.
typedef struct mip::C::mip_field_view mip::C::mip_field_view |
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 instances which reference it (even if the field payload itself is not used directly).
void mip::C::mip_field_init | ( | mip_field_view * | field, |
uint8_t | descriptor_set, | ||
uint8_t | field_descriptor, | ||
const uint8_t * | payload, | ||
uint8_t | payload_length | ||
) |
Constructs a field view 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. |