buttons.h File Reference

Declaration of buttons interface. More...

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.


Detailed Description

Declaration of buttons interface.

Definition in file buttons.h.


Function Documentation

result_t BSP_CloseButtons (  ) 

Cancel buttons handlers.

Returns:
FAIL - buttons module was not opened,
SUCCESS - otherwise.

result_t BSP_OpenButtons ( void(*)(uint8_t bn)  pressed,
void(*)(uint8_t bn)  released 
)

Registers handlers for button events.

Parameters:
[in] pressed - the handler to process pressing of the button
[in] released - the handler to process releasing of the button
[in] bn - button number.
Returns:
FAIL - buttons module is busy,
SUCCESS - otherwise.

uint8_t BSP_ReadButtonsState (  ) 

Reads state of the buttons.

Returns:
Current buttons state in a binary way.
Bit 0 defines the state of button 1, bit 1 defines the state of button 2.


Generated on Wed Apr 2 19:06:16 2008 for ZigBeeNet Stack Documentation by  doxygen 1.5.1-p1