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 (void) |
Cancel buttons handlers. | |
uint8_t | BSP_ReadButtonsState (void) |
Reads state of the buttons. |
Copyright (c) 2008 , Atmel Corporation. All rights reserved. Licensed under Atmel's Limited License Agreement (BitCloudTM).
Definition in file buttons.h.
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 bn - button number. |
[in] | released | - the handler to process releasing of the button bn - button number. |
result_t BSP_CloseButtons | ( | void | ) |
Cancel buttons handlers.
uint8_t BSP_ReadButtonsState | ( | void | ) |
Reads state of the buttons.