Functions
mip_field.c File Reference
#include "mip_field.h"
#include "mip_packet.h"
#include "mip_offsets.h"
#include "definitions/descriptors.h"
#include <assert.h>
Include dependency graph for mip_field.c:

Go to the source code of this file.

Functions

uint8_t mip_field_descriptor_set (const mip_field *field)
 Returns the descriptor set of the packet containing this field._. More...
 
uint8_t mip_field_field_descriptor (const mip_field *field)
 Returns the field descriptor. More...
 
mip_field mip_field_first_from_packet (const mip_packet *packet)
 Extracts the first field from a MIP packet. More...
 
mip_field mip_field_from_header_ptr (const uint8_t *header, uint8_t total_length, uint8_t descriptor_set)
 Constructs a mip_field from a pointer to the heaader. More...
 
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...
 
void mip_field_init_empty (mip_field *field)
 Initialize a mip_field struct to an invalid/empty state. More...
 
bool mip_field_is_valid (const mip_field *field)
 Returns true if the field has a valid field descriptor. More...
 
bool mip_field_next (mip_field *field)
 Updates the mip_field to refer to the next field in a packet. More...
 
mip_field mip_field_next_after (const mip_field *field)
 Gets the next field after the specified field._. More...
 
bool mip_field_next_in_packet (mip_field *field, const mip_packet *packet)
 Iterates over all fields in a packet. More...
 
const uint8_t * mip_field_payload (const mip_field *field)
 Returns the payload pointer for the field data. More...
 
uint8_t mip_field_payload_length (const mip_field *field)
 Returns the length of the payload. More...
 


microstrain_inertial_driver
Author(s): Brian Bingham, Parker Hannifin Corp
autogenerated on Fri May 24 2024 06:48:22