Emakefun Matrix Keyboard Arduino Lib 1.0.1
Loading...
Searching...
No Matches
emakefun::Debouncer< T > Class Template Reference

Public Member Functions

 Debouncer (const T &value, uint64_t debounce_duration_ms=kDefaultDebounceDurationMs)
 
const T & Debounce (const T &value)
 
const T & operator() (const T &value)
 
const T & operator= (const T &value)
 
const T & operator() () const
 

Static Public Attributes

static constexpr uint64_t kDefaultDebounceDurationMs = 20
 

Detailed Description

template<typename T>
class emakefun::Debouncer< T >

Definition at line 11 of file debouncer.h.

Constructor & Destructor Documentation

◆ Debouncer()

template<typename T>
emakefun::Debouncer< T >::Debouncer ( const T & value,
uint64_t debounce_duration_ms = kDefaultDebounceDurationMs )
inline

Definition at line 15 of file debouncer.h.

Member Function Documentation

◆ Debounce()

template<typename T>
const T & emakefun::Debouncer< T >::Debounce ( const T & value)
inline

Definition at line 19 of file debouncer.h.

◆ operator()() [1/2]

template<typename T>
const T & emakefun::Debouncer< T >::operator() ( ) const
inline

Definition at line 38 of file debouncer.h.

◆ operator()() [2/2]

template<typename T>
const T & emakefun::Debouncer< T >::operator() ( const T & value)
inline

Definition at line 30 of file debouncer.h.

◆ operator=()

template<typename T>
const T & emakefun::Debouncer< T >::operator= ( const T & value)
inline

Definition at line 34 of file debouncer.h.

Member Data Documentation

◆ kDefaultDebounceDurationMs

template<typename T>
uint64_t emakefun::Debouncer< T >::kDefaultDebounceDurationMs = 20
staticconstexpr

Definition at line 13 of file debouncer.h.


The documentation for this class was generated from the following file: