Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_app_click_batt.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_batt.h"
#include "devboard_btn.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_batt.c:

Macros

#define CLICK1_TYPE   STYPE_THERMO3
 
#define CLICK2_TYPE   STYPE_NONE
 
#define GET_CHARGE_STAT   1
 
#define GET_VOLTS   1
 
#define GET_USB_PRESENT   0
 
#define USE_SLEEP_MODE   1
 
#define USE_POWER_CONTROL_ON_POWERDOWN   1
 
#define USE_ADDITIONAL_WAKEUP_BUTTON   0
 
#define NO_LED   0
 
#define MEASUREMENT_PERIOD   5000
 

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

◆ CLICK1_TYPE

#define CLICK1_TYPE   STYPE_THERMO3

◆ CLICK2_TYPE

#define CLICK2_TYPE   STYPE_NONE

◆ GET_CHARGE_STAT

#define GET_CHARGE_STAT   1

◆ GET_USB_PRESENT

#define GET_USB_PRESENT   0

◆ GET_VOLTS

#define GET_VOLTS   1

◆ MEASUREMENT_PERIOD

#define MEASUREMENT_PERIOD   5000

◆ NO_LED

#define NO_LED   0

◆ USE_ADDITIONAL_WAKEUP_BUTTON

#define USE_ADDITIONAL_WAKEUP_BUTTON   0

◆ USE_POWER_CONTROL_ON_POWERDOWN

#define USE_POWER_CONTROL_ON_POWERDOWN   1

◆ 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