libspicboard-doc
button.h
Go to the documentation of this file.
46 typedef enum {
59 typedef enum {
115 * \return the buttons current state (pressed or released - or unknown if invalid button) as a \ref BUTTONSTATE
int8_t sb_button_registerCallback(BUTTON btn, BUTTONEVENT eve, BUTTONCALLBACK callback)
Register a callback function for a button event.
int8_t sb_button_unregisterCallback(BUTTON btn, BUTTONEVENT eve, BUTTONCALLBACK callback)
Unregister a callback function for a button event.
void(* BUTTONCALLBACK)(BUTTON, BUTTONEVENT)
Type for button event callback functions.
Definition: button.h:75