MTB CAT1 Peripheral driver library
cy_stc_key_event Struct Reference

Description

keyscan key event

Data Fields

uint8_t keyCode
 Key code. More...
 
uint8_t upDownFlag
 Up/down flag.
 
uint8_t scanCycleFlag
 Should be toggled for every scan cycle in which a new event is queued. More...
 

Field Documentation

◆ keyCode

uint8_t cy_stc_key_event::keyCode

Key code.

This is the location in the keyscan matrix that is pressed/released. May be implemented as ((row * numCols) + col) or ((col * numRows) + row.

◆ scanCycleFlag

uint8_t cy_stc_key_event::scanCycleFlag

Should be toggled for every scan cycle in which a new event is queued.

Use of this flag is optional. If used, it allows the consumer to determine whether an event is detected in the same scan cycle as the previous event or a different one. Note that this flag does not indicate any separation in time.