|
| Interface (Timeout parseTimeout, Timeout baseReplyTimeout) |
| Initialize the mip_interface components. More...
|
|
| Interface (microstrain::Connection *connection, Timeout parseTimeout, Timeout baseReplyTimeout) |
| Initialize the mip_interface components. More...
|
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
| ~Interface ()=default |
|
C::mip_send_callback | sendFunction () const |
|
C::mip_recv_callback | recvFunction () const |
|
C::mip_update_callback | updateFunction () const |
|
void | setSendFunction (C::mip_send_callback callback) |
|
void | setRecvFunction (C::mip_recv_callback callback) |
|
void | setUpdateFunction (C::mip_update_callback function) |
|
template<bool(*)(Interface &, const uint8_t *, size_t) Send> |
void | setSendFunctionFree () |
| Sets the send callback function (free function version). More...
|
|
template<bool(*)(Interface &, microstrain::Span< const uint8_t >) Send> |
void | setSendFunctionFree () |
|
template<bool(*)(Interface &, uint8_t *, size_t, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionFree () |
| Sets the receive callback function (free function version). More...
|
|
template<bool(*)(Interface &, microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionFree () |
|
template<bool(*)(Interface &, Timeout, bool) Update> |
void | setUpdateFunctionFree () |
| Sets the update callback function (free function version). More...
|
|
template<class UserClass , bool(UserClass::*)(const uint8_t *, size_t) Send> |
void | setSendFunctionUserPointer () |
| Sets the send callback function (class member function version w/ ptr & length). More...
|
|
template<class UserClass , bool(UserClass::*)(microstrain::Span< const uint8_t >) Send> |
void | setSendFunctionUserPointer () |
|
template<class UserClass , bool(*)(UserClass *, microstrain::Span< const uint8_t >) Send> |
void | setSendFunctionUserPointer () |
|
template<class UserClass , bool(UserClass::*)(uint8_t *, size_t, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionUserPointer () |
| Sets the receive callback function (class member function version w/ ptr & length). More...
|
|
template<class UserClass , bool(UserClass::*)(microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionUserPointer () |
|
template<class UserClass , bool(*)(UserClass *, microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionUserPointer () |
|
template<class UserClass , bool(UserClass::*)(Timeout, bool) Update> |
void | setUpdateFunctionUserPointer () |
| Sets the update callback function (class member function version). More...
|
|
template<class UserClass , bool(*)(UserClass *, Timeout, bool) Update> |
void | setUpdateFunctionUserPointer () |
|
template<class T , bool(T::*)(microstrain::Span< const uint8_t >) Send, bool(T::*)(microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv, bool(T::*)(Timeout, bool) Update = nullptr> |
void | setCallbacksUserPointer (T *object) |
|
template<class Derived , bool(Derived::*)(microstrain::Span< const uint8_t >) Send> |
void | setSendFunctionDerived () |
| Sets the send callback function (derived member function version). More...
|
|
template<class Derived , bool(Derived::*)(microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv> |
void | setRecvFunctionDerived () |
| Sets the receive callback function (derived member function version). More...
|
|
template<class Derived , bool(Derived::*)(Timeout, bool) Update> |
void | setUpdateFunctionDerived () |
| Sets the update callback function (derived member function version). More...
|
|
template<class Derived , bool(Derived::*)(microstrain::Span< const uint8_t >) Send, bool(Derived::*)(microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv, bool(Derived::*)(Timeout, bool) Update = nullptr> |
void | setCallbacksDerived () |
| Sets the callback functions to a derived class object. More...
|
|
void | setUserPointer (void *ptr) |
| Sets an optional user data pointer which can be retrieved later. More...
|
|
void * | userPointer () |
|
Timeout | baseReplyTimeout () const |
|
void | setBaseReplyTimeout (Timeout timeout) |
|
Parser & | parser () |
|
CmdQueue & | cmdQueue () |
|
const Parser & | parser () const |
|
const CmdQueue & | cmdQueue () const |
|
bool | sendToDevice (const uint8_t *data, size_t length) |
|
bool | sendToDevice (const C::mip_packet_view &packet) |
|
bool | recvFromDevice (microstrain::Span< uint8_t > buffer, Timeout wait_time, bool from_cmd, size_t *length_out, Timestamp *timestamp_out) |
|
bool | update (Timeout wait_time=0, bool from_cmd=false) |
|
bool | defaultUpdate (Timeout wait_time=0, bool from_cmd=false) |
|
bool | defaultUpdateExtBuffer (Timeout wait_time, bool from_cmd, microstrain::Span< uint8_t > buffer) |
|
void | inputBytes (const uint8_t *data, size_t length, Timestamp timestamp) |
|
void | inputPacket (const C::mip_packet_view &packet, Timestamp timestamp) |
|
void | updateTime (Timestamp timestamp) |
|
void | inputBytesAndOrTime (microstrain::Span< const uint8_t > data, Timestamp timestamp) |
|
CmdResult | waitForReply (C::mip_pending_cmd &cmd) |
|
void | registerPacketCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, bool afterFields, C::mip_dispatch_packet_callback callback, void *userData) |
|
void | registerFieldCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, uint8_t fieldDescriptor, C::mip_dispatch_field_callback callback, void *userData) |
|
template<void(*)(void *, const PacketView &, Timestamp) Callback> |
void | registerPacketCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, bool afterFields, void *userData=nullptr) |
| Registers a packet callback (free function version). More...
|
|
template<class Object , void(Object::*)(const PacketView &, Timestamp) Callback> |
void | registerPacketCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, bool afterFields, Object *object) |
| Registers a packet callback (member function version). More...
|
|
template<void(*)(void *, const FieldView &, Timestamp) Callback> |
void | registerFieldCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, uint8_t fieldDescriptor, void *userData=nullptr) |
| Registers a field callback (free function version). More...
|
|
template<class Object , void(Object::*)(const FieldView &field, Timestamp) Callback> |
void | registerFieldCallback (C::mip_dispatch_handler &handler, uint8_t descriptorSet, uint8_t fieldDescriptor, Object *object) |
| Registers a field callback (member function version). More...
|
|
template<class DataField , void(*)(void *, const DataField &, Timestamp) Callback> |
void | registerDataCallback (C::mip_dispatch_handler &handler, void *userData=nullptr, uint8_t descriptorSet=DataField::DESCRIPTOR_SET) |
| Registers a data callback (free function version). More...
|
|
template<class DataField , void(*)(void *, const DataField &, uint8_t, Timestamp) Callback> |
void | registerDataCallback (C::mip_dispatch_handler &handler, void *userData=nullptr, uint8_t descriptorSet=DataField::DESCRIPTOR_SET) |
|
template<class DataField , class Object , void(Object::*)(const DataField &, Timestamp) Callback> |
void | registerDataCallback (C::mip_dispatch_handler &handler, Object *object, uint8_t descriptorSet=DataField::DESCRIPTOR_SET) |
| Registers a data callback (member function version). More...
|
|
template<class DataField , class Object , void(Object::*)(const DataField &, uint8_t, Timestamp) Callback> |
void | registerDataCallback (C::mip_dispatch_handler &handler, Object *object, uint8_t descriptorSet=DataField::DESCRIPTOR_SET) |
|
template<class DataField > |
void | registerExtractor (C::mip_dispatch_handler &handler, DataField *field, uint8_t descriptorSet=DataField::DESCRIPTOR_SET) |
|
template<class Cmd > |
CmdResult | runCommand (const Cmd &cmd, Timeout additionalTime=0) |
|
template<class Cmd , class... Args> |
CmdResult | runCommand (Args &&... args, Timeout additionalTime=0) |
|
template<class Cmd > |
CmdResult | runCommand (const Cmd &cmd, typename Cmd::Response &response, Timeout additionalTime=0) |
|
template<class Cmd > |
bool | startCommand (PendingCmd &pending, const Cmd &cmd, Timeout additionalTime=0) |
|
template<class UserClass , bool(UserClass::*)(microstrain::Span< const uint8_t >) Send, bool(UserClass::*)(microstrain::Span< uint8_t >, Timeout, bool, size_t *, Timestamp *) Recv, bool(UserClass::*)(Timeout, bool) Update> |
void | setCallbacksUserPointer (UserClass *object) |
| Sets the callback functions to a common class object. More...
|
|
Represents a connected MIP device.