project for nrf51822 qfab

Dependencies:   eddystone_URL mbed

Fork of eddystone_URL by vo dung

Committer:
jksoft
Date:
Wed Nov 12 02:40:34 2014 +0000
Revision:
0:76dfa9657d9d
????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:76dfa9657d9d 1 /*
jksoft 0:76dfa9657d9d 2 Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
jksoft 0:76dfa9657d9d 3
jksoft 0:76dfa9657d9d 4 The information contained herein is confidential property of Nordic Semiconductor. The use,
jksoft 0:76dfa9657d9d 5 copying, transfer or disclosure of such information is prohibited except by express written
jksoft 0:76dfa9657d9d 6 agreement with Nordic Semiconductor.
jksoft 0:76dfa9657d9d 7 */
jksoft 0:76dfa9657d9d 8 /**
jksoft 0:76dfa9657d9d 9 @addtogroup BLE_COMMON
jksoft 0:76dfa9657d9d 10 @{
jksoft 0:76dfa9657d9d 11 @defgroup ble_ranges Module specific SVC and event number subranges
jksoft 0:76dfa9657d9d 12 @{
jksoft 0:76dfa9657d9d 13
jksoft 0:76dfa9657d9d 14 @brief Definition of SVC and event number subranges for each API module.
jksoft 0:76dfa9657d9d 15
jksoft 0:76dfa9657d9d 16 @note
jksoft 0:76dfa9657d9d 17 SVCs and event numbers are split into subranges for each API module.
jksoft 0:76dfa9657d9d 18 Each module receives its entire allocated range of SVC calls, whether implemented or not,
jksoft 0:76dfa9657d9d 19 but return BLE_ERROR_NOT_SUPPORTED for unimplemented or undefined calls in its range.
jksoft 0:76dfa9657d9d 20
jksoft 0:76dfa9657d9d 21 Note that the symbols BLE_<module>_SVC_LAST is the end of the allocated SVC range,
jksoft 0:76dfa9657d9d 22 rather than the last SVC function call actually defined and implemented.
jksoft 0:76dfa9657d9d 23
jksoft 0:76dfa9657d9d 24 Specific SVC and event values are defined in each module's ble_<module>.h file,
jksoft 0:76dfa9657d9d 25 which defines names of each individual SVC code based on the range start value.
jksoft 0:76dfa9657d9d 26 */
jksoft 0:76dfa9657d9d 27
jksoft 0:76dfa9657d9d 28 #ifndef BLE_RANGES_H__
jksoft 0:76dfa9657d9d 29 #define BLE_RANGES_H__
jksoft 0:76dfa9657d9d 30
jksoft 0:76dfa9657d9d 31 #define BLE_SVC_BASE 0x60
jksoft 0:76dfa9657d9d 32 #define BLE_SVC_LAST 0x6B /* Total: 12. */
jksoft 0:76dfa9657d9d 33
jksoft 0:76dfa9657d9d 34 #define BLE_RESERVED_SVC_BASE 0x6C
jksoft 0:76dfa9657d9d 35 #define BLE_RESERVED_SVC_LAST 0x6F /* Total: 4. */
jksoft 0:76dfa9657d9d 36
jksoft 0:76dfa9657d9d 37 #define BLE_GAP_SVC_BASE 0x70
jksoft 0:76dfa9657d9d 38 #define BLE_GAP_SVC_LAST 0x8F /* Total: 32. */
jksoft 0:76dfa9657d9d 39
jksoft 0:76dfa9657d9d 40 #define BLE_GATTC_SVC_BASE 0x90
jksoft 0:76dfa9657d9d 41 #define BLE_GATTC_SVC_LAST 0x9F /* Total: 16. */
jksoft 0:76dfa9657d9d 42
jksoft 0:76dfa9657d9d 43 #define BLE_GATTS_SVC_BASE 0xA0
jksoft 0:76dfa9657d9d 44 #define BLE_GATTS_SVC_LAST 0xAF /* Total: 16. */
jksoft 0:76dfa9657d9d 45
jksoft 0:76dfa9657d9d 46 #define BLE_L2CAP_SVC_BASE 0xB0
jksoft 0:76dfa9657d9d 47 #define BLE_L2CAP_SVC_LAST 0xBF /* Total: 16. */
jksoft 0:76dfa9657d9d 48
jksoft 0:76dfa9657d9d 49
jksoft 0:76dfa9657d9d 50 #define BLE_EVT_INVALID 0x00
jksoft 0:76dfa9657d9d 51
jksoft 0:76dfa9657d9d 52 #define BLE_EVT_BASE 0x01
jksoft 0:76dfa9657d9d 53 #define BLE_EVT_LAST 0x0F /* Total: 15. */
jksoft 0:76dfa9657d9d 54
jksoft 0:76dfa9657d9d 55 #define BLE_GAP_EVT_BASE 0x10
jksoft 0:76dfa9657d9d 56 #define BLE_GAP_EVT_LAST 0x2F /* Total: 32. */
jksoft 0:76dfa9657d9d 57
jksoft 0:76dfa9657d9d 58 #define BLE_GATTC_EVT_BASE 0x30
jksoft 0:76dfa9657d9d 59 #define BLE_GATTC_EVT_LAST 0x4F /* Total: 32. */
jksoft 0:76dfa9657d9d 60
jksoft 0:76dfa9657d9d 61 #define BLE_GATTS_EVT_BASE 0x50
jksoft 0:76dfa9657d9d 62 #define BLE_GATTS_EVT_LAST 0x6F /* Total: 32. */
jksoft 0:76dfa9657d9d 63
jksoft 0:76dfa9657d9d 64 #define BLE_L2CAP_EVT_BASE 0x70
jksoft 0:76dfa9657d9d 65 #define BLE_L2CAP_EVT_LAST 0x8F /* Total: 32. */
jksoft 0:76dfa9657d9d 66
jksoft 0:76dfa9657d9d 67 #define BLE_OPT_INVALID 0x00 /**< Invalid BLE Option. */
jksoft 0:76dfa9657d9d 68
jksoft 0:76dfa9657d9d 69 #define BLE_OPT_BASE 0x01 /**< Common BLE Option base. */
jksoft 0:76dfa9657d9d 70 #define BLE_OPT_LAST 0x1F /**< Total: 31. */
jksoft 0:76dfa9657d9d 71
jksoft 0:76dfa9657d9d 72 #define BLE_GAP_OPT_BASE 0x20 /**< GAP BLE Option base. */
jksoft 0:76dfa9657d9d 73 #define BLE_GAP_OPT_LAST 0x3F /**< Total: 32. */
jksoft 0:76dfa9657d9d 74
jksoft 0:76dfa9657d9d 75 #define BLE_GATTC_OPT_BASE 0x40 /**< GATTC BLE Option base. */
jksoft 0:76dfa9657d9d 76 #define BLE_GATTC_OPT_LAST 0x5F /**< Total: 32. */
jksoft 0:76dfa9657d9d 77
jksoft 0:76dfa9657d9d 78 #define BLE_GATTS_OPT_BASE 0x60 /**< GATTS BLE Option base. */
jksoft 0:76dfa9657d9d 79 #define BLE_GATTS_OPT_LAST 0x7F /**< Total: 32. */
jksoft 0:76dfa9657d9d 80
jksoft 0:76dfa9657d9d 81 #define BLE_L2CAP_OPT_BASE 0x80 /**< L2CAP BLE Option base. */
jksoft 0:76dfa9657d9d 82 #define BLE_L2CAP_OPT_LAST 0x9F /**< Total: 32. */
jksoft 0:76dfa9657d9d 83
jksoft 0:76dfa9657d9d 84 #endif /* BLE_RANGES_H__ */
jksoft 0:76dfa9657d9d 85
jksoft 0:76dfa9657d9d 86 /**
jksoft 0:76dfa9657d9d 87 @}
jksoft 0:76dfa9657d9d 88 @}
jksoft 0:76dfa9657d9d 89 */