32 #ifndef CASCODA_BTN_EXT_H
33 #define CASCODA_BTN_EXT_H
38 #define NUM_LEDBTN_EXT 8
112 uint8_t shortPressMode);
126 uint32_t timeThreshold);
void(* btn_callback)(void *context)
Definition: cascoda_btn.h:84
ca_error Btn_DeRegisterExt(uint8_t ledBtn)
De-Register an LED or Button Pin.
Definition: cascoda_btn_ext.c:114
ca_error Btn_SetButtonLongPressCallbackExt(uint8_t ledBtn, btn_callback callback, void *context, uint32_t timeThreshold)
Set a callback function to a button when it is long pressed.
Definition: cascoda_btn_ext.c:197
bool Btn_CanSleepExt(void)
Check if all buttons have been handled.
Definition: cascoda_btn_ext.c:262
ca_error Btn_SetButtonHoldCallbackExt(uint8_t ledBtn, btn_callback callback, void *context, uint32_t TimeInterval)
Set a callback function to a button when it is held.
Definition: cascoda_btn_ext.c:215
ca_error Btn_CheckInputOrButtonExt(uint8_t ledBtn)
check if valid input/Button
Definition: cascoda_btn_ext.c:152
ca_error Btn_PollButtonsExt(uint8_t port)
Main polling function to activate callbacks for any buttons that are currently being pressed.
Definition: cascoda_btn_ext.c:233
ca_error Btn_RegisterGeneralInputExt(uint8_t ledBtn)
Set the functionality to be a general input (no interrupt, polling only)
Definition: cascoda_btn_ext.c:97
ca_error Btn_CheckOutputExt(uint8_t ledBtn)
check if valid output/LED
Definition: cascoda_btn_ext.c:138
bool Btn_HasButtonExt(void)
Check if any button declared.
Definition: cascoda_btn_ext.c:166
ca_error Btn_RegisterButtonInputExt(uint8_t ledBtn)
Set the functionality of a button to be an input.
Definition: cascoda_btn_ext.c:77
ca_error Btn_SetButtonShortPressCallbackExt(uint8_t ledBtn, btn_callback callback, void *context, uint8_t shortPressMode)
Set a callback function to a button when it is short pressed.
Definition: cascoda_btn_ext.c:176
ca_error Btn_RegisterOutputExt(uint8_t ledBtn)
Set the functionality as output/LED.
Definition: cascoda_btn_ext.c:57
ca_error
Cascoda error type.
Definition: ca821x_error.h:51