Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
Keyboard matrix internal APIs. More...
#include <input_kbd_matrix.h>
Data Fields | |
void(* | drive_column )(const struct device *dev, int col) |
Request to drive a specific column. | |
kbd_row_t(* | read_row )(const struct device *dev) |
Read the matrix row. | |
void(* | set_detect_mode )(const struct device *dev, bool enabled) |
Request to put the matrix in detection mode. | |
Keyboard matrix internal APIs.
void(* input_kbd_matrix_api::drive_column) (const struct device *dev, int col) |
Request to drive a specific column.
Request to drive a specific matrix column, or none, or all.
dev | Pointer to the keyboard matrix device. |
col | The column to drive, or INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE or INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL. |
Read the matrix row.
dev | Pointer to the keyboard matrix device. |
Request to put the matrix in detection mode.
Request to put the driver in detection mode, this is called after a request to drive all the column and typically involves reenabling interrupts row pin changes.
dev | Pointer to the keyboard matrix device. |
enable | Whether detection mode has to be enabled or disabled. |