Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <stdio.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"
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 |
#define BLINK_PERIOD_MS 500 |
#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 DEF_HOLD_CB 1 /* hold callback defined */ |
#define DEF_LONG_CB 1 /* long callback defined */ |
#define DEF_SHORT_CB 1 /* short callback defined */ |
#define JUMPER_POS JUMPER_POS_1 |
#define USE_INTERRUPTS 1 |
#define USE_SHARED_BUTTONS 0 |
#define USE_SLEEP_MODE 0 |
#define WAKEUP_TIME 10000 |
ca_error blinkCB | ( | void * | _ctx | ) |
bool hardware_can_sleep | ( | void | ) |
void hardware_poll | ( | void | ) |
void hardware_reinitialise | ( | void | ) |
void hardware_sleep | ( | struct ca821x_dev * | pDeviceRef | ) |
int main | ( | void | ) |
ca_tasklet blink_tasklet |