Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
ot_sed_sensorif.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_sensorif.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.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 "sif_ltr303als.h"
#include "sif_si7021.h"
#include "cbor.h"
Include dependency graph for ot_sed_sensorif.c:

Enumerations

enum  {
  SENSORDATA_PERIOD = 10000 , SENSOR_POLL_DELAY = 250 , DISCOVERY_PERIOD = 30000 , DISCOVERY_POLL_DELAY = 2000 ,
  INITIAL_DELAY = 5000
}
 

Functions

int ot_reinitialise (struct ca821x_dev *pDeviceRef)
 Radio reinitialisation after sleep. More...
 
void otTaskletsSignalPending (otInstance *aInstance)
 
ca_error PollHandler (void *aContext)
 
ca_error SensorHandler (void *aContext)
 
int main (void)
 

Variables

otInstance * OT_INSTANCE
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SENSORDATA_PERIOD 
SENSOR_POLL_DELAY 
DISCOVERY_PERIOD 
DISCOVERY_POLL_DELAY 
INITIAL_DELAY 

Function Documentation

◆ main()

int main ( void  )

◆ ot_reinitialise()

int ot_reinitialise ( struct ca821x_dev pDeviceRef)

Radio reinitialisation after sleep.

◆ otTaskletsSignalPending()

void otTaskletsSignalPending ( otInstance *  aInstance)

◆ PollHandler()

ca_error PollHandler ( void *  aContext)

◆ SensorHandler()

ca_error SensorHandler ( void *  aContext)