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:
TReaderUnderlying reader type
Public Functions Documentation¶
function DebounceDecor¶
Constructs a DebounceDecor .
template<typename... Args>
inline eva::DebounceDecor::DebounceDecor (
Args... args
)
Parameters:
argsAdditional 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