3-phase PV router
Loading...
Searching...
No Matches
PinEdges Struct Reference

State of an active-LOW input pin, and how it changed since the previous reading. More...

#include <pin_edges.h>

Public Member Functions

constexpr bool pressed () const
 it went LOW since the previous reading
 
constexpr bool released () const
 it went HIGH since the previous reading
 

Public Attributes

bool active
 
bool changed
 

Detailed Description

State of an active-LOW input pin, and how it changed since the previous reading.

Definition at line 29 of file pin_edges.h.

Member Function Documentation

◆ pressed()

bool PinEdges::pressed ( ) const
inlineconstexpr

it went LOW since the previous reading

Definition at line 35 of file pin_edges.h.

Here is the caller graph for this function:

◆ released()

bool PinEdges::released ( ) const
inlineconstexpr

it went HIGH since the previous reading

Definition at line 41 of file pin_edges.h.

Member Data Documentation

◆ active

bool PinEdges::active

the pin is LOW now

Definition at line 31 of file pin_edges.h.

◆ changed

bool PinEdges::changed

it changed since the previous reading

Definition at line 32 of file pin_edges.h.


The documentation for this struct was generated from the following file: