![]() |
semf
|
Class for handling a digital output. More...
#include <digitalout.h>
Public Types | |
enum | State : bool { Low = false , High = true } |
Public Member Functions | |
virtual | ~DigitalOut ()=default |
virtual void | setInverted (bool inverted)=0 |
Configures the inversion of the output. More... | |
virtual void | set (State state=High)=0 |
Sets the output level of a GPIO pin. More... | |
virtual void | reset ()=0 |
virtual void | toggle ()=0 |
virtual State | state () const =0 |
Gets the present/current state of a GPIO pin. More... | |
Class for handling a digital output.
Definition at line 23 of file digitalout.h.
enum semf::app::DigitalOut::State : bool |
Enum for the state of the pin.
Enumerator | |
---|---|
Low | Pin is set to a low state |
High | Pin is set to a high state |
Definition at line 27 of file digitalout.h.
|
virtualdefault |
|
pure virtual |
Sets low level of a GPIO pin.
Implemented in semf::DigitalOut.
Sets the output level of a GPIO pin.
state | The new output level of a GPIO pin. |
High
. Implemented in semf::DigitalOut.
|
pure virtual |
Configures the inversion of the output.
inverted | true sets high level of a pin as low and a low level of a pin as high. |
Implemented in semf::DigitalOut.
|
pure virtual |
Gets the present/current state of a GPIO pin.
Implemented in semf::DigitalOut.
|
pure virtual |
Toggles the output of a GPIO pin.
Implemented in semf::DigitalOut.