Macros | Functions
mip_parser.c File Reference
#include "mip_parser.h"
#include "mip_offsets.h"
#include <assert.h>
Include dependency graph for mip_parser.c:

Go to the source code of this file.

Macros

#define MIPPARSER_RESET_LENGTH   1
 

Functions

mip_packet_callback mip_parser_callback (const mip_parser *parser)
 mip_parser_callback More...
 
void * mip_parser_callback_object (const mip_parser *parser)
 mip_parser_callback More...
 
size_t mip_parser_get_write_ptr (mip_parser *parser, uint8_t **const ptr_out)
 Obtain a pointer into which data may be read for processing. More...
 
void mip_parser_init (mip_parser *parser, uint8_t *buffer, size_t buffer_size, mip_packet_callback callback, void *callback_object, mip_timestamp timeout)
 Initializes the MIP parser. More...
 
mip_timestamp mip_parser_last_packet_timestamp (const mip_parser *parser)
 Gets the timestamp of the last parsed packet. More...
 
size_t mip_parser_parse (mip_parser *parser, const uint8_t *input_buffer, size_t input_count, mip_timestamp timestamp, unsigned int max_packets)
 Parses packets from the input data buffer. More...
 
bool mip_parser_parse_one_packet_from_ring (mip_parser *parser, mip_packet *packet_out, mip_timestamp timestamp)
 Parses a single packet from the internal buffer. More...
 
void mip_parser_process_written (mip_parser *parser, size_t count, mip_timestamp timestamp, unsigned int max_packets)
 Notify the parser that data has been written to the pointer previously obtained via mip_parser_get_write_ptr(). More...
 
void mip_parser_reset (mip_parser *parser)
 Resets the MIP parser. More...
 
void mip_parser_set_callback (mip_parser *parser, mip_packet_callback callback, void *callback_object)
 mip_parser_set_callback More...
 
void mip_parser_set_timeout (mip_parser *parser, mip_timestamp timeout)
 Changes the timeout of the MIP parser. More...
 
mip_timestamp mip_parser_timeout (const mip_parser *parser)
 Returns the packet timeout of the parser. More...
 
mip_timeout mip_timeout_from_baudrate (uint32_t baudrate)
 Computes an appropriate packet timeout for a given serial baud rate. More...
 

Macro Definition Documentation

◆ MIPPARSER_RESET_LENGTH

#define MIPPARSER_RESET_LENGTH   1

Definition at line 9 of file mip_parser.c.



microstrain_inertial_driver
Author(s): Brian Bingham, Parker Hannifin Corp
autogenerated on Mon Jun 24 2024 02:51:40