Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::diag::debouncing::Debouncer Class Referenceabstract

Debouncing mechanism interface. More...

#include <debouncer.h>

Inheritance diagram for ara::diag::debouncing::Debouncer:
ara::diag::debouncing::CounterBasedDebouncer ara::diag::debouncing::TimerBasedDebouncer

Public Member Functions

virtual void ReportPrepassed ()=0
 Report pre-passed of the monitored event. More...
 
virtual void ReportPassed ()=0
 Report finally passed of the monitored event. More...
 
virtual void ReportPrefailed ()=0
 Report pre-failed of the monitored event. More...
 
virtual void ReportFailed ()=0
 Report finally failed of the monitored event. More...
 
virtual void Freeze ()=0
 Freeze the debouncing mechanism. More...
 
virtual void Reset ()=0
 Reset the debouncing mechanism. More...
 

Protected Member Functions

 Debouncer (std::function< void(bool)> callback)
 Constructor. More...
 
void SetEventStatus (EventStatus status)
 Set the monitored event status. More...
 

Detailed Description

Debouncing mechanism interface.

Constructor & Destructor Documentation

◆ Debouncer()

ara::diag::debouncing::Debouncer::Debouncer ( std::function< void(bool)>  callback)
explicitprotected

Constructor.

Parameters
callbackCallback to be triggered at the monitored event status change

Member Function Documentation

◆ Freeze()

virtual void ara::diag::debouncing::Debouncer::Freeze ( )
pure virtual

◆ ReportFailed()

virtual void ara::diag::debouncing::Debouncer::ReportFailed ( )
pure virtual

Report finally failed of the monitored event.

Implemented in ara::diag::debouncing::CounterBasedDebouncer, and ara::diag::debouncing::TimerBasedDebouncer.

◆ ReportPassed()

virtual void ara::diag::debouncing::Debouncer::ReportPassed ( )
pure virtual

Report finally passed of the monitored event.

Implemented in ara::diag::debouncing::CounterBasedDebouncer, and ara::diag::debouncing::TimerBasedDebouncer.

◆ ReportPrefailed()

virtual void ara::diag::debouncing::Debouncer::ReportPrefailed ( )
pure virtual

Report pre-failed of the monitored event.

Implemented in ara::diag::debouncing::CounterBasedDebouncer, and ara::diag::debouncing::TimerBasedDebouncer.

◆ ReportPrepassed()

virtual void ara::diag::debouncing::Debouncer::ReportPrepassed ( )
pure virtual

Report pre-passed of the monitored event.

Implemented in ara::diag::debouncing::CounterBasedDebouncer, and ara::diag::debouncing::TimerBasedDebouncer.

◆ Reset()

virtual void ara::diag::debouncing::Debouncer::Reset ( )
pure virtual

◆ SetEventStatus()

void ara::diag::debouncing::Debouncer::SetEventStatus ( EventStatus  status)
protected

Set the monitored event status.

Parameters
statusMonitored event new status