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.
Dependencies: nrf51-sdk
Fork of nRF51822 by
source/nordic-sdk/components/softdevice/s130/include/nrf_error.h@387:b13ab9a7ddb9, 2015-07-21 (annotated)
- Committer:
- rgrover1
- Date:
- Tue Jul 21 13:23:44 2015 +0100
- Revision:
- 387:b13ab9a7ddb9
- Parent:
- nordic-sdk/components/softdevice/s130/include/nrf_error.h@386:3253b512fb24
Synchronized with git rev e79eec6b
Author: Rohit Grover
Release 0.4.2
=============
This is a minor release.
Enhancements
~~~~~~~~~~~~
* fix #53: add GattClient API for handling HVX Events (notifications and
indications). Refer to GattClient::onHVX(HVXCallback_t ...).
* Reformat source tree to align nRF51822 for yotta.
Bugfixes
~~~~~~~~
none.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rgrover1 | 371:8f7d2137727a | 1 | /* |
| rgrover1 | 371:8f7d2137727a | 2 | * Copyright (c) Nordic Semiconductor ASA |
| rgrover1 | 371:8f7d2137727a | 3 | * All rights reserved. |
| rgrover1 | 371:8f7d2137727a | 4 | * |
| rgrover1 | 371:8f7d2137727a | 5 | * Redistribution and use in source and binary forms, with or without modification, |
| rgrover1 | 371:8f7d2137727a | 6 | * are permitted provided that the following conditions are met: |
| rgrover1 | 371:8f7d2137727a | 7 | * |
| rgrover1 | 371:8f7d2137727a | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
| rgrover1 | 371:8f7d2137727a | 9 | * list of conditions and the following disclaimer. |
| rgrover1 | 371:8f7d2137727a | 10 | * |
| rgrover1 | 371:8f7d2137727a | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
| rgrover1 | 371:8f7d2137727a | 12 | * list of conditions and the following disclaimer in the documentation and/or |
| rgrover1 | 371:8f7d2137727a | 13 | * other materials provided with the distribution. |
| rgrover1 | 371:8f7d2137727a | 14 | * |
| rgrover1 | 371:8f7d2137727a | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
| rgrover1 | 371:8f7d2137727a | 16 | * contributors to this software may be used to endorse or promote products |
| rgrover1 | 371:8f7d2137727a | 17 | * derived from this software without specific prior written permission. |
| rgrover1 | 371:8f7d2137727a | 18 | * |
| rgrover1 | 371:8f7d2137727a | 19 | * |
| rgrover1 | 371:8f7d2137727a | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| rgrover1 | 371:8f7d2137727a | 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| rgrover1 | 371:8f7d2137727a | 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| rgrover1 | 371:8f7d2137727a | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| rgrover1 | 371:8f7d2137727a | 24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| rgrover1 | 371:8f7d2137727a | 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| rgrover1 | 371:8f7d2137727a | 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| rgrover1 | 371:8f7d2137727a | 27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| rgrover1 | 371:8f7d2137727a | 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| rgrover1 | 371:8f7d2137727a | 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| rgrover1 | 371:8f7d2137727a | 30 | * |
| rgrover1 | 371:8f7d2137727a | 31 | */ |
| rgrover1 | 371:8f7d2137727a | 32 | /** |
| rgrover1 | 371:8f7d2137727a | 33 | @defgroup nrf_error SoftDevice Global Error Codes |
| rgrover1 | 371:8f7d2137727a | 34 | @{ |
| rgrover1 | 371:8f7d2137727a | 35 | |
| rgrover1 | 371:8f7d2137727a | 36 | @brief Global Error definitions |
| rgrover1 | 371:8f7d2137727a | 37 | */ |
| rgrover1 | 371:8f7d2137727a | 38 | |
| rgrover1 | 371:8f7d2137727a | 39 | /* Header guard */ |
| rgrover1 | 371:8f7d2137727a | 40 | #ifndef NRF_ERROR_H__ |
| rgrover1 | 371:8f7d2137727a | 41 | #define NRF_ERROR_H__ |
| rgrover1 | 371:8f7d2137727a | 42 | |
| rgrover1 | 371:8f7d2137727a | 43 | /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions |
| rgrover1 | 371:8f7d2137727a | 44 | * @{ */ |
| rgrover1 | 371:8f7d2137727a | 45 | #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base |
| rgrover1 | 371:8f7d2137727a | 46 | #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base |
| rgrover1 | 371:8f7d2137727a | 47 | #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base |
| rgrover1 | 371:8f7d2137727a | 48 | #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base |
| rgrover1 | 371:8f7d2137727a | 49 | /** @} */ |
| rgrover1 | 371:8f7d2137727a | 50 | |
| rgrover1 | 371:8f7d2137727a | 51 | #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command |
| rgrover1 | 371:8f7d2137727a | 52 | #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing |
| rgrover1 | 371:8f7d2137727a | 53 | #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled |
| rgrover1 | 371:8f7d2137727a | 54 | #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error |
| rgrover1 | 371:8f7d2137727a | 55 | #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation |
| rgrover1 | 371:8f7d2137727a | 56 | #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found |
| rgrover1 | 371:8f7d2137727a | 57 | #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported |
| rgrover1 | 371:8f7d2137727a | 58 | #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter |
| rgrover1 | 371:8f7d2137727a | 59 | #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state |
| rgrover1 | 371:8f7d2137727a | 60 | #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length |
| rgrover1 | 371:8f7d2137727a | 61 | #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags |
| rgrover1 | 371:8f7d2137727a | 62 | #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data |
| rgrover1 | 371:8f7d2137727a | 63 | #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit |
| rgrover1 | 371:8f7d2137727a | 64 | #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out |
| rgrover1 | 371:8f7d2137727a | 65 | #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer |
| rgrover1 | 371:8f7d2137727a | 66 | #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation |
| rgrover1 | 371:8f7d2137727a | 67 | #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address |
| rgrover1 | 371:8f7d2137727a | 68 | #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy |
| rgrover1 | 371:8f7d2137727a | 69 | |
| rgrover1 | 371:8f7d2137727a | 70 | #endif // NRF_ERROR_H__ |
| rgrover1 | 371:8f7d2137727a | 71 | |
| rgrover1 | 371:8f7d2137727a | 72 | /** |
| rgrover1 | 371:8f7d2137727a | 73 | @} |
| rgrover1 | 371:8f7d2137727a | 74 | */ |
