Struct hal::serial::settings
ClassList > hal > serial > settings
Generic settings for a standard serial device.
#include <serial.hpp>
Public Types
Type | Name |
---|---|
enum uint8_t | parity Set of parity bit options. |
enum uint8_t | stop_bits Set of available stop bits options. |
Public Attributes
Type | Name |
---|---|
hertz | baud_rate = = 115200.0f The operating speed of the baud rate (in units of bits per second) |
parity | parity = = parity::none Parity bit type for each frame. |
stop_bits | stop = = stop_bits::one Number of stop bits for each frame. |
Public Types Documentation
enum parity [1/2]
enum hal::serial::settings::parity {
none = 0,
odd,
even,
forced1,
forced0
};
enum stop_bits
enum hal::serial::settings::stop_bits {
one = 0,
two
};
Public Attributes Documentation
variable baud_rate
hertz hal::serial::settings::baud_rate;
variable parity [2/2]
parity hal::serial::settings::parity;
variable stop
stop_bits hal::serial::settings::stop;
The documentation for this class was generated from the following file libraries/include/libhal/serial.hpp