![]() |
0.5.1
|
Abstract Uart Sensor Class. More...
Public Types | |
| enum | Baudrate : uint32_t { BAUDRATE_FASTEST , BAUDRATE_9600 , BAUDRATE_19200 , BAUDRATE_38400 , BAUDRATE_57600 , BAUDRATE_115200 , BAUDRATE_128000 , BAUDRATE_230400 , BAUDRATE_460800 , BAUDRATE_921600 , BAUDRATE_2000000 } |
| 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.
Definition at line 25 of file UartSensor.hpp.
| enum NAV::UartSensor::Baudrate : uint32_t |
Available Baudrates.
| Enumerator | |
|---|---|
| BAUDRATE_FASTEST | Fastest possible Baudrate will be automatically chosen. |
| BAUDRATE_9600 | Baudrate with 9600 symbols per second [Baud]. |
| BAUDRATE_19200 | Baudrate with 19200 symbols per second [Baud]. |
| BAUDRATE_38400 | Baudrate with 38400 symbols per second [Baud]. |
| BAUDRATE_57600 | Baudrate with 57600 symbols per second [Baud]. |
| BAUDRATE_115200 | Baudrate with 115200 symbols per second [Baud]. |
| BAUDRATE_128000 | Baudrate with 128000 symbols per second [Baud]. |
| BAUDRATE_230400 | Baudrate with 230400 symbols per second [Baud]. |
| BAUDRATE_460800 | Baudrate with 460800 symbols per second [Baud]. |
| BAUDRATE_921600 | Baudrate with 921600 symbols per second [Baud]. |
| BAUDRATE_2000000 | Baudrate with 2000000 symbols per second [Baud]. |
Definition at line 29 of file UartSensor.hpp.
|
default |
Destructor.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
protecteddefault |
Default constructor.
|
staticprotected |
Returns the guiSelection for the given baudrate.
| [in] | baud | Baudrate to convert |
Definition at line 83 of file UartSensor.cpp.
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
protected |
Restores the node from a json object.
| [in] | j | Json object with the node state |
Definition at line 25 of file UartSensor.cpp.
|
nodiscardprotected |
Saves the node into a json object.
Definition at line 13 of file UartSensor.cpp.
|
nodiscardprotected |
Returns the Baudrate for the element Selected by the GUI.
Definition at line 41 of file UartSensor.cpp.
|
protected |
Baudrate for the sensor.
Definition at line 83 of file UartSensor.hpp.
|
protected |
COM port where the sensor is attached to
Definition at line 80 of file UartSensor.hpp.