Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_app_click.c File Reference

test15_4 main program loop and supporting functions More...

#include <stdio.h>
#include <stdlib.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "devboard_btn.h"
#include "devboard_btn_ext.h"
#include "devboard_click.h"
#include "airquality4_click.h"
#include "ambient8_click.h"
#include "environment2_click.h"
#include "fan_click.h"
#include "hvac_click.h"
#include "motion_click.h"
#include "relay_click.h"
#include "sht_click.h"
#include "thermo3_click.h"
#include "thermo_click.h"
#include "devboard_click_handlers_default.h"
Include dependency graph for devboard_app_click.c:

Macros

#define CLICK1_TYPE   STYPE_EXPAND13
 
#define CLICK2_TYPE   STYPE_NONE
 
#define USE_SLEEP_MODE   1
 
#define USE_POWER_CONTROL_ON_POWERDOWN   0
 
#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 MEASUREMENT_PERIOD   10000
 

Functions

void hardware_init (void)
 
void hardware_poll (void)
 
bool hardware_can_sleep (void)
 
void hardware_sleep (struct ca821x_dev *pDeviceRef)
 
void hardware_reinitialise (void)
 
int main (void)
 

Variables

const char * click_name_default []
 
u32_t sgp40_sampling_interval = MEASUREMENT_PERIOD
 

Detailed Description

test15_4 main program loop and supporting functions

Macro Definition Documentation

◆ 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 */

◆ CLICK1_TYPE

#define CLICK1_TYPE   STYPE_EXPAND13

◆ CLICK2_TYPE

#define CLICK2_TYPE   STYPE_NONE

◆ MEASUREMENT_PERIOD

#define MEASUREMENT_PERIOD   10000

◆ USE_POWER_CONTROL_ON_POWERDOWN

#define USE_POWER_CONTROL_ON_POWERDOWN   0

◆ USE_SLEEP_MODE

#define USE_SLEEP_MODE   1

Function Documentation

◆ hardware_can_sleep()

bool hardware_can_sleep ( void  )

◆ hardware_init()

void hardware_init ( 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

◆ click_name_default

const char* click_name_default[]
extern

◆ sgp40_sampling_interval

u32_t sgp40_sampling_interval = MEASUREMENT_PERIOD