30#ifndef SBL_HW_VALIDATION_GPIO_REQUIREMENTS_HPP_
31#define SBL_HW_VALIDATION_GPIO_REQUIREMENTS_HPP_
43template<
typename GpioDriver>
51 "SBL ERROR: GPIO driver missing set_mode() method.\n"
52 "Required: static void set_mode(const GpioHandle&, PinMode)");
55 "Required: static void write(const GpioHandle&, bool)");
58 "Required: static bool read(const GpioHandle&)");
61 "Required: static void toggle(const GpioHandle&)");
76template<
typename GpioDriver>
GPIO driver requirements validator.
static constexpr bool validate()
Validate all required GPIO methods.
Method and interface detection for driver validation.
constexpr bool gpio_driver_valid
Helper to validate a GPIO driver implementation.
Root namespace for all Sound Byte Libs code.
True if T::read(const GpioHandle&) is a valid static call.
True if T::set_mode(const GpioHandle&, PinMode) is a valid static call.
True if T::toggle(const GpioHandle&) is a valid static call.
True if T::write(const GpioHandle&, bool) is a valid static call.