Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
uart_requirements.hpp File Reference

UART driver requirements validator. More...

#include "method_detection.hpp"
Include dependency graph for uart_requirements.hpp:

Go to the source code of this file.

Classes

class  sbl::validation::UartDriverRequirements< UartDriver >
 UART driver requirements validator. More...
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::validation
 Compile-time validation infrastructure.
 

Variables

template<typename UartDriver >
constexpr bool sbl::validation::uart_driver_valid = UartDriverRequirements<UartDriver>::validate()
 Helper to validate a UART driver implementation.
 

Detailed Description

UART driver requirements validator.

Validates that UART drivers provide required functionality using the method detection system. This is the core UART contract enforcement for Sound Byte Libs drivers.

UART Driver Contract

Every Sound Byte Libs UART driver MUST implement these methods:

Validation Usage

Add validation at the bottom of driver uart.hpp:

static_assert(sbl::validation::uart_driver_valid<sbl::driver::Uart>,
"UART driver missing required methods");
UART driver requirements validator.
See also
method_detection.hpp

Definition in file uart_requirements.hpp.