|
| UsbSerialConnection (const std::string &portName, uint32_t baudrate) |
|
| SerialConnection (std::string portName, uint32_t baudrate) |
| Creates a Serial Connection that will communicate with a device over serial. More...
|
|
| ~SerialConnection () override |
| Closes the underlying serial port. More...
|
|
bool | recvFromDevice (uint8_t *buffer, size_t max_length, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) final |
| Receives bytes from the device. More...
|
|
bool | sendToDevice (const uint8_t *data, size_t length) final |
| Sends bytes to the device. More...
|
|
bool | isConnected () const override |
| Check if the port is connected. More...
|
|
bool | connect () override |
| Connect to the port. More...
|
|
bool | disconnect () override |
| Disconnect from the port. More...
|
|
void | connectionInfo (std::string &name, uint32_t &baudrate) const |
|
uint32_t | baudrate () const |
|
bool | setBaudrate (uint32_t baud) |
| Change the baudrate. More...
|
|
const char * | interfaceName () const override |
|
uint32_t | parameter () const override |
|
| Connection () |
|
virtual | ~Connection () |
|
bool | sendToDeviceSpan (microstrain::Span< const uint8_t > data) |
|
bool | recvFromDeviceSpan (microstrain::Span< uint8_t > buffer, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) |
|
bool | recvFromDeviceSpanUpdate (microstrain::Span< uint8_t > &buffer, unsigned int wait_time_ms, EmbeddedTimestamp *timestamp_out) |
|
const char * | type () const |
|
A serial connection but indicates that it's actually a USB connection.