Home
last modified time | relevance | path

Searched refs:kbd_row_t (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/include/zephyr/input/
Dinput_kbd_matrix.h36 typedef uint16_t kbd_row_t; typedef
39 typedef uint8_t kbd_row_t; typedef
70 #define INPUT_KBD_MATRIX_ROW_BITS NUM_BITS(kbd_row_t)
92 kbd_row_t (*read_row)(const struct device *dev);
122 INPUT_KBD_ACTUAL_KEY_MASK_CONST kbd_row_t *actual_key_mask;
125 kbd_row_t *matrix_stable_state;
126 kbd_row_t *matrix_unstable_state;
127 kbd_row_t *matrix_previous_state;
128 kbd_row_t *matrix_new_state;
146 static INPUT_KBD_ACTUAL_KEY_MASK_CONST kbd_row_t \
[all …]
/Zephyr-latest/drivers/input/
Dinput_kbd_matrix.c32 const kbd_row_t *state = cfg->matrix_new_state; in input_kbd_matrix_ghosting()
63 kbd_row_t common_row_bits = state[c] & state[c_next]; in input_kbd_matrix_ghosting()
101 kbd_row_t row; in input_kbd_matrix_scan()
102 kbd_row_t key_event = 0U; in input_kbd_matrix_scan()
139 kbd_row_t *matrix_new_state = cfg->matrix_new_state; in input_kbd_matrix_update_state()
141 kbd_row_t row_changed; in input_kbd_matrix_update_state()
142 kbd_row_t deb_col; in input_kbd_matrix_update_state()
185 kbd_row_t mask = BIT(r); in input_kbd_matrix_update_state()
186 kbd_row_t row_bit = matrix_new_state[c] & mask; in input_kbd_matrix_update_state()
Dinput_npcx_kbd.c105 static kbd_row_t npcx_kbd_read_row(const struct device *dev) in npcx_kbd_read_row()
110 kbd_row_t val; in npcx_kbd_read_row()
Dinput_gpio_kbd_matrix.c90 static kbd_row_t gpio_kbd_matrix_read_row(const struct device *dev) in gpio_kbd_matrix_read_row()
95 kbd_row_t val = 0; in gpio_kbd_matrix_read_row()
Dinput_xec_kbd.c98 static kbd_row_t xec_kbd_read_row(const struct device *dev) in xec_kbd_read_row()
Dinput_ite_it8801_kbd.c78 static kbd_row_t kbd_it8801_read_row(const struct device *dev) in kbd_it8801_read_row()
Dinput_ite_it8xxx2_kbd.c96 static kbd_row_t it8xxx2_kbd_read_row(const struct device *dev) in it8xxx2_kbd_read_row()
/Zephyr-latest/tests/drivers/input/kbd_matrix/src/
Dmain.c20 kbd_row_t rows[3];
30 static kbd_row_t test_read_row(const struct device *dev) in test_read_row()
80 static void state_set_rows_by_column(kbd_row_t c0, kbd_row_t c1, kbd_row_t c2) in state_set_rows_by_column()
82 memcpy(&state.rows, (kbd_row_t[]){c0, c1, c2}, sizeof(state.rows)); in state_set_rows_by_column()
381 kbd_row_t mask[4] = {0x00, 0xff, 0x00, 0x00}; in ZTEST()
/Zephyr-latest/subsys/input/
Dinput_utils.c122 static kbd_row_t kbd_matrix_state[CONFIG_INPUT_SHELL_KBD_MATRIX_STATE_MAX_COLS];
123 static kbd_row_t kbd_matrix_key_mask[CONFIG_INPUT_SHELL_KBD_MATRIX_STATE_MAX_COLS];
126 #define KEY_MATRIX_ENTRY_LEN (sizeof(kbd_row_t) * 2 + 1)
131 static void kbd_matrix_state_log_entry(char *header, kbd_row_t *data) in kbd_matrix_state_log_entry()