11#ifndef SBL_HAL_GPIO_HANDLE_HPP_
12#define SBL_HAL_GPIO_HANDLE_HPP_
40 return active_low ? !logical_state : logical_state;
Root namespace for all Sound Byte Libs functionality.
GPIO pin handle with port, pin number, and polarity.
uint32_t port
GPIO port number (0 for single-port MCUs)
uint32_t pin
Pin number within port.
constexpr bool effective_level(bool logical_state) const noexcept
Get the effective physical level accounting for active_low.
bool active_low
True if signal is active-low (inverted)