Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Loading...
Searching...
No Matches
tempsense_evbme.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2019, Cascoda Ltd.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the name of the copyright holder nor the
17 * names of its contributors may be used to endorse or promote products
18 * derived from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
34
35#ifndef TEMPSENSE_EVBME_H
36#define TEMPSENSE_EVBME_H
37
38/******************************************************************************/
39/****** EVBME TEMPSENSE Command ID Codes ******/
40/******************************************************************************/
41#define EVBME_TSENSE_SETMODE (0xC0) /* set mode (NORMAL/COORDINATOR/DEVICE) */
42#define EVBME_TSENSE_REPORT (0xC1) /* Report Network Status (COORDINATOR) */
43
44/******************************************************************************/
45/****** EVBME API Functions ******/
46/******************************************************************************/
47
48/******************************************************************************/
49/***************************************************************************/
56void TEMPSENSE_Initialise(u8_t status, struct ca821x_dev *pDeviceRef);
57
58/******************************************************************************/
59/***************************************************************************/
63void TEMPSENSE_Handler(struct ca821x_dev *pDeviceRef);
64
65/******************************************************************************/
66/***************************************************************************/
71/* Callbacks */
72
73/******************************************************************************/
74/***************************************************************************/
78void TEMPSENSE_RegisterCallbacks(struct ca821x_dev *pDeviceRef);
79
80#endif // TEMPSENSE_EVBME_H
Internal Function definitions for communicating with a host using UART/USB.
struct SerialBuffer SerialRxBuffer
Type definitions used by Cascoda baremetal drivers.
unsigned char u8_t
Definition cascoda_types.h:46
Structure of serial transfers.
Definition cascoda_serial.h:50
CA-821x Device reference struct.
Definition ca821x_api.h:123
void TEMPSENSE_Handler(struct ca821x_dev *pDeviceRef)
Chili Event Handler in Main Polling Loop.
Definition tempsense_evbme.c:105
void TEMPSENSE_RegisterCallbacks(struct ca821x_dev *pDeviceRef)
Dynamically Register Callbacks for TEMPSENSE.
Definition tempsense_evbme.c:329
void TEMPSENSE_Initialise(u8_t status, struct ca821x_dev *pDeviceRef)
Initialise Chili module for temperature sensing app.
Definition tempsense_evbme.c:48
int TEMPSENSE_UpStreamDispatch(struct SerialBuffer *SerialRxBuffer, struct ca821x_dev *pDeviceRef)
TEMPSENSE Dispatch Branch (UpStream, Serial)
Definition tempsense_evbme.c:111