Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
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"
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 |
test15_4 main program loop and supporting functions
#define BTN_HOLD_TIME_INTERVAL 400 /* Time intervall for button hold time function */ |
#define BTN_LONG_TIME_THRESHOLD 2000 /* time threshold to trigger button long function */ |
#define CLICK1_TYPE STYPE_EXPAND13 |
#define CLICK2_TYPE STYPE_NONE |
#define MEASUREMENT_PERIOD 10000 |
#define USE_POWER_CONTROL_ON_POWERDOWN 0 |
#define USE_SLEEP_MODE 1 |
bool hardware_can_sleep | ( | void | ) |
void hardware_init | ( | void | ) |
void hardware_poll | ( | void | ) |
void hardware_reinitialise | ( | void | ) |
void hardware_sleep | ( | struct ca821x_dev * | pDeviceRef | ) |
int main | ( | void | ) |
|
extern |
u32_t sgp40_sampling_interval = MEASUREMENT_PERIOD |