Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_TY51822R3/TOOLCHAIN_IAR/nrf_ble_err.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| Kojto | 148:fd96258d940d | 1 | /* | 
| Kojto | 148:fd96258d940d | 2 | * Copyright (c) 2000 Nordic Semiconductor ASA | 
| Kojto | 148:fd96258d940d | 3 | * All rights reserved. | 
| Kojto | 148:fd96258d940d | 4 | * | 
| Kojto | 148:fd96258d940d | 5 | * Redistribution and use in source and binary forms, with or without modification, | 
| Kojto | 148:fd96258d940d | 6 | * are permitted provided that the following conditions are met: | 
| Kojto | 148:fd96258d940d | 7 | * | 
| Kojto | 148:fd96258d940d | 8 | * 1. Redistributions of source code must retain the above copyright notice, this list | 
| Kojto | 148:fd96258d940d | 9 | * of conditions and the following disclaimer. | 
| Kojto | 148:fd96258d940d | 10 | * | 
| Kojto | 148:fd96258d940d | 11 | * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA | 
| Kojto | 148:fd96258d940d | 12 | * integrated circuit in a product or a software update for such product, must reproduce | 
| Kojto | 148:fd96258d940d | 13 | * the above copyright notice, this list of conditions and the following disclaimer in | 
| Kojto | 148:fd96258d940d | 14 | * the documentation and/or other materials provided with the distribution. | 
| Kojto | 148:fd96258d940d | 15 | * | 
| Kojto | 148:fd96258d940d | 16 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be | 
| Kojto | 148:fd96258d940d | 17 | * used to endorse or promote products derived from this software without specific prior | 
| Kojto | 148:fd96258d940d | 18 | * written permission. | 
| Kojto | 148:fd96258d940d | 19 | * | 
| Kojto | 148:fd96258d940d | 20 | * 4. This software, with or without modification, must only be used with a | 
| Kojto | 148:fd96258d940d | 21 | * Nordic Semiconductor ASA integrated circuit. | 
| Kojto | 148:fd96258d940d | 22 | * | 
| Kojto | 148:fd96258d940d | 23 | * 5. Any software provided in binary or object form under this license must not be reverse | 
| Kojto | 148:fd96258d940d | 24 | * engineered, decompiled, modified and/or disassembled. | 
| Kojto | 148:fd96258d940d | 25 | * | 
| Kojto | 148:fd96258d940d | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | 
| Kojto | 148:fd96258d940d | 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 
| Kojto | 148:fd96258d940d | 28 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 
| Kojto | 148:fd96258d940d | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | 
| Kojto | 148:fd96258d940d | 30 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 
| Kojto | 148:fd96258d940d | 31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 
| Kojto | 148:fd96258d940d | 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | 
| Kojto | 148:fd96258d940d | 33 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
| Kojto | 148:fd96258d940d | 34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 
| Kojto | 148:fd96258d940d | 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| Kojto | 148:fd96258d940d | 36 | * | 
| Kojto | 148:fd96258d940d | 37 | */ | 
| Kojto | 148:fd96258d940d | 38 | |
| Kojto | 148:fd96258d940d | 39 | |
| Kojto | 148:fd96258d940d | 40 | /** | 
| Kojto | 148:fd96258d940d | 41 | @addtogroup BLE_COMMON | 
| Kojto | 148:fd96258d940d | 42 | @{ | 
| Kojto | 148:fd96258d940d | 43 | @addtogroup nrf_error | 
| Kojto | 148:fd96258d940d | 44 | @{ | 
| Kojto | 148:fd96258d940d | 45 | @ingroup BLE_COMMON | 
| Kojto | 148:fd96258d940d | 46 | @} | 
| Kojto | 148:fd96258d940d | 47 | |
| Kojto | 148:fd96258d940d | 48 | @defgroup ble_err General error codes | 
| Kojto | 148:fd96258d940d | 49 | @{ | 
| Kojto | 148:fd96258d940d | 50 | |
| Kojto | 148:fd96258d940d | 51 | @brief General error code definitions for the BLE API. | 
| Kojto | 148:fd96258d940d | 52 | |
| Kojto | 148:fd96258d940d | 53 | @ingroup BLE_COMMON | 
| Kojto | 148:fd96258d940d | 54 | */ | 
| Kojto | 148:fd96258d940d | 55 | #ifndef NRF_BLE_ERR_H__ | 
| Kojto | 148:fd96258d940d | 56 | #define NRF_BLE_ERR_H__ | 
| Kojto | 148:fd96258d940d | 57 | |
| Kojto | 148:fd96258d940d | 58 | #include "nrf_error.h" | 
| Kojto | 148:fd96258d940d | 59 | |
| Kojto | 148:fd96258d940d | 60 | #ifdef __cplusplus | 
| Kojto | 148:fd96258d940d | 61 | extern "C" { | 
| Kojto | 148:fd96258d940d | 62 | #endif | 
| Kojto | 148:fd96258d940d | 63 | |
| Kojto | 148:fd96258d940d | 64 | /* @defgroup BLE_ERRORS Error Codes | 
| Kojto | 148:fd96258d940d | 65 | * @{ */ | 
| Kojto | 148:fd96258d940d | 66 | #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /**< @ref sd_ble_enable has not been called. */ | 
| Kojto | 148:fd96258d940d | 67 | #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid connection handle. */ | 
| Kojto | 148:fd96258d940d | 68 | #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x003) /**< Invalid attribute handle. */ | 
| Kojto | 148:fd96258d940d | 69 | #define BLE_ERROR_NO_TX_PACKETS (NRF_ERROR_STK_BASE_NUM+0x004) /**< Not enough application packets available on this connection. */ | 
| Kojto | 148:fd96258d940d | 70 | #define BLE_ERROR_INVALID_ROLE (NRF_ERROR_STK_BASE_NUM+0x005) /**< Invalid role. */ | 
| Kojto | 148:fd96258d940d | 71 | /** @} */ | 
| Kojto | 148:fd96258d940d | 72 | |
| Kojto | 148:fd96258d940d | 73 | |
| Kojto | 148:fd96258d940d | 74 | /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges | 
| Kojto | 148:fd96258d940d | 75 | * @brief Assignment of subranges for module specific error codes. | 
| Kojto | 148:fd96258d940d | 76 | * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h. | 
| Kojto | 148:fd96258d940d | 77 | * @{ */ | 
| Kojto | 148:fd96258d940d | 78 | #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */ | 
| Kojto | 148:fd96258d940d | 79 | #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */ | 
| Kojto | 148:fd96258d940d | 80 | #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */ | 
| Kojto | 148:fd96258d940d | 81 | #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */ | 
| Kojto | 148:fd96258d940d | 82 | /** @} */ | 
| Kojto | 148:fd96258d940d | 83 | |
| Kojto | 148:fd96258d940d | 84 | #ifdef __cplusplus | 
| Kojto | 148:fd96258d940d | 85 | } | 
| Kojto | 148:fd96258d940d | 86 | #endif | 
| Kojto | 148:fd96258d940d | 87 | #endif | 
| Kojto | 148:fd96258d940d | 88 | |
| Kojto | 148:fd96258d940d | 89 | |
| Kojto | 148:fd96258d940d | 90 | /** | 
| Kojto | 148:fd96258d940d | 91 | @} | 
| Kojto | 148:fd96258d940d | 92 | @} | 
| Kojto | 148:fd96258d940d | 93 | */ | 


