|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
GPIO pin handle with port, pin number, and polarity. More...
#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 |
| GPIO port number (0 for single-port MCUs) | |
| uint32_t | pin |
| Pin number within port. | |
| bool | active_low |
| True if signal is active-low (inverted) | |
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 29 of file handle.hpp.
|
inlineconstexprnoexcept |
Get the effective physical level accounting for active_low.
| logical_state | Logical state (true = active/on, false = inactive/off) |
Definition at line 39 of file handle.hpp.
References active_low.
| bool sbl::GpioHandle::active_low |
True if signal is active-low (inverted)
Definition at line 32 of file handle.hpp.
Referenced by effective_level().
| uint32_t sbl::GpioHandle::pin |
Pin number within port.
Definition at line 31 of file handle.hpp.
| uint32_t sbl::GpioHandle::port |
GPIO port number (0 for single-port MCUs)
Definition at line 30 of file handle.hpp.