|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Chili temperature sensing app functions for device and 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"
Functions | |
| void | TEMPSENSE_APP_Handler (struct ca821x_dev *pDeviceRef) |
| TEMPSENSE Application Handler. More... | |
| void | TEMPSENSE_APP_Initialise (struct ca821x_dev *pDeviceRef) |
| TEMPSENSE Application Initialisation of MAC etc. More... | |
| int | TEMPSENSE_APP_UpStreamDispatch (struct SerialBuffer *SerialRxBuffer, struct ca821x_dev *pDeviceRef) |
| TEMPSENSE Dispatch Branch (UpStream, Serial) More... | |
| void | TEMPSENSE_APP_SwitchMode (u8_t mode) |
| TEMPSENSE Switch Mode. More... | |
| void | TEMPSENSE_APP_InitPIB (struct ca821x_dev *pDeviceRef) |
| TEMPSENSE Application Initialisation of MAC PIB. More... | |
| u8_t | TEMPSENSE_APP_GetTempVal (void) |
| TEMPSENSE App. More... | |
| u16_t | TEMPSENSE_APP_GetVoltsVal (void) |
| TEMPSENSE App. More... | |
| u32_t | TEMPSENSE_APP_GetScanChannels (void) |
| TEMPSENSE App. More... | |
| void | TEMPSENSE_APP_PrintScanChannels (void) |
| TEMPSENSE App. More... | |
| void | TEMPSENSE_APP_PrintSeconds (void) |
| Prints AboluteTime in Seconds. More... | |
| void | TEMPSENSE_APP_LED_Handler (void) |
| module LEDs signalling More... | |
Variables | |
| u8_t | APP_STATE = APP_ST_NORMAL |
| module state More... | |
| u8_t | APP_STATE_new = APP_ST_NORMAL |
| module state set in interrupts More... | |
| u8_t | APP_INITIALISE = 0 |
| flag for re-initialising application More... | |
| u8_t | APP_CONNECTED = 0 |
| sensor module is connected to coordinator More... | |
| u16_t | APP_PANId |
| u16_t | APP_ShortAddress |
| u8_t | APP_LongAddress [8] |
| u8_t | APP_Channel = 18 |
Chili temperature sensing app functions for device and coordinator.
| u32_t TEMPSENSE_APP_GetScanChannels | ( | void | ) |
TEMPSENSE App.
Get ScanChannels from MAC_CHANNELLIST
| u8_t TEMPSENSE_APP_GetTempVal | ( | void | ) |
TEMPSENSE App.
Get Temperature Reading
| u16_t TEMPSENSE_APP_GetVoltsVal | ( | void | ) |
TEMPSENSE App.
Get Battery Voltage Reading
| void TEMPSENSE_APP_Handler | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE Application Handler.
| void TEMPSENSE_APP_Initialise | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE Application Initialisation of MAC etc.
| void TEMPSENSE_APP_InitPIB | ( | struct ca821x_dev * | pDeviceRef | ) |
TEMPSENSE Application Initialisation of MAC PIB.
| void TEMPSENSE_APP_LED_Handler | ( | void | ) |
module LEDs signalling
| void TEMPSENSE_APP_PrintScanChannels | ( | void | ) |
TEMPSENSE App.
Print MAC_CHANNELLIST
| void TEMPSENSE_APP_PrintSeconds | ( | void | ) |
Prints AboluteTime in Seconds.
| void TEMPSENSE_APP_SwitchMode | ( | u8_t | mode | ) |
TEMPSENSE Switch Mode.
| int TEMPSENSE_APP_UpStreamDispatch | ( | struct SerialBuffer * | SerialRxBuffer, |
| struct ca821x_dev * | pDeviceRef | ||
| ) |
TEMPSENSE Dispatch Branch (UpStream, Serial)
| u8_t APP_Channel = 18 |
| u8_t APP_CONNECTED = 0 |
sensor module is connected to coordinator
| u8_t APP_INITIALISE = 0 |
flag for re-initialising application
| u8_t APP_LongAddress[8] |
| u16_t APP_PANId |
| u16_t APP_ShortAddress |
| u8_t APP_STATE = APP_ST_NORMAL |
module state
| u8_t APP_STATE_new = APP_ST_NORMAL |
module state set in interrupts