Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_os.h"
#include "cascoda-bm/cascoda_sensorif.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "cascoda-util/cascoda_rand.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "ca821x_endian.h"
#include "openthread/coap.h"
#include "openthread/instance.h"
#include "openthread/link.h"
#include "openthread/tasklet.h"
#include "openthread/thread.h"
#include "platform.h"
#include "FreeRTOS.h"
#include "semphr.h"
#include "task.h"
#include "cbor.h"
#include "sif_il3820.h"
#include "sif_il3820_image.h"
#include "uzlib.h"
Macros | |
#define | SuccessOrExit(aCondition) |
#define | TCQR_BUFFER_SIZE 50 |
#define | IMAGE_SIZE (296 * 128 / 8) |
Functions | |
void | initialise_communications () |
int | ot_reinitialise (struct ca821x_dev *pDeviceRef) |
void | otTaskletsSignalPending (otInstance *aInstance) |
void | decompress_data () |
void | ImageHandlerTask (void *unused) |
int | main (void) |
void | vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName) |
Variables | |
const int | DISCOVER_FAIL_RETRY_MS = 3000 |
const int | DISCOVER_TIMEOUT_SLEEP_MS = 30 * 1000 |
const int | IMAGE_OK_SLEEP_MS = 8 * 1000 |
const int | IMAGE_RANDOM_SLEEP_MS = 4 * 1000 |
const int | IMAGE_FAIL_RETRY_MS = 10 * 1000 |
const char * | uriCascodaDiscover = "ca/di" |
const char * | uriCascodaTemperature = "ca/te" |
const char * | uriCascodaImage = "ca/img" |
char | uriCascodaImageRequestQuery [10] |
otInstance * | OT_INSTANCE |
struct ca821x_dev | sDeviceRef |
TaskHandle_t | CommsTaskHandle |
SemaphoreHandle_t | CommsMutexHandle |
#define IMAGE_SIZE (296 * 128 / 8) |
#define SuccessOrExit | ( | aCondition | ) |
#define TCQR_BUFFER_SIZE 50 |
void decompress_data | ( | ) |
void ImageHandlerTask | ( | void * | unused | ) |
void initialise_communications | ( | ) |
int main | ( | void | ) |
int ot_reinitialise | ( | struct ca821x_dev * | pDeviceRef | ) |
void otTaskletsSignalPending | ( | otInstance * | aInstance | ) |
void vApplicationStackOverflowHook | ( | TaskHandle_t | xTask, |
signed char * | pcTaskName | ||
) |
SemaphoreHandle_t CommsMutexHandle |
TaskHandle_t CommsTaskHandle |
const int DISCOVER_FAIL_RETRY_MS = 3000 |
const int DISCOVER_TIMEOUT_SLEEP_MS = 30 * 1000 |
const int IMAGE_FAIL_RETRY_MS = 10 * 1000 |
const int IMAGE_OK_SLEEP_MS = 8 * 1000 |
const int IMAGE_RANDOM_SLEEP_MS = 4 * 1000 |
struct ca821x_dev sDeviceRef |
const char* uriCascodaDiscover = "ca/di" |
const char* uriCascodaImage = "ca/img" |
char uriCascodaImageRequestQuery[10] |
const char* uriCascodaTemperature = "ca/te" |