semf
semf::DigitalInInt Class Reference

Class for reading a digital input in interrupt mode. More...

#include <digitalinint.h>

Inheritance diagram for semf::DigitalInInt:
Inheritance graph
Collaboration diagram for semf::DigitalInInt:
Collaboration graph

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
Gpiogpio () const
 Returns the pointer to the GPIO to check the status from. More...
 

Detailed Description

Class for reading a digital input in interrupt mode.

See also
app::DigitalIn
ExternalInterrupt.

Definition at line 24 of file digitalinint.h.

Constructor & Destructor Documentation

◆ DigitalInInt() [1/2]

semf::DigitalInInt::DigitalInInt ( ExternalInterrupt extInterrupt,
Gpio gpio,
bool  inverted = false 
)

Constructor.

Parameters
extInterruptExternal interrupt object for hardware access.
gpioGPIO interface object for hardware access.
invertedtrue sets high level of a pin as low and low level of a pin as high.

Definition at line 15 of file digitalinint.cpp.

Here is the call graph for this function:

◆ DigitalInInt() [2/2]

semf::DigitalInInt::DigitalInInt ( const DigitalInInt other)
explicitdelete

◆ ~DigitalInInt()

virtual semf::DigitalInInt::~DigitalInInt ( )
virtualdefault