TI BLE-Stack for Bluetooth 4.2 API Documentation
3.01.00.07
.build.ble3.cc2640
api-sources
ble-core
source
ti
blestack
osal
src
inc
comdef.h
Go to the documentation of this file.
1
/******************************************************************************
2
3
Group: WCS, LPC, BTS
4
$Target Device: DEVICES $
5
6
******************************************************************************
7
$License: BSD3 2004 $
8
******************************************************************************
9
$Release Name: PACKAGE NAME $
10
$Release Date: PACKAGE RELEASE DATE $
11
*****************************************************************************/
12
18
#ifndef COMDEF_H
19
#define COMDEF_H
20
21
#ifdef __cplusplus
22
extern
"C"
23
{
24
#endif
25
26
27
/*********************************************************************
28
* INCLUDES
29
*/
30
31
/* HAL */
32
#include "hal_types.h"
33
#include "hal_defs.h"
34
36
37
/*********************************************************************
38
* Lint Keywords
39
*/
40
#define VOID (void)
41
42
#define NULL_OK
43
#define INP
44
#define OUTP
45
#define UNUSED
46
#define ONLY
47
#define READONLY
48
#define SHARED
49
#define KEEP
50
#define RELAX
51
52
/*********************************************************************
53
* CONSTANTS
54
*/
55
56
#ifndef false
57
#define false 0
58
#endif
59
60
#ifndef true
61
#define true 1
62
#endif
63
64
#ifndef CONST
65
#define CONST const
66
#endif
67
68
#ifndef GENERIC
69
#define GENERIC
70
#endif
71
73
74
/*** Generic Status Return Values ***/
75
#define SUCCESS 0x00
76
#define FAILURE 0x01
77
#define INVALIDPARAMETER 0x02
78
#define INVALID_TASK 0x03
79
#define MSG_BUFFER_NOT_AVAIL 0x04
80
#define INVALID_MSG_POINTER 0x05
81
#define INVALID_EVENT_ID 0x06
82
#define INVALID_INTERRUPT_ID 0x07
83
#define NO_TIMER_AVAIL 0x08
84
#define NV_ITEM_UNINIT 0x09
85
#define NV_OPER_FAILED 0x0A
86
#define INVALID_MEM_SIZE 0x0B
87
#define NV_BAD_ITEM_LEN 0x0C
88
89
/*********************************************************************
90
* TYPEDEFS
91
*/
92
94
95
// Generic Status return
96
typedef
uint8 Status_t;
97
98
// Data types
99
typedef
int32 int24;
100
typedef
uint32 uint24;
101
103
104
/*********************************************************************
105
* Global System Events
106
*/
107
108
#define SYS_EVENT_MSG 0x8000
109
110
/*********************************************************************
111
* Global Generic System Messages
112
*/
113
114
#define KEY_CHANGE 0xC0
115
116
// OSAL System Message IDs/Events Reserved for applications (user applications)
117
// 0xE0 - 0xFC
118
119
/*********************************************************************
120
* MACROS
121
*/
122
123
/*********************************************************************
124
* GLOBAL VARIABLES
125
*/
126
127
/*********************************************************************
128
* FUNCTIONS
129
*/
130
131
/*********************************************************************
132
*********************************************************************/
133
134
#ifdef __cplusplus
135
}
136
#endif
137
138
#endif
/* COMDEF_H */
Copyright 2017, Texas Instruments Incorporated