Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Callbacks and associated timers for the buttons. More...
#include <baremetal/cascoda-bm-ui/include/cascoda_btn.h>
Public Attributes | |
btn_callback | shortPressCallback |
Callback function for a short button press. More... | |
void * | shortPressContext |
Context for shortPressCallback. More... | |
btn_callback | longPressCallback |
Callback function for a long button press. More... | |
void * | longPressContext |
Context for longPressCallback. More... | |
btn_callback | holdCallback |
Callback function for when the button is held. More... | |
void * | holdContext |
Context for holdCallback. More... | |
uint32_t | currentPressTime |
Time [ms] when the button has been pressed. More... | |
uint32_t | longPressTimeThreshold |
Time limit [ms] above which a button press is considered a long press. More... | |
uint32_t | holdTimeInterval |
Time interval [ms] for triggering the hold function. More... | |
uint32_t | holdTimeLast |
Time [ms] when hold callback was last called. More... | |
uint8_t | lastState |
Last button state. More... | |
uint8_t | shortPressMode |
Short Press callback when pressed or on release. More... | |
Callbacks and associated timers for the buttons.
uint32_t btn_callback_info::currentPressTime |
Time [ms] when the button has been pressed.
btn_callback btn_callback_info::holdCallback |
Callback function for when the button is held.
void* btn_callback_info::holdContext |
Context for holdCallback.
uint32_t btn_callback_info::holdTimeInterval |
Time interval [ms] for triggering the hold function.
uint32_t btn_callback_info::holdTimeLast |
Time [ms] when hold callback was last called.
uint8_t btn_callback_info::lastState |
Last button state.
btn_callback btn_callback_info::longPressCallback |
Callback function for a long button press.
void* btn_callback_info::longPressContext |
Context for longPressCallback.
uint32_t btn_callback_info::longPressTimeThreshold |
Time limit [ms] above which a button press is considered a long press.
btn_callback btn_callback_info::shortPressCallback |
Callback function for a short button press.
void* btn_callback_info::shortPressContext |
Context for shortPressCallback.
uint8_t btn_callback_info::shortPressMode |
Short Press callback when pressed or on release.