dragoon  4383
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ble_ranges.h
1 /*
2  * Copyright (c) 2012 - 2017, Nordic Semiconductor ASA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without modification,
6  * are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice, this
9  * list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form, except as embedded into a Nordic
12  * Semiconductor ASA integrated circuit in a product or a software update for
13  * such product, must reproduce the above copyright notice, this list of
14  * conditions and the following disclaimer in the documentation and/or other
15  * materials provided with the distribution.
16  *
17  * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18  * contributors may be used to endorse or promote products derived from this
19  * software without specific prior written permission.
20  *
21  * 4. This software, with or without modification, must only be used with a
22  * Nordic Semiconductor ASA integrated circuit.
23  *
24  * 5. Any software provided in binary form under this license must not be reverse
25  * engineered, decompiled, modified and/or disassembled.
26  *
27  * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
28  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29  * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
30  * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
31  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
33  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
36  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37  */
38 
59 #ifndef BLE_RANGES_H__
60 #define BLE_RANGES_H__
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
66 #define BLE_SVC_BASE 0x60
67 #define BLE_SVC_LAST 0x6B
69 #define BLE_GAP_SVC_BASE 0x6C
70 #define BLE_GAP_SVC_LAST 0x93
72 #define BLE_GATTC_SVC_BASE 0x94
73 #define BLE_GATTC_SVC_LAST 0x9F
75 #define BLE_GATTS_SVC_BASE 0xA0
76 #define BLE_GATTS_SVC_LAST 0xAF
78 #define BLE_L2CAP_SVC_BASE 0xB0
79 #define BLE_L2CAP_SVC_LAST 0xBF
82 #define BLE_EVT_INVALID 0x00
84 #define BLE_EVT_BASE 0x01
85 #define BLE_EVT_LAST 0x0F
87 #define BLE_GAP_EVT_BASE 0x10
88 #define BLE_GAP_EVT_LAST 0x2F
90 #define BLE_GATTC_EVT_BASE 0x30
91 #define BLE_GATTC_EVT_LAST 0x4F
93 #define BLE_GATTS_EVT_BASE 0x50
94 #define BLE_GATTS_EVT_LAST 0x6F
96 #define BLE_L2CAP_EVT_BASE 0x70
97 #define BLE_L2CAP_EVT_LAST 0x8F
100 #define BLE_OPT_INVALID 0x00
102 #define BLE_OPT_BASE 0x01
103 #define BLE_OPT_LAST 0x1F
105 #define BLE_GAP_OPT_BASE 0x20
106 #define BLE_GAP_OPT_LAST 0x3F
108 #define BLE_GATT_OPT_BASE 0x40
109 #define BLE_GATT_OPT_LAST 0x5F
111 #define BLE_GATTC_OPT_BASE 0x60
112 #define BLE_GATTC_OPT_LAST 0x7F
114 #define BLE_GATTS_OPT_BASE 0x80
115 #define BLE_GATTS_OPT_LAST 0x9F
117 #define BLE_L2CAP_OPT_BASE 0xA0
118 #define BLE_L2CAP_OPT_LAST 0xBF
121 #define BLE_CFG_INVALID 0x00
123 #define BLE_CFG_BASE 0x01
124 #define BLE_CFG_LAST 0x1F
126 #define BLE_CONN_CFG_BASE 0x20
127 #define BLE_CONN_CFG_LAST 0x3F
129 #define BLE_GAP_CFG_BASE 0x40
130 #define BLE_GAP_CFG_LAST 0x5F
132 #define BLE_GATT_CFG_BASE 0x60
133 #define BLE_GATT_CFG_LAST 0x7F
135 #define BLE_GATTC_CFG_BASE 0x80
136 #define BLE_GATTC_CFG_LAST 0x9F
138 #define BLE_GATTS_CFG_BASE 0xA0
139 #define BLE_GATTS_CFG_LAST 0xBF
141 #define BLE_L2CAP_CFG_BASE 0xC0
142 #define BLE_L2CAP_CFG_LAST 0xDF
148 #ifdef __cplusplus
149 }
150 #endif
151 #endif /* BLE_RANGES_H__ */
152