MIP Parser state. More...
#include <mip_parser.h>
Private Attributes | |
mip_packet_callback | _callback |
Callback called when a valid packet is parsed. Can be NULL. More... | |
void * | _callback_object |
User-specified pointer passed to the callback function. More... | |
packet_length | _expected_length |
Expected length of the packet currently being parsed. Keeps track of parser state. Always 1, MIP_HEADER_LENGTH, or at least MIP_PACKET_LENGTH_MAX. More... | |
uint8_t | _result_buffer [MIP_PACKET_LENGTH_MAX] |
Buffer used to output MIP packets to the callback. More... | |
byte_ring_state | _ring |
Ring buffer which holds data being parsed. User-specified backing buffer and size. More... | |
timestamp_type | _start_time |
The timestamp when the first byte was observed by the parser. More... | |
timestamp_type | _timeout |
Duration to wait for the rest of the data in a packet. More... | |
MIP Parser state.
Definition at line 55 of file mip_parser.h.
|
private |
Callback called when a valid packet is parsed. Can be NULL.
Definition at line 62 of file mip_parser.h.
|
private |
User-specified pointer passed to the callback function.
Definition at line 63 of file mip_parser.h.
|
private |
Expected length of the packet currently being parsed. Keeps track of parser state. Always 1, MIP_HEADER_LENGTH, or at least MIP_PACKET_LENGTH_MAX.
Definition at line 60 of file mip_parser.h.
|
private |
Buffer used to output MIP packets to the callback.
Definition at line 59 of file mip_parser.h.
|
private |
Ring buffer which holds data being parsed. User-specified backing buffer and size.
Definition at line 61 of file mip_parser.h.
|
private |
The timestamp when the first byte was observed by the parser.
Definition at line 57 of file mip_parser.h.
|
private |
Duration to wait for the rest of the data in a packet.
Definition at line 58 of file mip_parser.h.