Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
input_kbd_matrix_api Struct Reference

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.
 

Detailed Description

Keyboard matrix internal APIs.

Field Documentation

◆ drive_column

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.

Parameters
devPointer to the keyboard matrix device.
colThe column to drive, or INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE or INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL.

◆ read_row

kbd_row_t(* input_kbd_matrix_api::read_row) (const struct device *dev)

Read the matrix row.

Parameters
devPointer to the keyboard matrix device.

◆ set_detect_mode

void(* input_kbd_matrix_api::set_detect_mode) (const struct device *dev, bool enabled)

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.

Parameters
devPointer to the keyboard matrix device.
enableWhether detection mode has to be enabled or disabled.

The documentation for this struct was generated from the following file: