Classes | Typedefs | Enumerations | Functions
mip_dispatch.h File Reference
#include "mip_types.h"
#include "mip_field.h"
#include "mip_packet.h"
#include "definitions/descriptors.h"
#include <stdbool.h>
Include dependency graph for mip_dispatch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mip_dispatch_handler
 Handler information for MIP Packet or Field callbacks. More...
 
struct  mip_dispatcher
 Holds the state of the MIP dispatch system. More...
 

Typedefs

typedef bool(* mip_dispatch_extractor) (const mip_field *field, void *ptr)
 Signature for extraction callbacks. More...
 
typedef void(* mip_dispatch_field_callback) (void *context, const mip_field *field, mip_timestamp timestamp)
 Signature for field-level callbacks. More...
 
typedef struct mip_dispatch_handler mip_dispatch_handler
 Handler information for MIP Packet or Field callbacks. More...
 
typedef void(* mip_dispatch_packet_callback) (void *context, const mip_packet *packet, mip_timestamp timestamp)
 Signature for packet-level callbacks. More...
 
typedef struct mip_dispatcher mip_dispatcher
 Holds the state of the MIP dispatch system. More...
 

Enumerations

enum  { MIP_DISPATCH_ANY_DATA_SET = 0xFF, MIP_DISPATCH_ANY_DESCRIPTOR = 0x00 }
 

Functions

void mip_dispatch_handler_init_extractor (mip_dispatch_handler *handler, uint8_t descriptor_set, uint8_t field_descriptor, mip_dispatch_extractor extractor, void *field_ptr)
 Initialize the dispatch handler with an extraction callback. More...
 
void mip_dispatch_handler_init_field_handler (mip_dispatch_handler *handler, uint8_t descriptor_set, uint8_t field_descriptor, mip_dispatch_field_callback callback, void *context)
 Initialize the dispatch handler with a field callback. More...
 
void mip_dispatch_handler_init_packet_handler (mip_dispatch_handler *handler, uint8_t descriptor_set, bool after_fields, mip_dispatch_packet_callback callback, void *context)
 Initialize the dispatch handler with a packet callback. More...
 
bool mip_dispatch_handler_is_enabled (mip_dispatch_handler *handler)
 Determines if the handler is currently enabled. More...
 
void mip_dispatch_handler_set_enabled (mip_dispatch_handler *handler, bool enable)
 Enables or disables the handler. More...
 
void mip_dispatcher_add_handler (mip_dispatcher *self, mip_dispatch_handler *handler)
 Registers a handler in the dispatch system. More...
 
void mip_dispatcher_dispatch_packet (mip_dispatcher *self, const mip_packet *packet, mip_timestamp timestamp)
 Called to dispatch the callbacks for a given packet. More...
 
void mip_dispatcher_init (mip_dispatcher *self)
 Initializes the mip_dispatcher object. More...
 
void mip_dispatcher_remove_all_handlers (mip_dispatcher *self)
 Removes all handlers from the dispatcher. More...
 
void mip_dispatcher_remove_handler (mip_dispatcher *self, mip_dispatch_handler *handler)
 Removes a handler from the dispatch system. More...
 


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