0.2.0
|
Abstract Uart Sensor Class. More...
Public Types | |
enum | Baudrate { BAUDRATE_FASTEST , BAUDRATE_9600 , BAUDRATE_19200 , BAUDRATE_38400 , BAUDRATE_57600 , BAUDRATE_115200 , BAUDRATE_128000 , BAUDRATE_230400 , BAUDRATE_460800 , BAUDRATE_921600 } |
Available Baudrates. More... | |
Public Member Functions | |
UartSensor & | operator= (const UartSensor &)=delete |
Copy assignment operator. | |
UartSensor & | operator= (UartSensor &&)=delete |
Move assignment operator. | |
UartSensor (const UartSensor &)=delete | |
Copy constructor. | |
UartSensor (UartSensor &&)=delete | |
Move constructor. | |
~UartSensor ()=default | |
Destructor. | |
Protected Member Functions | |
void | restore (const json &j) |
Restores the node from a json object. | |
json | save () const |
Saves the node into a json object. | |
Baudrate | sensorBaudrate () const |
Returns the Baudrate for the element Selected by the GUI. | |
UartSensor ()=default | |
Default constructor. | |
Static Protected Member Functions | |
static int | baudrate2Selection (Baudrate baud) |
Returns the guiSelection for the given baudrate. | |
Protected Attributes | |
int | _selectedBaudrate |
Baudrate for the sensor. | |
std::string | _sensorPort |
Abstract Uart Sensor Class.
Available Baudrates.
|
staticprotected |
Returns the guiSelection for the given baudrate.
[in] | baud | Baudrate to convert |
|
protected |
Restores the node from a json object.
[in] | j | Json object with the node state |
|
protected |
COM port where the sensor is attached to