semf
|
Class for reading a digital input in interrupt mode. More...
#include <digitalinint.h>
Public Member Functions | |
DigitalInInt (ExternalInterrupt &extInterrupt, Gpio &gpio, bool inverted=false) | |
Constructor. More... | |
DigitalInInt (const DigitalInInt &other)=delete | |
virtual | ~DigitalInInt ()=default |
Public Member Functions inherited from semf::DigitalIn | |
DigitalIn (Gpio &gpio, bool inverted=false) | |
Constructor. More... | |
DigitalIn (const DigitalIn &other)=delete | |
bool | isInverted () const override |
Returns of the pin level logic is inverted. More... | |
void | setInverted (bool inverted) override |
Configures the inversion of the input reading. More... | |
State | state () const override |
Returns the level status of the hardware pin. More... | |
Public Member Functions inherited from semf::app::DigitalIn | |
virtual | ~DigitalIn ()=default |
virtual bool | isInverted () const =0 |
Returns of the pin level logic is inverted. More... | |
virtual void | setInverted (bool inverted)=0 |
Configures the inversion of the input reading. More... | |
virtual State | state () const =0 |
Returns the level status of the hardware pin. More... | |
Additional Inherited Members | |
Public Types inherited from semf::app::DigitalIn | |
enum | State : bool { Low = false , High = true } |
Public Attributes inherited from semf::app::DigitalIn | |
Signal | changedToHigh |
Signal | changedToLow |
Protected Member Functions inherited from semf::DigitalIn | |
Gpio & | gpio () const |
Returns the pointer to the GPIO to check the status from. More... | |
Class for reading a digital input in interrupt mode.
app::DigitalIn
ExternalInterrupt
. Definition at line 24 of file digitalinint.h.
semf::DigitalInInt::DigitalInInt | ( | ExternalInterrupt & | extInterrupt, |
Gpio & | gpio, | ||
bool | inverted = false |
||
) |
Constructor.
extInterrupt | External interrupt object for hardware access. |
gpio | GPIO interface object for hardware access. |
inverted | true sets high level of a pin as low and low level of a pin as high. |
Definition at line 15 of file digitalinint.cpp.
|
explicitdelete |
|
virtualdefault |