|
modm API documentation
|
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) |
Debouncing binary signals.
| modm::filter::Debounce< T >::Debounce | ( | const T & | maxValue, |
| const T & | lowerBound = 0, |
||
| const T & | upperBound = 0 |
||
| ) |
Constructor.
| maxValue | maximal value of the sum |
| lowerBound | lower bound for the schmitt-trigger |
| upperBound | upper bound for the schmitt-trigger. If set to zero, the value of maxValue is used. |