|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
GPIO driver interface - canonical types for MCU driver implementations. More...
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/hw/hal/gpio/driver.hpp> using sbl::gpio::PinMode;
Definition in file driver.hpp.
Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::gpio |
| Convenience layer: pins by handle. | |
Typedefs | |
| using | sbl::gpio::PinMode = sbl::hal::gpio::PinMode |
| using | sbl::gpio::PinLevel = sbl::hal::gpio::PinLevel |