MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
9 #if defined MICROSTRAIN_HAS_SPAN
11 #endif // MICROSTRAIN_HAS_SPAN
27 static constexpr
const char*
TYPE =
"None";
32 virtual bool sendToDevice(
const uint8_t* data,
size_t length) = 0;
35 #if defined MICROSTRAIN_HAS_SPAN
40 if (!
recvFromDevice(buffer.data(), buffer.size(), wait_time_ms, &length, timestamp_out))
43 buffer = buffer.first(length);
46 #endif // MICROSTRAIN_HAS_SPAN
const char * mType
Definition: connection.hpp:58
static constexpr const char * TYPE
Definition: connection.hpp:27
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:29
virtual ~Connection()
Definition: connection.hpp:30
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:24
Definition: embedded_time.h:8