The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_TY51822R3/TOOLCHAIN_GCC_ARM/nrf_error.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 |
---|---|---|---|
AnnaBridge | 146:22da6e220af6 | 1 | /* |
AnnaBridge | 146:22da6e220af6 | 2 | * Copyright (c) 2000 Nordic Semiconductor ASA |
AnnaBridge | 146:22da6e220af6 | 3 | * All rights reserved. |
AnnaBridge | 146:22da6e220af6 | 4 | * |
AnnaBridge | 146:22da6e220af6 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 146:22da6e220af6 | 6 | * are permitted provided that the following conditions are met: |
AnnaBridge | 146:22da6e220af6 | 7 | * |
AnnaBridge | 146:22da6e220af6 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 146:22da6e220af6 | 9 | * of conditions and the following disclaimer. |
AnnaBridge | 146:22da6e220af6 | 10 | * |
AnnaBridge | 146:22da6e220af6 | 11 | * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA |
AnnaBridge | 146:22da6e220af6 | 12 | * integrated circuit in a product or a software update for such product, must reproduce |
AnnaBridge | 146:22da6e220af6 | 13 | * the above copyright notice, this list of conditions and the following disclaimer in |
AnnaBridge | 146:22da6e220af6 | 14 | * the documentation and/or other materials provided with the distribution. |
AnnaBridge | 146:22da6e220af6 | 15 | * |
AnnaBridge | 146:22da6e220af6 | 16 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be |
AnnaBridge | 146:22da6e220af6 | 17 | * used to endorse or promote products derived from this software without specific prior |
AnnaBridge | 146:22da6e220af6 | 18 | * written permission. |
AnnaBridge | 146:22da6e220af6 | 19 | * |
AnnaBridge | 146:22da6e220af6 | 20 | * 4. This software, with or without modification, must only be used with a |
AnnaBridge | 146:22da6e220af6 | 21 | * Nordic Semiconductor ASA integrated circuit. |
AnnaBridge | 146:22da6e220af6 | 22 | * |
AnnaBridge | 146:22da6e220af6 | 23 | * 5. Any software provided in binary or object form under this license must not be reverse |
AnnaBridge | 146:22da6e220af6 | 24 | * engineered, decompiled, modified and/or disassembled. |
AnnaBridge | 146:22da6e220af6 | 25 | * |
AnnaBridge | 146:22da6e220af6 | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 146:22da6e220af6 | 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 146:22da6e220af6 | 28 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 146:22da6e220af6 | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 146:22da6e220af6 | 30 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 146:22da6e220af6 | 31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 146:22da6e220af6 | 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 146:22da6e220af6 | 33 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 146:22da6e220af6 | 34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 146:22da6e220af6 | 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 146:22da6e220af6 | 36 | * |
AnnaBridge | 146:22da6e220af6 | 37 | */ |
AnnaBridge | 146:22da6e220af6 | 38 | |
AnnaBridge | 146:22da6e220af6 | 39 | /** |
AnnaBridge | 146:22da6e220af6 | 40 | @defgroup nrf_error SoftDevice Global Error Codes |
AnnaBridge | 146:22da6e220af6 | 41 | @{ |
AnnaBridge | 146:22da6e220af6 | 42 | |
AnnaBridge | 146:22da6e220af6 | 43 | @brief Global Error definitions |
AnnaBridge | 146:22da6e220af6 | 44 | */ |
AnnaBridge | 146:22da6e220af6 | 45 | |
AnnaBridge | 146:22da6e220af6 | 46 | /* Header guard */ |
AnnaBridge | 146:22da6e220af6 | 47 | #ifndef NRF_ERROR_H__ |
AnnaBridge | 146:22da6e220af6 | 48 | #define NRF_ERROR_H__ |
AnnaBridge | 146:22da6e220af6 | 49 | |
AnnaBridge | 146:22da6e220af6 | 50 | #ifdef __cplusplus |
AnnaBridge | 146:22da6e220af6 | 51 | extern "C" { |
AnnaBridge | 146:22da6e220af6 | 52 | #endif |
AnnaBridge | 146:22da6e220af6 | 53 | |
AnnaBridge | 146:22da6e220af6 | 54 | /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions |
AnnaBridge | 146:22da6e220af6 | 55 | * @{ */ |
AnnaBridge | 146:22da6e220af6 | 56 | #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base |
AnnaBridge | 146:22da6e220af6 | 57 | #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base |
AnnaBridge | 146:22da6e220af6 | 58 | #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base |
AnnaBridge | 146:22da6e220af6 | 59 | #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base |
AnnaBridge | 146:22da6e220af6 | 60 | /** @} */ |
AnnaBridge | 146:22da6e220af6 | 61 | |
AnnaBridge | 146:22da6e220af6 | 62 | #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command |
AnnaBridge | 146:22da6e220af6 | 63 | #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing |
AnnaBridge | 146:22da6e220af6 | 64 | #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled |
AnnaBridge | 146:22da6e220af6 | 65 | #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error |
AnnaBridge | 146:22da6e220af6 | 66 | #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation |
AnnaBridge | 146:22da6e220af6 | 67 | #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found |
AnnaBridge | 146:22da6e220af6 | 68 | #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported |
AnnaBridge | 146:22da6e220af6 | 69 | #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter |
AnnaBridge | 146:22da6e220af6 | 70 | #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state |
AnnaBridge | 146:22da6e220af6 | 71 | #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length |
AnnaBridge | 146:22da6e220af6 | 72 | #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags |
AnnaBridge | 146:22da6e220af6 | 73 | #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data |
AnnaBridge | 146:22da6e220af6 | 74 | #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Invalid Data size |
AnnaBridge | 146:22da6e220af6 | 75 | #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out |
AnnaBridge | 146:22da6e220af6 | 76 | #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer |
AnnaBridge | 146:22da6e220af6 | 77 | #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation |
AnnaBridge | 146:22da6e220af6 | 78 | #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address |
AnnaBridge | 146:22da6e220af6 | 79 | #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy |
AnnaBridge | 146:22da6e220af6 | 80 | #define NRF_ERROR_CONN_COUNT (NRF_ERROR_BASE_NUM + 18) ///< Maximum connection count exceeded. |
AnnaBridge | 146:22da6e220af6 | 81 | #define NRF_ERROR_RESOURCES (NRF_ERROR_BASE_NUM + 19) ///< Not enough resources for operation |
AnnaBridge | 146:22da6e220af6 | 82 | |
AnnaBridge | 146:22da6e220af6 | 83 | #ifdef __cplusplus |
AnnaBridge | 146:22da6e220af6 | 84 | } |
AnnaBridge | 146:22da6e220af6 | 85 | #endif |
AnnaBridge | 146:22da6e220af6 | 86 | #endif // NRF_ERROR_H__ |
AnnaBridge | 146:22da6e220af6 | 87 | |
AnnaBridge | 146:22da6e220af6 | 88 | /** |
AnnaBridge | 146:22da6e220af6 | 89 | @} |
AnnaBridge | 146:22da6e220af6 | 90 | */ |