MIP SDK
0.0.1
MicroStrain Communications Library for embedded systems
|
Represents a type of connection to a MIP device. More...
#include <mip_device.hpp>
Public Member Functions | |
virtual bool | sendToDevice (const uint8_t *data, size_t length)=0 |
virtual bool | recvFromDevice (uint8_t *buffer, size_t max_length, size_t *length_out, Timestamp *timestamp)=0 |
Represents a type of connection to a MIP device.
The following methods are pure virtual and must be implemented by a derived class. These functions map to the corresponding C functions.
bool sendToDevice(const uint8_t* data, size_t length)
- corresponds to mip_interface_user_send_to_device. bool recvFromDevice(uint8_t* buffer, size_t maxLength, size_t* lengthOut, Timestamp* timestampOut)
- corresponds to mip_interface_user_recv_from_device.
|
pure virtual |
Implemented in mip::platform::TcpConnection, and mip::platform::SerialConnection.
|
pure virtual |
Implemented in mip::platform::TcpConnection, and mip::platform::SerialConnection.