Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_app_btn.c File Reference
Include dependency graph for devboard_app_btn.c:

Classes

struct  blink_ctx
 

Macros

#define DEF_SHORT_CB   1 /* short callback defined */
 
#define DEF_HOLD_CB   1 /* hold callback defined */
 
#define DEF_LONG_CB   1 /* long callback defined */
 
#define BTN_LONG_TIME_THRESHOLD   2000 /* time threshold to trigger button long function */
 
#define BTN_HOLD_TIME_INTERVAL   400 /* Time intervall for button hold time function */
 
#define WAKEUP_TIME   10000
 
#define USE_INTERRUPTS   1
 
#define USE_SLEEP_MODE   0
 
#define USE_SHARED_BUTTONS   0
 
#define JUMPER_POS   JUMPER_POS_1
 
#define BLINK_PERIOD_MS   500
 

Functions

void hardware_poll (void)
 
void hardware_reinitialise (void)
 
bool hardware_can_sleep (void)
 
void hardware_sleep (struct ca821x_dev *pDeviceRef)
 
ca_error blinkCB (void *_ctx)
 
int main (void)
 

Variables

ca_tasklet blink_tasklet
 

Macro Definition Documentation

◆ BLINK_PERIOD_MS

#define BLINK_PERIOD_MS   500

◆ BTN_HOLD_TIME_INTERVAL

#define BTN_HOLD_TIME_INTERVAL   400 /* Time intervall for button hold time function */

◆ BTN_LONG_TIME_THRESHOLD

#define BTN_LONG_TIME_THRESHOLD   2000 /* time threshold to trigger button long function */

◆ DEF_HOLD_CB

#define DEF_HOLD_CB   1 /* hold callback defined */

◆ DEF_LONG_CB

#define DEF_LONG_CB   1 /* long callback defined */

◆ DEF_SHORT_CB

#define DEF_SHORT_CB   1 /* short callback defined */

◆ JUMPER_POS

#define JUMPER_POS   JUMPER_POS_1

◆ USE_INTERRUPTS

#define USE_INTERRUPTS   1

◆ USE_SHARED_BUTTONS

#define USE_SHARED_BUTTONS   0

◆ USE_SLEEP_MODE

#define USE_SLEEP_MODE   0

◆ WAKEUP_TIME

#define WAKEUP_TIME   10000

Function Documentation

◆ blinkCB()

ca_error blinkCB ( void *  _ctx)

◆ hardware_can_sleep()

bool hardware_can_sleep ( void  )

◆ hardware_poll()

void hardware_poll ( void  )

◆ hardware_reinitialise()

void hardware_reinitialise ( void  )

◆ hardware_sleep()

void hardware_sleep ( struct ca821x_dev pDeviceRef)

◆ main()

int main ( void  )

Variable Documentation

◆ blink_tasklet

ca_tasklet blink_tasklet