Cordio Stack and Cordio Profiles
r2p3-02rel0
Main Page
Usage and Description
Reference
cfg_stack.h
Go to the documentation of this file.
1
/*************************************************************************************************/
2
/*!
3
* \file
4
*
5
* \brief Stack configuration.
6
*
7
* Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved.
8
* Arm Ltd. confidential and proprietary.
9
*
10
* IMPORTANT. Your use of this file is governed by a Software License Agreement
11
* ("Agreement") that must be accepted in order to download or otherwise receive a
12
* copy of this file. You may not use or copy this file for any purpose other than
13
* as described in the Agreement. If you do not agree to all of the terms of the
14
* Agreement do not use this file and delete all copies in your possession or control;
15
* if you do not have a copy of the Agreement, you must contact Arm Ltd. prior
16
* to any use, copying or further distribution of this software.
17
*/
18
/*************************************************************************************************/
19
#ifndef CFG_STACK_H
20
#define CFG_STACK_H
21
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/*! \addtogroup STACK_INIT
28
* \{ */
29
30
/**************************************************************************************************
31
STACK VERSION
32
**************************************************************************************************/
33
34
/*! \brief Stack release version number */
35
#define STACK_VERSION ((const char *)"r2p3-02rel0\n")
36
37
/**************************************************************************************************
38
HCI
39
**************************************************************************************************/
40
41
/** \name HCI Vendor Specific targets
42
*
43
*/
44
/**@{*/
45
#define HCI_VS_GENERIC 0
46
#define HCI_VS_EMM 1
47
48
/*! \brief Vendor specific target configuration */
49
#ifndef HCI_VS_TARGET
50
#define HCI_VS_TARGET HCI_VS_GENERIC
51
#endif
52
/**@}*/
53
54
/** \name HCI Tx Data Tailroom
55
* Extra byte allocation required for LL operations (i.e. MIC) in single-chip implementation
56
*/
57
/**@{*/
58
#ifndef HCI_TX_DATA_TAILROOM
59
/*! \brief Tx data tailroom. */
60
#define HCI_TX_DATA_TAILROOM 0
61
#endif
62
/**@}*/
63
64
/**************************************************************************************************
65
DM
66
**************************************************************************************************/
67
68
/** \name DM Configuration
69
* DM build-time configuration parameters
70
*/
71
/**@{*/
72
/*! \brief Maximum number of connections */
73
#ifndef DM_CONN_MAX
74
#define DM_CONN_MAX 3
75
#endif
76
77
/*! \brief Maximum number of periodic advertising synchronizations */
78
#ifndef DM_SYNC_MAX
79
#define DM_SYNC_MAX 1
80
#endif
81
82
/*! \brief Number of supported advertising sets: must be set to 1 for legacy advertising */
83
#ifndef DM_NUM_ADV_SETS
84
#define DM_NUM_ADV_SETS 1
85
#endif
86
87
/*! \brief Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for
88
legacy scanner and initiator */
89
#ifndef DM_NUM_PHYS
90
#define DM_NUM_PHYS 1
91
#endif
92
/**@}*/
93
94
/**************************************************************************************************
95
L2C
96
**************************************************************************************************/
97
98
/** \name L2CAP Configuration
99
* L2CAP build-time configuration parameters
100
*/
101
/**@{*/
102
/*! \brief Maximum number of connection oriented channels */
103
#ifndef L2C_COC_CHAN_MAX
104
#define L2C_COC_CHAN_MAX 8
105
#endif
106
107
/*! \brief Maximum number of connection oriented channel registered clients */
108
#ifndef L2C_COC_REG_MAX
109
#define L2C_COC_REG_MAX 4
110
#endif
111
/**@}*/
112
113
/**************************************************************************************************
114
ATT
115
**************************************************************************************************/
116
117
/** \name ATT Configuration
118
* ATT build-time configuration parameters
119
*/
120
/**@{*/
121
/*! \brief Maximum number of simultanous ATT notifications */
122
#ifndef ATT_NUM_SIMUL_NTF
123
#define ATT_NUM_SIMUL_NTF 1
124
#endif
125
/**@}*/
126
127
/**************************************************************************************************
128
SMP
129
**************************************************************************************************/
130
131
132
/*************************************************************************************************/
133
/*!
134
* \brief Get Stack version number.
135
*
136
* \param pVersion output parameter for version number.
137
*
138
* \return None.
139
*/
140
/*************************************************************************************************/
141
void
StackGetVersionNumber
(
const
char
**pVersion);
142
143
/*! \} */
/* STACK_INIT */
144
145
#ifdef __cplusplus
146
};
147
#endif
148
149
#endif
/* CFG_STACK_H */
StackGetVersionNumber
void StackGetVersionNumber(const char **pVersion)
Get Stack version number.
Copyright © 2017-2018 Arm Ltd. All rights reserved.
Arm Confidential
Cordio Stack and Cordio Profiles