|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
UART driver requirements validator. More...
#include "method_detection.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. | |
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.
Every Sound Byte Libs UART driver MUST implement these methods:
init(const UartHandle&) - Initialize UART with manifest-resolved handlewrite_byte(uint8_t byte) - Write single byte (blocking)write(const uint8_t* data, size_t len) - Write buffer (blocking)Add validation at the bottom of driver uart.hpp:
Definition in file uart_requirements.hpp.