A serial connection but indicates that it's actually a USB connection.  
 More...
#include <serial_connection.hpp>
|  | 
|  | 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 | sendBufferToDevice (microstrain::ConstU8ArrayView data) | 
|  | 
| bool | recvBufferFromDevice (microstrain::U8ArrayView buffer, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) | 
|  | 
| bool | recvFromDeviceAndUpdateUint8ArrayView (microstrain::U8ArrayView &buffer, unsigned int wait_time_ms, EmbeddedTimestamp *timestamp_out) | 
|  | 
| const char * | type () const | 
|  | 
|  | 
| static constexpr const char * | TYPE = "USB" | 
|  | 
| static constexpr const char * | TYPE = "Serial" | 
|  | 
| static constexpr const char * | TYPE = "None" | 
|  | 
◆ UsbSerialConnection()
  
  | 
        
          | microstrain::connections::UsbSerialConnection::UsbSerialConnection | ( | const std::string & | portName, |  
          |  |  | uint32_t | baudrate |  
          |  | ) |  |  |  | inline | 
 
 
◆ TYPE
  
  | 
        
          | constexpr const char* microstrain::connections::UsbSerialConnection::TYPE = "USB" |  | staticconstexpr | 
 
 
The documentation for this class was generated from the following file: