Implements an abstraction layer for UART interface.
More...
#include <uart.h>
|
void | Init (uint32_t baud_rate) |
| Performs initialization for this UART interface. More...
|
|
Implements an abstraction layer for UART interface.
UART::UART |
( |
const Config & |
config | ) |
|
|
explicit |
Constructor for UART.
- Parameters
-
void UART::EnableInterrupt |
( |
| ) |
|
Enables interrupt for UART RX.
void UART::Init |
( |
uint32_t |
baud_rate | ) |
|
|
protected |
Performs initialization for this UART interface.
- Parameters
-
void UART::Tx |
( |
const char * |
data, |
|
|
|
... |
|
) |
| |
Transmits a formatted string.
- Parameters
-
data | Formatted string |
... | Variables |
void UART::Tx |
( |
const std::string & |
str | ) |
|
Transmits a string.
- Parameters
-
void UART::TxByte |
( |
const uint8_t |
byte | ) |
|
Transmits one byte.
- Parameters
-
byte | Character to transmit |
The documentation for this class was generated from the following files: