Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Chili temperature sensing app functions for coordinator. 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"
Chili temperature sensing app functions for coordinator.
void TEMPSENSE_APP_Coordinator_AssociateResponse | ( | struct MLME_ASSOCIATE_indication_pset * | params, |
struct ca821x_dev * | pDeviceRef | ||
) |
TEMPSENSE App.
Coordinator Association Response
TEMPSENSE App.
Checks and displays ED from both Sides
ed_ts | - ED received at Temperature Sensor (Device) |
ed_coord | - ED received locally (Coordinator) |
TEMPSENSE App.
Checks and displays LQI from both Sides
lqi_ts | - LQI received at Temperature Sensor (Device) |
lqi_coord | - LQI received locally (Coordinator) |
void TEMPSENSE_APP_Coordinator_CheckTimeouts | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE App.
Coordinator Timeout Check for all Devices
void TEMPSENSE_APP_Coordinator_CheckVbatt | ( | u16_t | vbat | ) |
TEMPSENSE App.
Checks and displays Battery Voltage
vbat | - 12-bit Battery Voltage Reading from Device |
void TEMPSENSE_APP_Coordinator_DisplayData | ( | u8_t | device, |
u8_t | edcoord, | ||
struct MCPS_DATA_indication_pset * | params, | ||
struct ca821x_dev * | pDeviceRef | ||
) |
TEMPSENSE App.
Coordinator check and display Data Packet
device | - device number |
edcoord | - ED received locally (Coordinator) |
params | - Buffer containing data indication with data to display |
pDeviceRef | - Pointer to initialised ca821x_device_ref struct |
void TEMPSENSE_APP_Coordinator_Handler | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE Application Handler for Coordinator.
void TEMPSENSE_APP_Coordinator_Initialise | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE Application Initialisation for Coordinator.
void TEMPSENSE_APP_Coordinator_ProcessDataCnf | ( | struct MCPS_DATA_confirm_pset * | params, |
struct ca821x_dev * | pDeviceRef | ||
) |
Coordinator Process incoming Data Confirmations.
void TEMPSENSE_APP_Coordinator_ProcessDataInd | ( | struct MCPS_DATA_indication_pset * | params, |
struct ca821x_dev * | pDeviceRef | ||
) |
Coordinator Process incoming Data Indications.
void TEMPSENSE_APP_Coordinator_ProcessScanCnf | ( | struct MLME_SCAN_confirm_pset * | params, |
struct ca821x_dev * | pDeviceRef | ||
) |
Coordinator Process incoming Scan Confirm.
void TEMPSENSE_APP_Coordinator_ReportStatus | ( | void | ) |
TEMPSENSE App.
Coordinator Report Network Status
void TEMPSENSE_APP_Coordinator_SoftReinit | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE App.
Coordinator Soft Reset (no change in PIB)
void TEMPSENSE_APP_Coordinator_Start | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE App.
Coordinator Start Procedure
pDeviceRef | - pointer to a CA-821x Device reference struct |