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