GpioPin class final
#include <hal/gpio_pin.hpp>
Public types
Public static variables
- static uint32_t kInvalidPin constexpr
Constructors, destructors, conversion operators
- GpioPin(const uint32_t pin = kInvalidPin) explicit constexpr
Public functions
- void bind(uint32_t pin)
-
auto configure_input(Pull pull = Pull::
None) const -> bool - auto configure_output(bool initial_high) const -> bool
- auto number() const -> uint32_t
- auto read() const -> bool
- auto set_function(Function function) const -> bool
- void set_high() const
- void set_low() const
- void toggle() const
- auto valid() const -> bool
- void write(bool high) const