ISF15ACP4 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
isf15acp4::ButtonUpdate Struct Reference

One result of ButtonDebouncer::Update(). More...

#include <isf15acp4_button.hpp>

Public Attributes

ButtonEvent event {ButtonEvent::None}
 The event, or None.
 
uint32_t timestamp_ms
 When the level first changed (Pressed, Released), else the poll time.
 
uint32_t held_ms {0}
 Released, LongPress and Repeat: how long the switch was down.
 
bool was_long {false}
 Released: the press had reached long_press_ms.
 
bool woke_display
 Set by the driver's Poll(): this press woke a dimmed or sleeping display.
 

Detailed Description

One result of ButtonDebouncer::Update().

Member Data Documentation

◆ timestamp_ms

uint32_t isf15acp4::ButtonUpdate::timestamp_ms
Initial value:
{
0}

When the level first changed (Pressed, Released), else the poll time.

◆ woke_display

bool isf15acp4::ButtonUpdate::woke_display
Initial value:
{
false}

Set by the driver's Poll(): this press woke a dimmed or sleeping display.


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