テスト用

Fork of nRF51822 by Nordic Semiconductor

Committer:
Rohit Grover
Date:
Fri Sep 26 14:46:19 2014 +0100
Revision:
69:936d81c963fe
Parent:
0:eff01767de02
Release 0.2.1
=============

Features
~~~~~~~~

- Turn on the service-changed characteristic by default.

Bugfixes
~~~~~~~~

- Raised the maximum number of supported characteristics/descriptors to 24
(was 10 previously). We're beginning to find services like Device-
Information with several characteristics populated.

Compatibility
~~~~~~~~~~~~~

Works with 0.2.0 of BLE_API.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 0:eff01767de02 1 /*
bogdanm 0:eff01767de02 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
bogdanm 0:eff01767de02 3 *
bogdanm 0:eff01767de02 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
bogdanm 0:eff01767de02 5 * copying, transfer or disclosure of such information is prohibited except by express written
bogdanm 0:eff01767de02 6 * agreement with Nordic Semiconductor.
bogdanm 0:eff01767de02 7 *
bogdanm 0:eff01767de02 8 */
bogdanm 0:eff01767de02 9 /**
bogdanm 0:eff01767de02 10 @defgroup nrf_error SoftDevice Global Error Codes
bogdanm 0:eff01767de02 11 @{
bogdanm 0:eff01767de02 12
bogdanm 0:eff01767de02 13 @brief Global Error definitions
bogdanm 0:eff01767de02 14 */
bogdanm 0:eff01767de02 15
bogdanm 0:eff01767de02 16 /* Header guard */
bogdanm 0:eff01767de02 17 #ifndef NRF_ERROR_H__
bogdanm 0:eff01767de02 18 #define NRF_ERROR_H__
bogdanm 0:eff01767de02 19
bogdanm 0:eff01767de02 20 /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions
bogdanm 0:eff01767de02 21 * @{ */
bogdanm 0:eff01767de02 22 #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base
bogdanm 0:eff01767de02 23 #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base
bogdanm 0:eff01767de02 24 #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base
bogdanm 0:eff01767de02 25 #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base
bogdanm 0:eff01767de02 26 /** @} */
bogdanm 0:eff01767de02 27
bogdanm 0:eff01767de02 28 #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command
bogdanm 0:eff01767de02 29 #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing
bogdanm 0:eff01767de02 30 #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled
bogdanm 0:eff01767de02 31 #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error
bogdanm 0:eff01767de02 32 #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation
bogdanm 0:eff01767de02 33 #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found
bogdanm 0:eff01767de02 34 #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported
bogdanm 0:eff01767de02 35 #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter
bogdanm 0:eff01767de02 36 #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state
bogdanm 0:eff01767de02 37 #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length
bogdanm 0:eff01767de02 38 #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags
bogdanm 0:eff01767de02 39 #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data
bogdanm 0:eff01767de02 40 #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit
bogdanm 0:eff01767de02 41 #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out
bogdanm 0:eff01767de02 42 #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer
bogdanm 0:eff01767de02 43 #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation
bogdanm 0:eff01767de02 44 #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
bogdanm 0:eff01767de02 45 #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy
bogdanm 0:eff01767de02 46
bogdanm 0:eff01767de02 47 #endif // NRF_ERROR_H__
bogdanm 0:eff01767de02 48
bogdanm 0:eff01767de02 49 /**
bogdanm 0:eff01767de02 50 @}
bogdanm 0:eff01767de02 51 */