HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
DigitalOutputGuard.h File Reference

Header file for the DigitalOutputGuard class. More...

#include "base/BaseGpio.h"
#include "base/HardwareTypes.h"
Include dependency graph for DigitalOutputGuard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DigitalOutputGuard
 DigitalOutputGuard class. More...
 

Detailed Description

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.

Author
Nebiyu Tadesse
Date
2025