Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.
source/nordic_sdk/components/softdevice/s130/headers/ble_ranges.h@19:47192cb9def7, 2016-04-07 (annotated)
- Committer:
- vcoubard
- Date:
- Thu Apr 07 17:37:40 2016 +0100
- Revision:
- 19:47192cb9def7
- Parent:
- 10:233fefd8162b
- Child:
- 20:a90c48eb1d30
Synchronized with git rev 9251259f
Author: Liyou Zhou
Copy over coresponding files from nordic-sdk 9.0.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vcoubard | 19:47192cb9def7 | 1 | /* |
vcoubard | 19:47192cb9def7 | 2 | * Copyright (c) Nordic Semiconductor ASA |
vcoubard | 19:47192cb9def7 | 3 | * All rights reserved. |
vcoubard | 19:47192cb9def7 | 4 | * |
vcoubard | 19:47192cb9def7 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
vcoubard | 19:47192cb9def7 | 6 | * are permitted provided that the following conditions are met: |
vcoubard | 19:47192cb9def7 | 7 | * |
vcoubard | 19:47192cb9def7 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
vcoubard | 19:47192cb9def7 | 9 | * list of conditions and the following disclaimer. |
vcoubard | 19:47192cb9def7 | 10 | * |
vcoubard | 19:47192cb9def7 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
vcoubard | 19:47192cb9def7 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
vcoubard | 19:47192cb9def7 | 13 | * other materials provided with the distribution. |
vcoubard | 19:47192cb9def7 | 14 | * |
vcoubard | 19:47192cb9def7 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
vcoubard | 19:47192cb9def7 | 16 | * contributors to this software may be used to endorse or promote products |
vcoubard | 19:47192cb9def7 | 17 | * derived from this software without specific prior written permission. |
vcoubard | 19:47192cb9def7 | 18 | * |
vcoubard | 19:47192cb9def7 | 19 | * 4. This software must only be used in a processor manufactured by Nordic |
vcoubard | 19:47192cb9def7 | 20 | * Semiconductor ASA, or in a processor manufactured by a third party that |
vcoubard | 19:47192cb9def7 | 21 | * is used in combination with a processor manufactured by Nordic Semiconductor. |
vcoubard | 19:47192cb9def7 | 22 | * |
vcoubard | 19:47192cb9def7 | 23 | * |
vcoubard | 19:47192cb9def7 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
vcoubard | 19:47192cb9def7 | 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
vcoubard | 19:47192cb9def7 | 26 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
vcoubard | 19:47192cb9def7 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
vcoubard | 19:47192cb9def7 | 28 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
vcoubard | 19:47192cb9def7 | 29 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
vcoubard | 19:47192cb9def7 | 30 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
vcoubard | 19:47192cb9def7 | 31 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
vcoubard | 19:47192cb9def7 | 32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
vcoubard | 19:47192cb9def7 | 33 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
vcoubard | 19:47192cb9def7 | 34 | * |
vcoubard | 1:ebc0e0ef0a11 | 35 | */ |
vcoubard | 1:ebc0e0ef0a11 | 36 | |
vcoubard | 1:ebc0e0ef0a11 | 37 | /** |
vcoubard | 1:ebc0e0ef0a11 | 38 | @addtogroup BLE_COMMON |
vcoubard | 1:ebc0e0ef0a11 | 39 | @{ |
vcoubard | 1:ebc0e0ef0a11 | 40 | @defgroup ble_ranges Module specific SVC, event and option number subranges |
vcoubard | 1:ebc0e0ef0a11 | 41 | @{ |
vcoubard | 1:ebc0e0ef0a11 | 42 | |
vcoubard | 1:ebc0e0ef0a11 | 43 | @brief Definition of SVC, event and option number subranges for each API module. |
vcoubard | 1:ebc0e0ef0a11 | 44 | |
vcoubard | 1:ebc0e0ef0a11 | 45 | @note |
vcoubard | 1:ebc0e0ef0a11 | 46 | SVCs, event and option numbers are split into subranges for each API module. |
vcoubard | 1:ebc0e0ef0a11 | 47 | Each module receives its entire allocated range of SVC calls, whether implemented or not, |
vcoubard | 1:ebc0e0ef0a11 | 48 | but return BLE_ERROR_NOT_SUPPORTED for unimplemented or undefined calls in its range. |
vcoubard | 1:ebc0e0ef0a11 | 49 | |
vcoubard | 1:ebc0e0ef0a11 | 50 | Note that the symbols BLE_<module>_SVC_LAST is the end of the allocated SVC range, |
vcoubard | 1:ebc0e0ef0a11 | 51 | rather than the last SVC function call actually defined and implemented. |
vcoubard | 1:ebc0e0ef0a11 | 52 | |
vcoubard | 1:ebc0e0ef0a11 | 53 | Specific SVC, event and option values are defined in each module's ble_<module>.h file, |
vcoubard | 1:ebc0e0ef0a11 | 54 | which defines names of each individual SVC code based on the range start value. |
vcoubard | 1:ebc0e0ef0a11 | 55 | */ |
vcoubard | 1:ebc0e0ef0a11 | 56 | |
vcoubard | 1:ebc0e0ef0a11 | 57 | #ifndef BLE_RANGES_H__ |
vcoubard | 1:ebc0e0ef0a11 | 58 | #define BLE_RANGES_H__ |
vcoubard | 1:ebc0e0ef0a11 | 59 | |
vcoubard | 1:ebc0e0ef0a11 | 60 | #define BLE_SVC_BASE 0x60 /**< Common BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 61 | #define BLE_SVC_LAST 0x6B /**< Total: 12. */ |
vcoubard | 1:ebc0e0ef0a11 | 62 | |
vcoubard | 1:ebc0e0ef0a11 | 63 | #define BLE_RESERVED_SVC_BASE 0x6C /**< Reserved BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 64 | #define BLE_RESERVED_SVC_LAST 0x6F /**< Total: 4. */ |
vcoubard | 1:ebc0e0ef0a11 | 65 | |
vcoubard | 1:ebc0e0ef0a11 | 66 | #define BLE_GAP_SVC_BASE 0x70 /**< GAP BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 67 | #define BLE_GAP_SVC_LAST 0x8F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 68 | |
vcoubard | 1:ebc0e0ef0a11 | 69 | #define BLE_GATTC_SVC_BASE 0x90 /**< GATTC BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 70 | #define BLE_GATTC_SVC_LAST 0x9F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 71 | |
vcoubard | 1:ebc0e0ef0a11 | 72 | #define BLE_GATTS_SVC_BASE 0xA0 /**< GATTS BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 73 | #define BLE_GATTS_SVC_LAST 0xAF /**< Total: 16. */ |
vcoubard | 1:ebc0e0ef0a11 | 74 | |
vcoubard | 1:ebc0e0ef0a11 | 75 | #define BLE_L2CAP_SVC_BASE 0xB0 /**< L2CAP BLE SVC base. */ |
vcoubard | 1:ebc0e0ef0a11 | 76 | #define BLE_L2CAP_SVC_LAST 0xBF /**< Total: 16. */ |
vcoubard | 1:ebc0e0ef0a11 | 77 | |
vcoubard | 1:ebc0e0ef0a11 | 78 | |
vcoubard | 1:ebc0e0ef0a11 | 79 | #define BLE_EVT_INVALID 0x00 /**< Invalid BLE Event. */ |
vcoubard | 1:ebc0e0ef0a11 | 80 | |
vcoubard | 1:ebc0e0ef0a11 | 81 | #define BLE_EVT_BASE 0x01 /**< Common BLE Event base. */ |
vcoubard | 1:ebc0e0ef0a11 | 82 | #define BLE_EVT_LAST 0x0F /**< Total: 15. */ |
vcoubard | 1:ebc0e0ef0a11 | 83 | |
vcoubard | 1:ebc0e0ef0a11 | 84 | #define BLE_GAP_EVT_BASE 0x10 /**< GAP BLE Event base. */ |
vcoubard | 1:ebc0e0ef0a11 | 85 | #define BLE_GAP_EVT_LAST 0x2F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 86 | |
vcoubard | 1:ebc0e0ef0a11 | 87 | #define BLE_GATTC_EVT_BASE 0x30 /**< GATTC BLE Event base. */ |
vcoubard | 1:ebc0e0ef0a11 | 88 | #define BLE_GATTC_EVT_LAST 0x4F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 89 | |
vcoubard | 1:ebc0e0ef0a11 | 90 | #define BLE_GATTS_EVT_BASE 0x50 /**< GATTS BLE Event base. */ |
vcoubard | 1:ebc0e0ef0a11 | 91 | #define BLE_GATTS_EVT_LAST 0x6F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 92 | |
vcoubard | 1:ebc0e0ef0a11 | 93 | #define BLE_L2CAP_EVT_BASE 0x70 /**< L2CAP BLE Event base. */ |
vcoubard | 1:ebc0e0ef0a11 | 94 | #define BLE_L2CAP_EVT_LAST 0x8F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 95 | |
vcoubard | 1:ebc0e0ef0a11 | 96 | |
vcoubard | 1:ebc0e0ef0a11 | 97 | #define BLE_OPT_INVALID 0x00 /**< Invalid BLE Option. */ |
vcoubard | 1:ebc0e0ef0a11 | 98 | |
vcoubard | 1:ebc0e0ef0a11 | 99 | #define BLE_OPT_BASE 0x01 /**< Common BLE Option base. */ |
vcoubard | 1:ebc0e0ef0a11 | 100 | #define BLE_OPT_LAST 0x1F /**< Total: 31. */ |
vcoubard | 1:ebc0e0ef0a11 | 101 | |
vcoubard | 1:ebc0e0ef0a11 | 102 | #define BLE_GAP_OPT_BASE 0x20 /**< GAP BLE Option base. */ |
vcoubard | 1:ebc0e0ef0a11 | 103 | #define BLE_GAP_OPT_LAST 0x3F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 104 | |
vcoubard | 1:ebc0e0ef0a11 | 105 | #define BLE_GATTC_OPT_BASE 0x40 /**< GATTC BLE Option base. */ |
vcoubard | 1:ebc0e0ef0a11 | 106 | #define BLE_GATTC_OPT_LAST 0x5F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 107 | |
vcoubard | 1:ebc0e0ef0a11 | 108 | #define BLE_GATTS_OPT_BASE 0x60 /**< GATTS BLE Option base. */ |
vcoubard | 1:ebc0e0ef0a11 | 109 | #define BLE_GATTS_OPT_LAST 0x7F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 110 | |
vcoubard | 1:ebc0e0ef0a11 | 111 | #define BLE_L2CAP_OPT_BASE 0x80 /**< L2CAP BLE Option base. */ |
vcoubard | 1:ebc0e0ef0a11 | 112 | #define BLE_L2CAP_OPT_LAST 0x9F /**< Total: 32. */ |
vcoubard | 1:ebc0e0ef0a11 | 113 | |
vcoubard | 1:ebc0e0ef0a11 | 114 | #endif /* BLE_RANGES_H__ */ |
vcoubard | 1:ebc0e0ef0a11 | 115 | |
vcoubard | 1:ebc0e0ef0a11 | 116 | /** |
vcoubard | 1:ebc0e0ef0a11 | 117 | @} |
vcoubard | 1:ebc0e0ef0a11 | 118 | @} |
vcoubard | 1:ebc0e0ef0a11 | 119 | */ |