|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
Configuration structure for output 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). | |
| GpioOutputType | output_type {GpioOutputType::PushPull} |
| Output type (default: PushPull). | |
| GpioDriveStrength | drive {GpioDriveStrength::mA4} |
| Drive strength (default: 4 mA). | |
| bool | initial_state {false} |
| Initial logic state when configured as output. | |
Configuration structure for output GPIO setup.
|
explicit |
Create config with a pin number.
| pin | GPIO number (non-negative). |
| bool c7222::GpioOut::Config::operator== | ( | const Config & | other | ) | const |
| bool c7222::GpioOut::Config::Validate | ( | ) | const |
Validate configuration for basic constraints.
| GpioDriveStrength c7222::GpioOut::Config::drive {GpioDriveStrength::mA4} |
Drive strength (default: 4 mA).
| bool c7222::GpioOut::Config::initial_state {false} |
Initial logic state when configured as output.
| GpioOutputType c7222::GpioOut::Config::output_type {GpioOutputType::PushPull} |
Output type (default: PushPull).
| uint32_t c7222::GpioOut::Config::pin_ |
GPIO pin number (non-negative integer).
| GpioPullMode c7222::GpioOut::Config::pull {GpioPullMode::None} |
Pull mode (default: None).