MTB CAT1 Peripheral driver library
cy_stc_keyscan_context_t Struct Reference

Description

KEYSCAN Context configuration These settings are per keyscan context.

Data Fields

cy_stc_key_event bufStart [KEYSCAN_FW_FIFO_SIZE]
 Location where the FW FIFO starts. More...
 
uint8_t maxNumElements
 Maximum number of elements that can be placed in the FW FIFO. More...
 
uint8_t curNumElements
 Number of elements currently in the FW FIFO.
 
uint8_t readIndex
 Read index into the FW FIFO. More...
 
uint8_t writeIndex
 Write index into the FW FIFO. More...
 
uint8_t savedWriteIndexForRollBack
 Saved write index for rollback. More...
 
uint8_t savedNumElements
 Saved number of elements for rollback. More...
 
uint8_t keysPressedCount
 Number of key down events that are not yet matched by key up events, which gives the number of keys currently being pressed.
 
bool keyscan_pollingKeyscanHw
 Whether HW polling is done from Keyscan.
 
cy_cb_keyscan_handle_events_t cbEvents
 callback function
 

Field Documentation

◆ bufStart

cy_stc_key_event cy_stc_keyscan_context_t::bufStart[KEYSCAN_FW_FIFO_SIZE]

Location where the FW FIFO starts.

Provided during initialization.

◆ maxNumElements

uint8_t cy_stc_keyscan_context_t::maxNumElements

Maximum number of elements that can be placed in the FW FIFO.

Provided during initialization.

◆ readIndex

uint8_t cy_stc_keyscan_context_t::readIndex

Read index into the FW FIFO.

◆ writeIndex

uint8_t cy_stc_keyscan_context_t::writeIndex

Write index into the FW FIFO.

◆ savedWriteIndexForRollBack

uint8_t cy_stc_keyscan_context_t::savedWriteIndexForRollBack

Saved write index for rollback.

◆ savedNumElements

uint8_t cy_stc_keyscan_context_t::savedNumElements

Saved number of elements for rollback.