159 #ifndef ti_drivers_Button__include 160 #define ti_drivers_Button__include 167 #include <ti/drivers/dpl/ClockP.h> 206 typedef enum Button_State
213 Button_LONGPRESSING = 3,
215 Button_LONGPRESSED = 4,
217 Button_RELEASING = 5,
219 Button_RELEASING_LONG = 6,
223 Button_DBLPRESS_DETECTION = 8,
225 Button_DBLPRESSING = 9,
227 Button_DBLPRESSED = 10,
229 Button_RELEASING_DBLPRESSED = 11
264 Button_EventMask buttonEvents);
302 typedef struct Button_StateVariables
307 uint32_t pressedStartTime;
309 uint32_t lastPressedDuration;
310 }Button_StateVariables;
322 Button_StateVariables buttonStateVariables;
406 extern Button_Handle
Button_open(uint_least8_t buttonIndex,
General Purpose I/O driver interface.