Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Loading...
Searching...
No Matches
tempsense_debug.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 */
32
34
35#ifndef TEMPSENSE_DEBUG_H
36#define TEMPSENSE_DEBUG_H
37
38/******************************************************************************/
39/****** Debug Definitions ******/
40/******************************************************************************/
41#define DEBUG_INTERVALL 4
42#define DEBUG_CHANNEL 26
43
44/******************************************************************************/
45/****** Global Variables ******/
46/******************************************************************************/
47
58extern u8_t Debug_Sent;
59
60/******************************************************************************/
61/****** Debug Functions ******/
62/******************************************************************************/
63
64/******************************************************************************/
65/***************************************************************************/
69void APP_Debug_Send(struct ca821x_dev *pDeviceRef);
70
71/******************************************************************************/
72/***************************************************************************/
76int APP_Debug_Sent(struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef);
77
78/******************************************************************************/
79/***************************************************************************/
83void APP_Debug_Reset(void);
84
85/******************************************************************************/
86/***************************************************************************/
93
94/******************************************************************************/
95/***************************************************************************/
102
103#endif // TEMPSENSE_DEBUG_H
Type definitions used by Cascoda baremetal drivers.
unsigned char u8_t
Definition cascoda_types.h:46
MCPS_DATA_confirm parameter set.
Definition mac_messages.h:357
CA-821x Device reference struct.
Definition ca821x_api.h:123
void APP_Debug_Error(u8_t code)
Assign Error Code.
u8_t Debug_App_State
Debug_App_State Conventions: 0x00: reset after sending Debug packet or not in Application Mode 0xA*: ...
void APP_Debug_SetAppState(u8_t state)
Set Application Debug State.
void APP_Debug_Reset(void)
Reset all APP Level Debug Codes.
int APP_Debug_Sent(struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
Debug Frame has been sent.
void APP_Debug_Send(struct ca821x_dev *pDeviceRef)
Send Debug Frame.
u8_t Debug_Sent
u8_t Debug_App_Error