libspicboard-Doku
button.h File Reference
 Include dependency graph for button.h:Go to the source code of this file.
Typedefs | |
| typedef void(* | BUTTONCALLBACK) (BUTTON, BUTTONEVENT) | 
| Type for button event callback functions.  More... | |
Enumerations | |
| enum | BUTTON { BUTTON0 , BUTTON1 } | 
| Identifiers for all available buttons.  More... | |
| enum | BUTTONSTATE { UNKNOWN , PRESSED , RELEASED } | 
| States for buttons.  More... | |
| enum | BUTTONEVENT { ONPRESS , ONRELEASE } | 
| Events for buttons.  More... | |
Functions | |
| int8_t | sb_button_registerCallback (BUTTON btn, BUTTONEVENT eve, BUTTONCALLBACK callback) | 
| Register a callback function for a button event.  More... | |
| int8_t | sb_button_unregisterCallback (BUTTON btn, BUTTONEVENT eve, BUTTONCALLBACK callback) | 
| Unregister a callback function for a button event.  More... | |
| BUTTONSTATE | sb_button_getState (BUTTON btn) | 
| Query the current state of a button.  More... | |
Detailed Description
- Version
 - $Rev: 7715 $