|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Header file for the DigitalOutputGuard class. More...
Go to the source code of this file.
Classes | |
| class | DigitalOutputGuard |
| DigitalOutputGuard class. More... | |
Header file for the DigitalOutputGuard class.
The DigitalOutputGuard class ensures that a DigitalGpio instance is set to output mode and active state in its constructor, and inactive in its destructor (RAII pattern). This provides safe automatic management of GPIO output states with guaranteed cleanup even in exception scenarios, ensuring proper resource management and pin state control.