Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
CountingDebouncer::Options Struct Reference

Static parameters for the CountingDebouncer. More...

#include <Debouncer.hxx>

Public Attributes

uint8_t window_size
 Number of samples to keep. Must be between 1 and 32.
 
uint8_t min_count
 Number of samples that have to be 1 within the window to consider the debounce value 1.
 

Detailed Description

Static parameters for the CountingDebouncer.

Passed in at construction and kept constant after construction.

Definition at line 147 of file Debouncer.hxx.

Member Data Documentation

◆ min_count

uint8_t CountingDebouncer::Options::min_count

Number of samples that have to be 1 within the window to consider the debounce value 1.

Must be within 1 and window_size.

Definition at line 153 of file Debouncer.hxx.

◆ window_size

uint8_t CountingDebouncer::Options::window_size

Number of samples to keep. Must be between 1 and 32.

Definition at line 150 of file Debouncer.hxx.


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