BLE_Nano nRF51 Central heart rate
nRF51_SDK_11/components/softdevice/s130/headers/nrf_error.h@0:2b9b5764efb5, 2016-05-26 (annotated)
- Committer:
- FranKP2138
- Date:
- Thu May 26 10:12:27 2016 +0000
- Revision:
- 0:2b9b5764efb5
RedBearLab BLE_Nano Central role for heart rate
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FranKP2138 | 0:2b9b5764efb5 | 1 | /* |
FranKP2138 | 0:2b9b5764efb5 | 2 | * Copyright (c) Nordic Semiconductor ASA |
FranKP2138 | 0:2b9b5764efb5 | 3 | * All rights reserved. |
FranKP2138 | 0:2b9b5764efb5 | 4 | * |
FranKP2138 | 0:2b9b5764efb5 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
FranKP2138 | 0:2b9b5764efb5 | 6 | * are permitted provided that the following conditions are met: |
FranKP2138 | 0:2b9b5764efb5 | 7 | * |
FranKP2138 | 0:2b9b5764efb5 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
FranKP2138 | 0:2b9b5764efb5 | 9 | * list of conditions and the following disclaimer. |
FranKP2138 | 0:2b9b5764efb5 | 10 | * |
FranKP2138 | 0:2b9b5764efb5 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
FranKP2138 | 0:2b9b5764efb5 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
FranKP2138 | 0:2b9b5764efb5 | 13 | * other materials provided with the distribution. |
FranKP2138 | 0:2b9b5764efb5 | 14 | * |
FranKP2138 | 0:2b9b5764efb5 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
FranKP2138 | 0:2b9b5764efb5 | 16 | * contributors to this software may be used to endorse or promote products |
FranKP2138 | 0:2b9b5764efb5 | 17 | * derived from this software without specific prior written permission. |
FranKP2138 | 0:2b9b5764efb5 | 18 | * |
FranKP2138 | 0:2b9b5764efb5 | 19 | * 4. This software must only be used in a processor manufactured by Nordic |
FranKP2138 | 0:2b9b5764efb5 | 20 | * Semiconductor ASA, or in a processor manufactured by a third party that |
FranKP2138 | 0:2b9b5764efb5 | 21 | * is used in combination with a processor manufactured by Nordic Semiconductor. |
FranKP2138 | 0:2b9b5764efb5 | 22 | * |
FranKP2138 | 0:2b9b5764efb5 | 23 | * |
FranKP2138 | 0:2b9b5764efb5 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
FranKP2138 | 0:2b9b5764efb5 | 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
FranKP2138 | 0:2b9b5764efb5 | 26 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
FranKP2138 | 0:2b9b5764efb5 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
FranKP2138 | 0:2b9b5764efb5 | 28 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
FranKP2138 | 0:2b9b5764efb5 | 29 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
FranKP2138 | 0:2b9b5764efb5 | 30 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
FranKP2138 | 0:2b9b5764efb5 | 31 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
FranKP2138 | 0:2b9b5764efb5 | 32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
FranKP2138 | 0:2b9b5764efb5 | 33 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
FranKP2138 | 0:2b9b5764efb5 | 34 | * |
FranKP2138 | 0:2b9b5764efb5 | 35 | */ |
FranKP2138 | 0:2b9b5764efb5 | 36 | /** |
FranKP2138 | 0:2b9b5764efb5 | 37 | @defgroup nrf_error SoftDevice Global Error Codes |
FranKP2138 | 0:2b9b5764efb5 | 38 | @{ |
FranKP2138 | 0:2b9b5764efb5 | 39 | |
FranKP2138 | 0:2b9b5764efb5 | 40 | @brief Global Error definitions |
FranKP2138 | 0:2b9b5764efb5 | 41 | */ |
FranKP2138 | 0:2b9b5764efb5 | 42 | |
FranKP2138 | 0:2b9b5764efb5 | 43 | /* Header guard */ |
FranKP2138 | 0:2b9b5764efb5 | 44 | #ifndef NRF_ERROR_H__ |
FranKP2138 | 0:2b9b5764efb5 | 45 | #define NRF_ERROR_H__ |
FranKP2138 | 0:2b9b5764efb5 | 46 | |
FranKP2138 | 0:2b9b5764efb5 | 47 | #ifdef __cplusplus |
FranKP2138 | 0:2b9b5764efb5 | 48 | extern "C" { |
FranKP2138 | 0:2b9b5764efb5 | 49 | #endif |
FranKP2138 | 0:2b9b5764efb5 | 50 | |
FranKP2138 | 0:2b9b5764efb5 | 51 | /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions |
FranKP2138 | 0:2b9b5764efb5 | 52 | * @{ */ |
FranKP2138 | 0:2b9b5764efb5 | 53 | #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base |
FranKP2138 | 0:2b9b5764efb5 | 54 | #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base |
FranKP2138 | 0:2b9b5764efb5 | 55 | #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base |
FranKP2138 | 0:2b9b5764efb5 | 56 | #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base |
FranKP2138 | 0:2b9b5764efb5 | 57 | /** @} */ |
FranKP2138 | 0:2b9b5764efb5 | 58 | |
FranKP2138 | 0:2b9b5764efb5 | 59 | #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command |
FranKP2138 | 0:2b9b5764efb5 | 60 | #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing |
FranKP2138 | 0:2b9b5764efb5 | 61 | #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled |
FranKP2138 | 0:2b9b5764efb5 | 62 | #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error |
FranKP2138 | 0:2b9b5764efb5 | 63 | #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation |
FranKP2138 | 0:2b9b5764efb5 | 64 | #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found |
FranKP2138 | 0:2b9b5764efb5 | 65 | #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported |
FranKP2138 | 0:2b9b5764efb5 | 66 | #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter |
FranKP2138 | 0:2b9b5764efb5 | 67 | #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state |
FranKP2138 | 0:2b9b5764efb5 | 68 | #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length |
FranKP2138 | 0:2b9b5764efb5 | 69 | #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags |
FranKP2138 | 0:2b9b5764efb5 | 70 | #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data |
FranKP2138 | 0:2b9b5764efb5 | 71 | #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Invalid Data size |
FranKP2138 | 0:2b9b5764efb5 | 72 | #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out |
FranKP2138 | 0:2b9b5764efb5 | 73 | #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer |
FranKP2138 | 0:2b9b5764efb5 | 74 | #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation |
FranKP2138 | 0:2b9b5764efb5 | 75 | #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address |
FranKP2138 | 0:2b9b5764efb5 | 76 | #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy |
FranKP2138 | 0:2b9b5764efb5 | 77 | #define NRF_ERROR_CONN_COUNT (NRF_ERROR_BASE_NUM + 18) ///< Maximum connection count exceeded. |
FranKP2138 | 0:2b9b5764efb5 | 78 | #define NRF_ERROR_RESOURCES (NRF_ERROR_BASE_NUM + 19) ///< Not enough resources for operation |
FranKP2138 | 0:2b9b5764efb5 | 79 | |
FranKP2138 | 0:2b9b5764efb5 | 80 | #ifdef __cplusplus |
FranKP2138 | 0:2b9b5764efb5 | 81 | } |
FranKP2138 | 0:2b9b5764efb5 | 82 | #endif |
FranKP2138 | 0:2b9b5764efb5 | 83 | #endif // NRF_ERROR_H__ |
FranKP2138 | 0:2b9b5764efb5 | 84 | |
FranKP2138 | 0:2b9b5764efb5 | 85 | /** |
FranKP2138 | 0:2b9b5764efb5 | 86 | @} |
FranKP2138 | 0:2b9b5764efb5 | 87 | */ |
FranKP2138 | 0:2b9b5764efb5 | 88 |