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 @addtogroup BLE_COMMON
emilmont 80:8e73be2a2ac1 10 @{
emilmont 80:8e73be2a2ac1 11 @defgroup ble_ranges Module specific SVC and event number subranges
emilmont 80:8e73be2a2ac1 12 @{
emilmont 80:8e73be2a2ac1 13
emilmont 80:8e73be2a2ac1 14 @brief Definition of SVC and event number subranges for each API module.
emilmont 80:8e73be2a2ac1 15
emilmont 80:8e73be2a2ac1 16 @note
emilmont 80:8e73be2a2ac1 17 SVCs and event numbers are split into subranges for each API module.
emilmont 80:8e73be2a2ac1 18 Each module receives its entire allocated range of SVC calls, whether implemented or not,
emilmont 80:8e73be2a2ac1 19 but return BLE_ERROR_NOT_SUPPORTED for unimplemented or undefined calls in its range.
emilmont 80:8e73be2a2ac1 20
emilmont 80:8e73be2a2ac1 21 Note that the symbols BLE_<module>_SVC_LAST is the end of the allocated SVC range,
emilmont 80:8e73be2a2ac1 22 rather than the last SVC function call actually defined and implemented.
emilmont 80:8e73be2a2ac1 23
emilmont 80:8e73be2a2ac1 24 Specific SVC and event values are defined in each module's ble_<module>.h file,
emilmont 80:8e73be2a2ac1 25 which defines names of each individual SVC code based on the range start value.
emilmont 80:8e73be2a2ac1 26 */
emilmont 80:8e73be2a2ac1 27
emilmont 80:8e73be2a2ac1 28 #ifndef BLE_RANGES_H__
emilmont 80:8e73be2a2ac1 29 #define BLE_RANGES_H__
emilmont 80:8e73be2a2ac1 30
emilmont 80:8e73be2a2ac1 31 #define BLE_SVC_BASE 0x60
emilmont 80:8e73be2a2ac1 32 #define BLE_SVC_LAST 0x6B /* Total: 12. */
emilmont 80:8e73be2a2ac1 33
emilmont 80:8e73be2a2ac1 34 #define BLE_RESERVED_SVC_BASE 0x6C
emilmont 80:8e73be2a2ac1 35 #define BLE_RESERVED_SVC_LAST 0x6F /* Total: 4. */
emilmont 80:8e73be2a2ac1 36
emilmont 80:8e73be2a2ac1 37 #define BLE_GAP_SVC_BASE 0x70
emilmont 80:8e73be2a2ac1 38 #define BLE_GAP_SVC_LAST 0x8F /* Total: 32. */
emilmont 80:8e73be2a2ac1 39
emilmont 80:8e73be2a2ac1 40 #define BLE_GATTC_SVC_BASE 0x90
emilmont 80:8e73be2a2ac1 41 #define BLE_GATTC_SVC_LAST 0x9F /* Total: 16. */
emilmont 80:8e73be2a2ac1 42
emilmont 80:8e73be2a2ac1 43 #define BLE_GATTS_SVC_BASE 0xA0
emilmont 80:8e73be2a2ac1 44 #define BLE_GATTS_SVC_LAST 0xAF /* Total: 16. */
emilmont 80:8e73be2a2ac1 45
emilmont 80:8e73be2a2ac1 46 #define BLE_L2CAP_SVC_BASE 0xB0
emilmont 80:8e73be2a2ac1 47 #define BLE_L2CAP_SVC_LAST 0xBF /* Total: 16. */
emilmont 80:8e73be2a2ac1 48
emilmont 80:8e73be2a2ac1 49
emilmont 80:8e73be2a2ac1 50 #define BLE_EVT_INVALID 0x00
emilmont 80:8e73be2a2ac1 51
emilmont 80:8e73be2a2ac1 52 #define BLE_EVT_BASE 0x01
emilmont 80:8e73be2a2ac1 53 #define BLE_EVT_LAST 0x0F /* Total: 15. */
emilmont 80:8e73be2a2ac1 54
emilmont 80:8e73be2a2ac1 55 #define BLE_GAP_EVT_BASE 0x10
emilmont 80:8e73be2a2ac1 56 #define BLE_GAP_EVT_LAST 0x2F /* Total: 32. */
emilmont 80:8e73be2a2ac1 57
emilmont 80:8e73be2a2ac1 58 #define BLE_GATTC_EVT_BASE 0x30
emilmont 80:8e73be2a2ac1 59 #define BLE_GATTC_EVT_LAST 0x4F /* Total: 32. */
emilmont 80:8e73be2a2ac1 60
emilmont 80:8e73be2a2ac1 61 #define BLE_GATTS_EVT_BASE 0x50
emilmont 80:8e73be2a2ac1 62 #define BLE_GATTS_EVT_LAST 0x6F /* Total: 32. */
emilmont 80:8e73be2a2ac1 63
emilmont 80:8e73be2a2ac1 64 #define BLE_L2CAP_EVT_BASE 0x70
emilmont 80:8e73be2a2ac1 65 #define BLE_L2CAP_EVT_LAST 0x8F /* Total: 32. */
emilmont 80:8e73be2a2ac1 66
emilmont 80:8e73be2a2ac1 67 #endif /* BLE_RANGES_H__ */
emilmont 80:8e73be2a2ac1 68
emilmont 80:8e73be2a2ac1 69 /**
emilmont 80:8e73be2a2ac1 70 @}
emilmont 80:8e73be2a2ac1 71 @}
emilmont 80:8e73be2a2ac1 72 */