|
| | Interface (uint8_t *parseBuffer, size_t parseBufferSize, Timeout parseTimeout, Timeout baseReplyTimeout) |
| | Initialize the mip_interface components. More...
|
| |
| | Interface (microstrain::Connection *connection, uint8_t *parseBuffer, size_t parseBufferSize, 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 | setSendFunction () |
| | Sets the send callback function (free function version). More...
|
| |
| template<bool(*)(Interface &, uint8_t *, size_t, Timeout, size_t *, Timestamp *) Recv> |
| void | setRecvFunction () |
| | Sets the receive callback function (free function version). More...
|
| |
| template<bool(*)(Interface &, Timeout) Update> |
| void | setUpdateFunction () |
| | Sets the update callback function (free function version). More...
|
| |
| template<class Derived , bool(Derived::*)(const uint8_t *, size_t) Send> |
| void | setSendFunction () |
| | Sets the send callback function (derived member function version). More...
|
| |
| template<class Derived , bool(Derived::*)(uint8_t *, size_t, Timeout, size_t *, Timestamp *) Recv> |
| void | setRecvFunction () |
| | Sets the receive callback function (derived member function version). More...
|
| |
| template<class Derived , bool(Derived::*)(Timeout) Update> |
| void | setUpdateFunction () |
| | Sets the update callback function (derived member function version). More...
|
| |
| template<class T , bool(T::*)(const uint8_t *, size_t) Send, bool(T::*)(uint8_t *, size_t, Timeout, size_t *, Timestamp *) Recv, bool(T::*)(Timeout) Update = nullptr> |
| void | setCallbacks (T *object) |
| | Sets the callback functions to a common class object. More...
|
| |
| void | setMaxPacketsPerPoll (unsigned int maxPackets) |
| |
| unsigned int | maxPacketsPerPoll () const |
| |
| 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 (uint8_t *buffer, size_t max_length, Timeout wait_time, size_t *length_out, Timestamp *timestamp) |
| |
| bool | update (Timeout wait_time=0) |
| |
| bool | defaultUpdate (Timeout wait_time=0) |
| |
| size_t | receiveBytes (const uint8_t *data, size_t length, Timestamp timestamp) |
| |
| void | receivePacket (const C::mip_packet_view &packet, Timestamp timestamp) |
| |
| void | processUnparsedPackets () |
| |
| 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) |
| |
Represents a connected MIP device.