Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::validation::has_uart_init< T, typename > Struct Template Reference

UART Driver Method Detection. More...

Detailed Description

template<typename T, typename = void>
struct sbl::validation::has_uart_init< T, typename >

UART Driver Method Detection.

Detects presence of required methods in UART driver implementations.

Required (all platforms):

  • init(const UartHandle&)
  • init_rx(const UartHandle&)
  • write_byte(uint8_t)
  • write(const uint8_t*, size_t)
  • write_string(const char*)
  • available() -> bool
  • read_byte() -> uint8_t

Optional (platform-specific):

  • try_write_byte(uint8_t) -> bool
  • try_write_string(const char*) -> size_t

Definition at line 194 of file method_detection.hpp.

#include <method_detection.hpp>

Inheritance diagram for sbl::validation::has_uart_init< T, typename >:
[legend]

The documentation for this struct was generated from the following file: