|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
GPIO driver interface - canonical types for MCU driver implementations. More...
Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs functionality. | |
| namespace | sbl::gpio |
| GPIO types and enumerations. | |
Typedefs | |
| using | sbl::gpio::PinMode = sbl::core::hal::gpio::PinMode |
| using | sbl::gpio::PinLevel = sbl::core::hal::gpio::PinLevel |
GPIO driver interface - canonical types for MCU driver implementations.
This header provides everything a GPIO driver needs:
Drivers implement the following static interface: static void set_mode(const sbl::GpioHandle& handle, sbl::gpio::PinMode mode); static void write(const sbl::GpioHandle& handle, bool value); static bool read(const sbl::GpioHandle& handle); static void toggle(const sbl::GpioHandle& handle);
Usage in driver: #include <sbl/hal/gpio/driver.hpp> using sbl::gpio::PinMode;
Definition in file driver.hpp.