1#ifndef COUNTER_BASED_DEBOUNCER_H
2#define COUNTER_BASED_DEBOUNCER_H
5#include "./debouncer.h"
45 std::function<
void(
bool)> callback,
56 virtual void Freeze()
override;
58 virtual void Reset()
override;
Definition: counter_based_debouncer.h:35
virtual void Freeze() override
Freeze the debouncing mechanism.
Definition: counter_based_debouncer.cpp:63
CounterBasedDebouncer(std::function< void(bool)> callback, CounterBased defaultValues)
Constructor.
Definition: counter_based_debouncer.cpp:9
virtual void Reset() override
Reset the debouncing mechanism.
Definition: counter_based_debouncer.cpp:68
virtual void ReportPrefailed() override
Report pre-failed of the monitored event.
Definition: counter_based_debouncer.cpp:40
virtual void ReportPrepassed() override
Report pre-passed of the monitored event.
Definition: counter_based_debouncer.cpp:17
virtual void ReportPassed() override
Report finally passed of the monitored event.
Definition: counter_based_debouncer.cpp:34
virtual void ReportFailed() override
Report finally failed of the monitored event.
Definition: counter_based_debouncer.cpp:57
Debouncing mechanism interface.
Definition: debouncer.h:24
Contour-based debouncing parameters.
Definition: counter_based_debouncer.h:13
int16_t passedJumpValue
Debounce counter jump on a pre-passed report.
Definition: counter_based_debouncer.h:25
uint16_t passedStepsize
Debounce counter decrement step.
Definition: counter_based_debouncer.h:21
uint16_t failedStepsize
Debounce counter increment step.
Definition: counter_based_debouncer.h:19
int16_t failedThreshold
Threshold to report failure.
Definition: counter_based_debouncer.h:15
bool useJumpToPassed
Indicates whether debounce counter should jump or not on a pre-passed report.
Definition: counter_based_debouncer.h:29
int16_t failedJumpValue
Debounce counter jump on a pre-failed report.
Definition: counter_based_debouncer.h:23
int16_t passedThreshold
Threshold to report passing.
Definition: counter_based_debouncer.h:17
bool useJumpToFailed
Indicates whether debounce counter should jump or not on a pre-failed report.
Definition: counter_based_debouncer.h:27