Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
tempsense_app_device.c File Reference

Chili temperature sensing app functions for device. More...

#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "tempsense_app.h"
#include "tempsense_evbme.h"
Include dependency graph for tempsense_app_device.c:

Functions

void TEMPSENSE_APP_Device_Handler (struct ca821x_dev *pDeviceRef)
 TEMPSENSE Application Handler for Sensor Device. More...
 
void TEMPSENSE_APP_Device_Initialise (struct ca821x_dev *pDeviceRef)
 TEMPSENSE Application Initialisation for Sensor Device. More...
 
void TEMPSENSE_APP_Device_GetLongAddress (void)
 TEMPSENSE Get Device LongAddress from Dataflash. More...
 
void TEMPSENSE_APP_Device_Start (struct ca821x_dev *pDeviceRef)
 TEMPSENSE App. More...
 
void TEMPSENSE_APP_Device_ProcessScanCnf (struct MLME_SCAN_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 Device Process incoming Scan Confirm. More...
 
void TEMPSENSE_APP_Device_ProcessAssociateCnf (struct MLME_ASSOCIATE_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 Device Process incoming Data Indications. More...
 
void TEMPSENSE_APP_Device_ProcessDataInd (struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef)
 Device Process incoming Data Indications. More...
 
void TEMPSENSE_APP_Device_ProcessDataCnf (struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 Device Process incoming Data Confirms. More...
 
void TEMPSENSE_APP_Device_ExchangeData (struct ca821x_dev *pDeviceRef)
 TEMPSENSE App. More...
 
void TEMPSENSE_APP_Device_CheckTimeout (struct ca821x_dev *pDeviceRef)
 TEMPSENSE App. More...
 
void TEMPSENSE_APP_Device_GoPowerDown (struct ca821x_dev *pDeviceRef)
 TEMPSENSE App. More...
 
void TEMPSENSE_APP_Device_SaveStateToFlash (void)
 TEMPSENSE App. More...
 
void TEMPSENSE_APP_Device_RestoreStateFromFlash (struct ca821x_dev *pDeviceRef)
 TEMPSENSE App. More...
 

Detailed Description

Chili temperature sensing app functions for device.

Function Documentation

◆ TEMPSENSE_APP_Device_CheckTimeout()

void TEMPSENSE_APP_Device_CheckTimeout ( struct ca821x_dev pDeviceRef)

TEMPSENSE App.

Device Timeout Check

◆ TEMPSENSE_APP_Device_ExchangeData()

void TEMPSENSE_APP_Device_ExchangeData ( struct ca821x_dev pDeviceRef)

TEMPSENSE App.

Start exchanging Data with Coordinator

◆ TEMPSENSE_APP_Device_GetLongAddress()

void TEMPSENSE_APP_Device_GetLongAddress ( void  )

TEMPSENSE Get Device LongAddress from Dataflash.

◆ TEMPSENSE_APP_Device_GoPowerDown()

void TEMPSENSE_APP_Device_GoPowerDown ( struct ca821x_dev pDeviceRef)

TEMPSENSE App.

Device prepare and enter sleep mode (and wake-up)

◆ TEMPSENSE_APP_Device_Handler()

void TEMPSENSE_APP_Device_Handler ( struct ca821x_dev pDeviceRef)

TEMPSENSE Application Handler for Sensor Device.

◆ TEMPSENSE_APP_Device_Initialise()

void TEMPSENSE_APP_Device_Initialise ( struct ca821x_dev pDeviceRef)

TEMPSENSE Application Initialisation for Sensor Device.

◆ TEMPSENSE_APP_Device_ProcessAssociateCnf()

void TEMPSENSE_APP_Device_ProcessAssociateCnf ( struct MLME_ASSOCIATE_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

Device Process incoming Data Indications.

◆ TEMPSENSE_APP_Device_ProcessDataCnf()

void TEMPSENSE_APP_Device_ProcessDataCnf ( struct MCPS_DATA_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

Device Process incoming Data Confirms.

◆ TEMPSENSE_APP_Device_ProcessDataInd()

void TEMPSENSE_APP_Device_ProcessDataInd ( struct MCPS_DATA_indication_pset params,
struct ca821x_dev pDeviceRef 
)

Device Process incoming Data Indications.

◆ TEMPSENSE_APP_Device_ProcessScanCnf()

void TEMPSENSE_APP_Device_ProcessScanCnf ( struct MLME_SCAN_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

Device Process incoming Scan Confirm.

◆ TEMPSENSE_APP_Device_RestoreStateFromFlash()

void TEMPSENSE_APP_Device_RestoreStateFromFlash ( struct ca821x_dev pDeviceRef)

TEMPSENSE App.

Device restore state from flash

◆ TEMPSENSE_APP_Device_SaveStateToFlash()

void TEMPSENSE_APP_Device_SaveStateToFlash ( void  )

TEMPSENSE App.

Device save state to flash

◆ TEMPSENSE_APP_Device_Start()

void TEMPSENSE_APP_Device_Start ( struct ca821x_dev pDeviceRef)

TEMPSENSE App.

Device Association Procedure