Skip to content

Class eva::DebounceDecor

template <class TReader>

ClassList > eva > DebounceDecor

Decorator that stabilizes readings by requiring value to be stable for a period. More...

  • #include <evaReaderDecors.h>

Inherits the following classes: TReader

Public Functions

Type Name
DebounceDecor (Args... args)
Constructs a DebounceDecor .
signed short getValue ()
Gets debounced value.

Detailed Description

Template parameters:

  • TReader Underlying reader type

Public Functions Documentation

function DebounceDecor

Constructs a DebounceDecor .

template<typename... Args>
inline eva::DebounceDecor::DebounceDecor (
    Args... args
) 

Parameters:

  • args Additional arguments passed to TReader constructor

function getValue

Gets debounced value.

inline signed short eva::DebounceDecor::getValue () 

Returns:

Stable reading after debounce period



The documentation for this class was generated from the following file src/evaReaderDecors.h