Base class for UART abstraction.
More...
#include <uart.hpp>
|
using | Impl = UARTImpl< Context > |
|
template<auto Context, template< auto > typename UARTImpl>
struct bsp::drv::UART< Context, UARTImpl >
Base class for UART abstraction.
- Template Parameters
-
Context | UART context |
UARTImpl | UART implementation |
◆ Impl
template<auto Context, template< auto > typename UARTImpl>
◆ UART()
template<auto Context, template< auto > typename UARTImpl>
◆ deinit()
template<auto Context, template< auto > typename UARTImpl>
static auto bsp::drv::UART< Context, UARTImpl >::deinit |
( |
auto ... |
args | ) |
|
|
inlinestatic |
UART initialization.
- Parameters
-
args | Platform specific arguments |
- Returns
- Success
◆ init()
template<auto Context, template< auto > typename UARTImpl>
static auto bsp::drv::UART< Context, UARTImpl >::init |
( |
auto ... |
args | ) |
|
|
inlinestatic |
UART initialization.
- Parameters
-
args | Platform specific arguments |
- Returns
- Success
◆ read()
template<auto Context, template< auto > typename UARTImpl>
template<size_t N>
UART read function.
- Template Parameters
-
- Returns
- Read data
◆ readString()
template<auto Context, template< auto > typename UARTImpl>
static std::string bsp::drv::UART< Context, UARTImpl >::readString |
( |
| ) |
|
|
inlinestatic |
UART read string function.
- Returns
- Read string
◆ write() [1/2]
template<auto Context, template< auto > typename UARTImpl>
template<size_t N>
static void bsp::drv::UART< Context, UARTImpl >::write |
( |
const std::array< u8, N > & |
data | ) |
|
|
inlinestatic |
UART write string function.
- Template Parameters
-
- Parameters
-
◆ write() [2/2]
template<auto Context, template< auto > typename UARTImpl>
static void bsp::drv::UART< Context, UARTImpl >::write |
( |
std::string_view |
data | ) |
|
|
inlinestatic |
UART write string function.
- Parameters
-
The documentation for this struct was generated from the following file: