![]() |
AIROC™ BTSDK v4.9 - Documentation | |||
This file defines the button interface provided by the 20732 core. More...
Data Structures | |
| struct | ButtonData |
| Button run time data. More... | |
Typedefs | |
| typedef struct ButtonData | ButtonData |
| Button run time data. | |
Functions | |
| void | btn_wakeupDisable (void) |
| This file defines the button interface provided by the 20732 core. More... | |
| void | btn_wakeupEnable (void) |
| Enable wakeup from all buttons. Also clear any pending events. | |
| UINT16 | btn_getCurrentState (void) |
| Return the current button state as a bit mapped value. More... | |
| UINT16 | btn_flush (void) |
| Flush any queued button activity in FW or HW and returns the current state of the buttons. More... | |
| BOOL32 | btn_eventsPending (void) |
| Returns whether there are any pending unprocessed button events. More... | |
| void | btn_registerForInterrupt (void(*userfn)(void *), void *userdata) |
| Register for notification of changes. More... | |
| void | btn_init (void) |
| Initialize the button driver. | |
| void | btn_processEvent (KeyEvent *event) |
| Process the provided button (keyscan) event. | |
This file defines the button interface provided by the 20732 core.
Buttons are implemented as keys on the 20732. A scan matrix of 1 row, n cols is created and scanned by the key scan hardware. The hardware reports the state of the buttons as keys. This information is translated by the button interface into a byte representing various buttons