18#include <fmt/ostream.h>
19#include <nlohmann/json.hpp>
20using json = nlohmann::json;
90struct fmt::formatter<
NAV::UartSensor::Baudrate> : ostream_formatter
nlohmann::json json
json namespace
static int baudrate2Selection(Baudrate baud)
Returns the guiSelection for the given baudrate.
int _selectedBaudrate
Baudrate for the sensor.
UartSensor(const UartSensor &)=delete
Copy constructor.
Baudrate
Available Baudrates.
@ BAUDRATE_115200
Baudrate with 115200 symbols per second [Baud].
@ BAUDRATE_57600
Baudrate with 57600 symbols per second [Baud].
@ BAUDRATE_230400
Baudrate with 230400 symbols per second [Baud].
@ BAUDRATE_FASTEST
Fastest possible Baudrate will be automatically chosen.
@ BAUDRATE_128000
Baudrate with 128000 symbols per second [Baud].
@ BAUDRATE_38400
Baudrate with 38400 symbols per second [Baud].
@ BAUDRATE_9600
Baudrate with 9600 symbols per second [Baud].
@ BAUDRATE_19200
Baudrate with 19200 symbols per second [Baud].
@ BAUDRATE_921600
Baudrate with 921600 symbols per second [Baud].
@ BAUDRATE_460800
Baudrate with 460800 symbols per second [Baud].
UartSensor()=default
Default constructor.
UartSensor & operator=(UartSensor &&)=delete
Move assignment operator.
void restore(const json &j)
Restores the node from a json object.
UartSensor & operator=(const UartSensor &)=delete
Copy assignment operator.
UartSensor(UartSensor &&)=delete
Move constructor.
~UartSensor()=default
Destructor.
Baudrate sensorBaudrate() const
Returns the Baudrate for the element Selected by the GUI.
json save() const
Saves the node into a json object.