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.

Committer:
emilmont
Date:
Fri Feb 21 12:21:39 2014 +0000
Revision:
80:8e73be2a2ac1
First alpha release for the NRF51822 target (to be tested in the online IDE)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 80:8e73be2a2ac1 1 /*
emilmont 80:8e73be2a2ac1 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
emilmont 80:8e73be2a2ac1 3 *
emilmont 80:8e73be2a2ac1 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
emilmont 80:8e73be2a2ac1 5 * copying, transfer or disclosure of such information is prohibited except by express written
emilmont 80:8e73be2a2ac1 6 * agreement with Nordic Semiconductor.
emilmont 80:8e73be2a2ac1 7 *
emilmont 80:8e73be2a2ac1 8 */
emilmont 80:8e73be2a2ac1 9 /**
emilmont 80:8e73be2a2ac1 10 @addtogroup BLE_COMMON
emilmont 80:8e73be2a2ac1 11 @{
emilmont 80:8e73be2a2ac1 12 @addtogroup nrf_error
emilmont 80:8e73be2a2ac1 13 @{
emilmont 80:8e73be2a2ac1 14 @ingroup BLE_COMMON
emilmont 80:8e73be2a2ac1 15 @}
emilmont 80:8e73be2a2ac1 16
emilmont 80:8e73be2a2ac1 17 @defgroup ble_err General error codes
emilmont 80:8e73be2a2ac1 18 @{
emilmont 80:8e73be2a2ac1 19
emilmont 80:8e73be2a2ac1 20 @brief General error code definitions for the BLE API.
emilmont 80:8e73be2a2ac1 21
emilmont 80:8e73be2a2ac1 22 @ingroup BLE_COMMON
emilmont 80:8e73be2a2ac1 23 */
emilmont 80:8e73be2a2ac1 24 #ifndef NRF_BLE_ERR_H__
emilmont 80:8e73be2a2ac1 25 #define NRF_BLE_ERR_H__
emilmont 80:8e73be2a2ac1 26
emilmont 80:8e73be2a2ac1 27 #include "nrf_error.h"
emilmont 80:8e73be2a2ac1 28
emilmont 80:8e73be2a2ac1 29 /* @defgroup BLE_ERRORS Error Codes
emilmont 80:8e73be2a2ac1 30 * @{ */
emilmont 80:8e73be2a2ac1 31 #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x001) /**< Invalid connection handle. */
emilmont 80:8e73be2a2ac1 32 #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid attribute handle. */
emilmont 80:8e73be2a2ac1 33 #define BLE_ERROR_NO_TX_BUFFERS (NRF_ERROR_STK_BASE_NUM+0x003) /**< Buffer capacity exceeded. */
emilmont 80:8e73be2a2ac1 34 /** @} */
emilmont 80:8e73be2a2ac1 35
emilmont 80:8e73be2a2ac1 36
emilmont 80:8e73be2a2ac1 37 /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges
emilmont 80:8e73be2a2ac1 38 * @brief Assignment of subranges for module specific error codes.
emilmont 80:8e73be2a2ac1 39 * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h.
emilmont 80:8e73be2a2ac1 40 * @{ */
emilmont 80:8e73be2a2ac1 41 #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */
emilmont 80:8e73be2a2ac1 42 #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */
emilmont 80:8e73be2a2ac1 43 #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */
emilmont 80:8e73be2a2ac1 44 #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */
emilmont 80:8e73be2a2ac1 45 /** @} */
emilmont 80:8e73be2a2ac1 46
emilmont 80:8e73be2a2ac1 47 #endif
emilmont 80:8e73be2a2ac1 48
emilmont 80:8e73be2a2ac1 49
emilmont 80:8e73be2a2ac1 50 /**
emilmont 80:8e73be2a2ac1 51 @}
emilmont 80:8e73be2a2ac1 52 @}
emilmont 80:8e73be2a2ac1 53 */