MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
9 #ifdef MICROSTRAIN_HAS_SPAN
29 static constexpr
auto TYPE =
"None";
34 virtual bool sendToDevice(
const uint8_t* data,
size_t length) = 0;
37 #ifdef MICROSTRAIN_HAS_SPAN
41 if(!
recvFromDevice(buffer.data(), buffer.size(), wait_time_ms, &length, timestamp_out))
43 buffer = buffer.first(length);
const char * mType
Definition: connection.hpp:59
const char * type() const
Definition: connection.hpp:52
virtual const char * interfaceName() const =0
virtual bool sendToDevice(const uint8_t *data, size_t length)=0
Sends bytes to the device.
virtual uint32_t parameter() const =0
virtual bool recvFromDevice(uint8_t *buffer, size_t max_length, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out)=0
Receives bytes from the device.
Connection()
Definition: connection.hpp:31
static constexpr auto TYPE
Definition: connection.hpp:29
virtual ~Connection()
Definition: connection.hpp:32
C::microstrain_embedded_timestamp EmbeddedTimestamp
Definition: embedded_time.hpp:9
virtual bool disconnect()=0
virtual bool isConnected() const =0
Represents a type of connection.
Definition: connection.hpp:25
Definition: embedded_time.h:8