Embedded Template Library 1.0
|
State change logic for 4 state debounce. More...
#include <debounce.h>
Protected Member Functions | |
debounce4 (bool initial_state) | |
~debounce4 () | |
Destructor. | |
void | set_state (bool sample, bool condition_set, bool condition_clear) |
bool | process (bool sample, count_t valid_count, count_t hold_count, count_t repeat_count) |
![]() | |
debounce_base (bool initial_state) | |
Constructor. | |
~debounce_base () | |
Destructor. | |
void | get_next (bool sample, bool condition_set, bool condition_clear, const uint_least8_t state_table[][2]) |
Gets the next state based on the inputs. | |
Additional Inherited Members | |
![]() | |
typedef uint_least8_t | flags_t |
typedef uint16_t | count_t |
![]() | |
void | add_sample (bool sample) |
bool | has_changed () const |
bool | is_set () const |
bool | is_held () const |
bool | is_repeating () const |
![]() | |
enum | states { Off = 0 , On = 1 , Held = 2 , Repeating = 3 , State = 0x03U , Sample = 4 , Change = 8 } |
![]() | |
flags_t | flags |
count_t | count |
State change logic for 4 state debounce.