TB2026-YDS Firmware
Loading...
Searching...
No Matches
input_debounce_t Struct Reference

Debounce/edge state. Zero-initialise before the first call (memset or {0}). More...

#include <input_logic.h>

Data Fields

uint8_t prev
uint32_t last_ms [INPUT_BTN_COUNT]
uint32_t count [INPUT_BTN_COUNT]

Detailed Description

Debounce/edge state. Zero-initialise before the first call (memset or {0}).

Field Documentation

◆ count

uint32_t input_debounce_t::count[INPUT_BTN_COUNT]

Accepted (debounced) presses per button since reset.

◆ last_ms

uint32_t input_debounce_t::last_ms[INPUT_BTN_COUNT]

Timestamp of each button's last accepted press.

◆ prev

uint8_t input_debounce_t::prev

Pressed mask at the previous call (bit per button).


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