Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
counter_based_debouncer.h
1#ifndef COUNTER_BASED_DEBOUNCER_H
2#define COUNTER_BASED_DEBOUNCER_H
3
4#include <stdint.h>
5#include "./debouncer.h"
6
7namespace ara
8{
9 namespace diag
10 {
13 {
30 };
31
32 namespace debouncing
33 {
35 {
36 private:
37 const CounterBased mDefaultValues;
38 int16_t mFdc;
39
40 public:
45 std::function<void(bool)> callback,
46 CounterBased defaultValues);
47
48 virtual void ReportPrepassed() override;
49
50 virtual void ReportPassed() override;
51
52 virtual void ReportPrefailed() override;
53
54 virtual void ReportFailed() override;
55
56 virtual void Freeze() override;
57
58 virtual void Reset() override;
59 };
60 }
61 }
62}
63
64#endif
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