blob: ad9ef6c220368f6c6d17e528bcf7a211cf737e5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* keyboard.h -
*
* (Chromium license) */
#ifndef __CROS_EC_KEYBOARD_H
#define __CROS_EC_KEYBOARD_H
/* Register the board-specific keyboard matrix translation function.
* The callback function accepts col/row and returns the scan code.
*/
EcError CrKeyboardMatrixRegister(
int8_t col_num, int8_t row_num,
EcError (*callback)(
int8_t column, int8_t row, int8_t pressed,
uint8_t *scan_code, int32_t* len));
#endif /* __CROS_EC_KEYBOARD_H */
|