Skip to content

Struct SYN_Keypad

ClassList > SYN_Keypad

Matrix Keypad Context. More...

  • #include <syn_keypad.h>

Public Attributes

Type Name
char active_key
SYN_GPIO_Pin cols
bool is_pressed
char keymap
char last_raw_key
uint8_t num_cols
uint8_t num_rows
SYN_KeypadCallback on_event
uint32_t press_count
SYN_GPIO_Pin rows
void * user_ctx

Detailed Description

Keypad State Context.

Public Attributes Documentation

variable active_key

char SYN_Keypad::active_key;

Currently pressed debounced key


variable cols

SYN_GPIO_Pin SYN_Keypad::cols[SYN_KEYPAD_MAX_COLS];

Array of column GPIO pins


variable is_pressed

bool SYN_Keypad::is_pressed;

True if key currently down


variable keymap

char SYN_Keypad::keymap[SYN_KEYPAD_MAX_ROWS *SYN_KEYPAD_MAX_COLS];

Flat keymap character mapping


variable last_raw_key

char SYN_Keypad::last_raw_key;

Last scanned raw key


variable num_cols

uint8_t SYN_Keypad::num_cols;

Number of active column pins


variable num_rows

uint8_t SYN_Keypad::num_rows;

Number of active row pins


variable on_event

SYN_KeypadCallback SYN_Keypad::on_event;

Key event callback function


variable press_count

uint32_t SYN_Keypad::press_count;

Total keypress count


variable rows

SYN_GPIO_Pin SYN_Keypad::rows[SYN_KEYPAD_MAX_ROWS];

Array of row GPIO pins


variable user_ctx

void* SYN_Keypad::user_ctx;

User callback context



The documentation for this class was generated from the following file src/syntropic/input/syn_keypad.h