MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
105 uint8_t _descriptor_set;
106 uint8_t _field_descriptor;
@ MIP_DISPATCH_ANY_DATA_SET
Definition: mip_dispatch.h:70
void(* mip_dispatch_field_callback)(void *context, const mip_field_view *field, mip_timestamp timestamp)
Signature for field-level callbacks.
Definition: mip_dispatch.h:54
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
void mip_dispatcher_remove_handler(mip_dispatcher *self, mip_dispatch_handler *handler)
Removes a handler from the dispatch system.
Definition: mip_dispatch.c:210
@ MIP_DISPATCH_ANY_DESCRIPTOR
Definition: mip_dispatch.h:74
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.
Definition: mip_dispatch.c:131
Structure representing a MIP Packet.
Definition: mip_packet.h:50
Holds the state of the MIP dispatch system.
Definition: mip_dispatch.h:130
struct mip::C::mip_dispatch_handler mip_dispatch_handler
Handler information for MIP Packet or Field callbacks.
void mip_dispatcher_init(mip_dispatcher *self)
Initializes the mip_dispatcher object.
Definition: mip_dispatch.c:178
void(* mip_dispatch_packet_callback)(void *context, const mip_packet_view *packet, mip_timestamp timestamp)
Signature for packet-level callbacks.
Definition: mip_dispatch.h:45
void mip_dispatcher_add_handler(mip_dispatcher *self, mip_dispatch_handler *handler)
Registers a handler in the dispatch system.
Definition: mip_dispatch.c:189
bool mip_dispatch_handler_is_enabled(mip_dispatch_handler *handler)
Determines if the handler is currently enabled.
Definition: mip_dispatch.c:166
A structure representing a MIP field.
Definition: mip_field.h:52
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 *user_data)
Initialize the dispatch handler with a field callback.
Definition: mip_dispatch.c:86
void mip_dispatch_handler_init_packet_handler(mip_dispatch_handler *handler, uint8_t descriptor_set, bool post_callback, mip_dispatch_packet_callback callback, void *user_data)
Initialize the dispatch handler with a packet callback.
Definition: mip_dispatch.c:51
void mip_dispatcher_dispatch_packet(mip_dispatcher *self, const mip_packet_view *packet, mip_timestamp timestamp)
Called to dispatch the callbacks for a given packet.
Definition: mip_dispatch.c:353
Handler information for MIP Packet or Field callbacks.
Definition: mip_dispatch.h:94
microstrain::C::microstrain_embedded_timestamp mip_timestamp
Definition: mip_types.h:15
bool(* mip_dispatch_extractor)(const mip_field_view *field, void *ptr)
Signature for extraction callbacks.
Definition: mip_dispatch.h:62
struct mip::C::mip_dispatcher mip_dispatcher
Holds the state of the MIP dispatch system.
void mip_dispatcher_remove_all_handlers(mip_dispatcher *self)
Removes all handlers from the dispatcher.
Definition: mip_dispatch.c:239
void mip_dispatch_handler_set_enabled(mip_dispatch_handler *handler, bool enable)
Enables or disables the handler.
Definition: mip_dispatch.c:156