|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
GPIO pin handle with port, pin number, and polarity. More...
GPIO pin handle with port, pin number, and polarity.
Represents a GPIO pin as resolved from hardware manifests. Used to pass pin configuration to driver functions.
Examples:
Definition at line 28 of file handle.hpp.
#include <handle.hpp>
Public Member Functions | |
| constexpr bool | effective_level (bool logical_state) const noexcept |
| Get the effective physical level accounting for active_low. | |
Public Attributes | |
| uint32_t | port |
| uint32_t | pin |
| bool | active_low |
|
inlineconstexprnoexcept |
Get the effective physical level accounting for active_low.
| logical_state | Logical state (true = active/on, false = inactive/off) |
Definition at line 38 of file handle.hpp.
References active_low.
| uint32_t sbl::GpioHandle::port |
GPIO port number (0 for single-port MCUs)
Definition at line 29 of file handle.hpp.
| uint32_t sbl::GpioHandle::pin |
Pin number within port
Definition at line 30 of file handle.hpp.
| bool sbl::GpioHandle::active_low |
True if signal is active-low (inverted)
Definition at line 31 of file handle.hpp.
Referenced by effective_level().