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

GPIO driver interface - canonical types for MCU driver implementations. More...

#include "handle.hpp"
#include "types.hpp"
Include dependency graph for driver.hpp:

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
 

Detailed Description

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.