modm API documentation
modm::filter::Debounce< T > Class Template Reference

Debouncing binary signals. More...

#include <modm/math/filter/debounce.hpp>

Public Member Functions

 Debounce (const T &maxValue, const T &lowerBound=0, const T &upperBound=0)
 Constructor. More...
 
void update (bool input)
 
bool getValue () const
 
void reset (const bool state)
 

Detailed Description

template<typename T = uint8_t>
class modm::filter::Debounce< T >

Debouncing binary signals.

Constructor & Destructor Documentation

template<typename T = uint8_t>
modm::filter::Debounce< T >::Debounce ( const T &  maxValue,
const T &  lowerBound = 0,
const T &  upperBound = 0 
)

Constructor.

Parameters
maxValuemaximal value of the sum
lowerBoundlower bound for the schmitt-trigger
upperBoundupper bound for the schmitt-trigger. If set to zero, the value of maxValue is used.

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