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