Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
sed_eink.c File Reference
#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"
Include dependency graph for sed_eink.c:

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
 

Macro Definition Documentation

◆ IMAGE_SIZE

#define IMAGE_SIZE   (296 * 128 / 8)

◆ SuccessOrExit

#define SuccessOrExit (   aCondition)
Value:
do \
{ \
if ((aCondition) != 0) \
{ \
goto exit; \
} \
} while (0)

◆ TCQR_BUFFER_SIZE

#define TCQR_BUFFER_SIZE   50

Function Documentation

◆ decompress_data()

void decompress_data ( )

◆ ImageHandlerTask()

void ImageHandlerTask ( void *  unused)

◆ initialise_communications()

void initialise_communications ( )

◆ main()

int main ( void  )

◆ ot_reinitialise()

int ot_reinitialise ( struct ca821x_dev pDeviceRef)

◆ otTaskletsSignalPending()

void otTaskletsSignalPending ( otInstance *  aInstance)

◆ vApplicationStackOverflowHook()

void vApplicationStackOverflowHook ( TaskHandle_t  xTask,
signed char *  pcTaskName 
)

Variable Documentation

◆ CommsMutexHandle

SemaphoreHandle_t CommsMutexHandle

◆ CommsTaskHandle

TaskHandle_t CommsTaskHandle

◆ DISCOVER_FAIL_RETRY_MS

const int DISCOVER_FAIL_RETRY_MS = 3000

◆ DISCOVER_TIMEOUT_SLEEP_MS

const int DISCOVER_TIMEOUT_SLEEP_MS = 30 * 1000

◆ IMAGE_FAIL_RETRY_MS

const int IMAGE_FAIL_RETRY_MS = 10 * 1000

◆ IMAGE_OK_SLEEP_MS

const int IMAGE_OK_SLEEP_MS = 8 * 1000

◆ IMAGE_RANDOM_SLEEP_MS

const int IMAGE_RANDOM_SLEEP_MS = 4 * 1000

◆ sDeviceRef

struct ca821x_dev sDeviceRef

◆ uriCascodaDiscover

const char* uriCascodaDiscover = "ca/di"

◆ uriCascodaImage

const char* uriCascodaImage = "ca/img"

◆ uriCascodaImageRequestQuery

char uriCascodaImageRequestQuery[10]

◆ uriCascodaTemperature

const char* uriCascodaTemperature = "ca/te"