|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
Configuration structure for input GPIO setup. More...
#include <gpio.hpp>

Public Member Functions | |
| Config (uint32_t pin) | |
| Create config with a pin number. | |
| bool | Validate () const |
| Validate configuration for basic constraints. | |
| bool | operator== (const Config &other) const |
Public Attributes | |
| uint32_t | pin_ |
| GPIO pin number (non-negative integer). | |
| GpioPullMode | pull {GpioPullMode::None} |
| Pull mode (default: None). | |
| GpioInputEvent | input_events {GpioInputEvent::None} |
| Input events to trigger IRQ (default: None). | |
| std::function< void(uint32_t)> | irq_handler {} |
| Optional IRQ handler callback. The function argument is bit field of events that triggered the IRQ. | |
Configuration structure for input GPIO setup.
|
explicit |
Create config with a pin number.
| pin | GPIO number (non-negative). |
| bool c7222::GpioIn::Config::operator== | ( | const Config & | other | ) | const |
| bool c7222::GpioIn::Config::Validate | ( | ) | const |
Validate configuration for basic constraints.
| GpioInputEvent c7222::GpioIn::Config::input_events {GpioInputEvent::None} |
Input events to trigger IRQ (default: None).
| std::function<void(uint32_t)> c7222::GpioIn::Config::irq_handler {} |
Optional IRQ handler callback. The function argument is bit field of events that triggered the IRQ.
| uint32_t c7222::GpioIn::Config::pin_ |
GPIO pin number (non-negative integer).
| GpioPullMode c7222::GpioIn::Config::pull {GpioPullMode::None} |
Pull mode (default: None).