Classes | |
class | Capabilities |
Serial device driver capabilities. More... | |
class | Modem_status |
Serial modem status More... | |
class | Status |
Serial port status More... | |
Typedefs | |
using | bit_number_t = uint32_t |
using | config_arg_t = uint32_t |
using | config_t = uint32_t |
using | control_arg_t = uint32_t |
using | control_t = uint32_t |
using | modem_config_t = uint32_t |
Enumerations | |
enum | Control : control_t { enable_tx = (0x15UL << CONFIG_Pos) , enable_rx = (0x16UL << CONFIG_Pos) , enable_break = (0x17UL << CONFIG_Pos) , abort_send = (0x18UL << CONFIG_Pos) , abort_receive = (0x19UL << CONFIG_Pos) , abort_transfer = (0x1AUL << CONFIG_Pos) , disable_tx = (0x25UL << CONFIG_Pos) , disable_rx = (0x26UL << CONFIG_Pos) , disable_break = (0x27UL << CONFIG_Pos) } |
enum | Event : event_t { send_complete = (1UL << 0) , receive_complete = (1UL << 1) , transfer_complete = (1UL << 2) , tx_complete = (1UL << 3) , tx_underflow = (1UL << 4) , rx_overflow = (1UL << 5) , rx_timeout = (1UL << 6) , rx_break = (1UL << 7) , rx_framing_error = (1UL << 8) , rx_parity_error = (1UL << 9) , cts = (1UL << 10) , dsr = (1UL << 11) , dcd = (1UL << 12) , ri = (1UL << 13) } |
Serial Events. More... | |
enum class | Modem_control : modem_config_t { clear_rts , set_rts , clear_dtr , set_dtr } |
Configuration to change the serial modem lines. More... | |
Functions | |
constexpr config_t | CONFIG_Msk (0xFFUL<< CONFIG_Pos) |
Variables | |
constexpr bit_number_t | CONFIG_Pos = 0 |
constexpr config_t | CPHA0 = (0UL << CPHA_Pos) |
CPHA = 1. | |
constexpr config_t | CPHA1 = (1UL << CPHA_Pos) |
constexpr config_t | CPHA_Msk = (1UL << CPHA_Pos) |
CPHA = 0 = (default);. | |
constexpr bit_number_t | CPHA_Pos = 19 |
constexpr config_t | CPOL0 = (0UL << CPOL_Pos) |
CPOL = 1. | |
constexpr config_t | CPOL1 = (1UL << CPOL_Pos) |
constexpr config_t | CPOL_Msk = (1UL << CPOL_Pos) |
CPOL = 0 = (default);. | |
constexpr bit_number_t | CPOL_Pos = 18 |
constexpr config_t | DATA_BITS_5 = (5UL << DATA_BITS_Pos) |
6 Data bit | |
constexpr config_t | DATA_BITS_6 = (6UL << DATA_BITS_Pos) |
7 Data bits | |
constexpr config_t | DATA_BITS_7 = (7UL << DATA_BITS_Pos) |
8 Data bits = (default); | |
constexpr config_t | DATA_BITS_8 = (0UL << DATA_BITS_Pos) |
9 Data bits | |
constexpr config_t | DATA_BITS_9 = (1UL << DATA_BITS_Pos) |
constexpr config_t | DATA_BITS_Msk = (7UL << DATA_BITS_Pos) |
5 Data bits | |
constexpr bit_number_t | DATA_BITS_Pos = 8 |
constexpr config_t | DEFAULT_TX_VALUE = (0x10UL << CONFIG_Pos) |
< Set default Transmit value = (Synchronous Receive only); arg = value | |
constexpr return_t | ERROR_BAUDRATE = ERROR_SPECIFIC - 2 |
Specified number of Data bits not supported. | |
constexpr return_t | ERROR_CPHA = ERROR_SPECIFIC - 8 |
constexpr return_t | ERROR_CPOL = ERROR_SPECIFIC - 7 |
Specified Clock Phase not supported. | |
constexpr return_t | ERROR_DATA_BITS = ERROR_SPECIFIC - 3 |
Specified Parity not supported. | |
constexpr return_t | ERROR_FLOW_CONTROL = ERROR_SPECIFIC - 6 |
Specified Clock Polarity not supported. | |
constexpr return_t | ERROR_MODE = ERROR_SPECIFIC - 1 |
< Specified Mode not supported | |
constexpr return_t | ERROR_PARITY = ERROR_SPECIFIC - 4 |
Specified number of Stop bits not supported. | |
constexpr return_t | ERROR_STOP_BITS = ERROR_SPECIFIC - 5 |
Specified Flow Control not supported. | |
constexpr bit_number_t | FLOW_CONFIG_Pos = 16 |
constexpr config_t | FLOW_CONTROL_CTS = (2UL << FLOW_CONFIG_Pos) |
RTS/CTS Flow Control. | |
constexpr config_t | FLOW_CONTROL_Msk = (3UL << FLOW_CONFIG_Pos) |
No Flow Control = (default);. | |
constexpr config_t | FLOW_CONTROL_NONE = (0UL << FLOW_CONFIG_Pos) |
RTS Flow Control. | |
constexpr config_t | FLOW_CONTROL_RTS = (1UL << FLOW_CONFIG_Pos) |
CTS Flow Control. | |
constexpr config_t | FLOW_CONTROL_RTS_CTS = (3UL << FLOW_CONFIG_Pos) |
constexpr config_t | IRDA_PULSE = (0x11UL << CONFIG_Pos) |
Set Smart Card Guard Time; arg = number of bit periods. | |
constexpr config_t | MODE_ASYNCHRONOUS = (0x01UL << CONFIG_Pos) |
< UART = (Asynchronous);; arg = Baudrate | |
constexpr config_t | MODE_IRDA = (0x05UL << CONFIG_Pos) |
UART Smart Card; arg = Baudrate. | |
constexpr config_t | MODE_SINGLE_WIRE = (0x04UL << CONFIG_Pos) |
UART IrDA; arg = Baudrate. | |
constexpr config_t | MODE_SMART_CARD = (0x06UL << CONFIG_Pos) |
constexpr config_t | MODE_SYNCHRONOUS_MASTER = (0x02UL << CONFIG_Pos) |
Synchronous Slave = (external clock signal);. | |
constexpr config_t | MODE_SYNCHRONOUS_SLAVE = (0x03UL << CONFIG_Pos) |
UART Single-wire = (half-duplex);; arg = Baudrate. | |
constexpr config_t | PARITY_EVEN = (1UL << PARITY_Pos) |
Odd Parity. | |
constexpr config_t | PARITY_Msk = (3UL << PARITY_Pos) |
No Parity = (default);. | |
constexpr config_t | PARITY_NONE = (0UL << PARITY_Pos) |
Even Parity. | |
constexpr config_t | PARITY_ODD = (2UL << PARITY_Pos) |
constexpr bit_number_t | PARITY_Pos = 12 |
constexpr config_t | SMART_CARD_CLOCK = (0x13UL << CONFIG_Pos) |
Smart Card NACK generation; arg: 0=disabled, 1=enabled. | |
constexpr config_t | SMART_CARD_GUARD_TIME = (0x12UL << CONFIG_Pos) |
Set Smart Card Clock in Hz; arg: 0=Clock not generated. | |
constexpr config_t | SMART_CARD_NACK = (0x14UL << CONFIG_Pos) |
constexpr config_t | STOP_BITS_0_5 = (3UL << STOP_BITS_Pos) |
constexpr config_t | STOP_BITS_1 = (0UL << STOP_BITS_Pos) |
2 Stop bits | |
constexpr config_t | STOP_BITS_1_5 = (2UL << STOP_BITS_Pos) |
0.5 Stop bits | |
constexpr config_t | STOP_BITS_2 = (1UL << STOP_BITS_Pos) |
1.5 Stop bits | |
constexpr config_t | STOP_BITS_Msk = (3UL << STOP_BITS_Pos) |
1 Stop bit = (default); | |
constexpr bit_number_t | STOP_BITS_Pos = 14 |
using os::driver::serial::bit_number_t = typedef uint32_t |
using os::driver::serial::config_arg_t = typedef uint32_t |
using os::driver::serial::config_t = typedef uint32_t |
using os::driver::serial::control_arg_t = typedef uint32_t |
using os::driver::serial::control_t = typedef uint32_t |
using os::driver::serial::modem_config_t = typedef uint32_t |
Enumerator | |
---|---|
enable_tx | Enable Transmitter. Enable Receiver |
enable_rx | Enable Continuous Break transmission. |
enable_break | Abort Serial::send() |
abort_send | Abort Serial::receive() |
abort_receive | Abort Serial::transfer() |
abort_transfer | Disable Transmitter. |
disable_tx | Disable Receiver. |
disable_rx | Disable Continuous Break transmission;. |
disable_break |
enum os::driver::serial::Event : event_t |
Serial Events.
|
strong |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |