Go to the source code of this file.
Functions | |
| result_t | BSP_OpenButtons (void(*pressed)(uint8_t bn), void(*released)(uint8_t bn)) |
| Registers handlers for button events. | |
| result_t | BSP_CloseButtons () |
| Cancel buttons handlers. | |
| uint8_t | BSP_ReadButtonsState () |
| Reads state of the buttons. | |
Definition in file buttons.h.
| result_t BSP_CloseButtons | ( | ) |
Cancel buttons handlers.
| result_t BSP_OpenButtons | ( | void(*)(uint8_t bn) | pressed, | |
| void(*)(uint8_t bn) | released | |||
| ) |
Registers handlers for button events.
| [in] | pressed | - the handler to process pressing of the button |
| [in] | released | - the handler to process releasing of the button |
| [in] | bn | - button number. |
| uint8_t BSP_ReadButtonsState | ( | ) |
Reads state of the buttons.
1.5.1-p1