mbed(SerialHalfDuplex入り)
Fork of mbed by
TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_6_0_0/s110_nrf51822_6.0.0_API/include/ble_ranges.h@82:6473597d706e, 2014-04-07 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Apr 07 18:28:36 2014 +0100
- Revision:
- 82:6473597d706e
Release 82 of the mbed library
Main changes:
- support for K64F
- Revisited Nordic code structure
- Test infrastructure improvements
- various bug fixes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 82:6473597d706e | 1 | /* |
bogdanm | 82:6473597d706e | 2 | Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
bogdanm | 82:6473597d706e | 3 | |
bogdanm | 82:6473597d706e | 4 | The information contained herein is confidential property of Nordic Semiconductor. The use, |
bogdanm | 82:6473597d706e | 5 | copying, transfer or disclosure of such information is prohibited except by express written |
bogdanm | 82:6473597d706e | 6 | agreement with Nordic Semiconductor. |
bogdanm | 82:6473597d706e | 7 | */ |
bogdanm | 82:6473597d706e | 8 | /** |
bogdanm | 82:6473597d706e | 9 | @addtogroup BLE_COMMON |
bogdanm | 82:6473597d706e | 10 | @{ |
bogdanm | 82:6473597d706e | 11 | @defgroup ble_ranges Module specific SVC and event number subranges |
bogdanm | 82:6473597d706e | 12 | @{ |
bogdanm | 82:6473597d706e | 13 | |
bogdanm | 82:6473597d706e | 14 | @brief Definition of SVC and event number subranges for each API module. |
bogdanm | 82:6473597d706e | 15 | |
bogdanm | 82:6473597d706e | 16 | @note |
bogdanm | 82:6473597d706e | 17 | SVCs and event numbers are split into subranges for each API module. |
bogdanm | 82:6473597d706e | 18 | Each module receives its entire allocated range of SVC calls, whether implemented or not, |
bogdanm | 82:6473597d706e | 19 | but return BLE_ERROR_NOT_SUPPORTED for unimplemented or undefined calls in its range. |
bogdanm | 82:6473597d706e | 20 | |
bogdanm | 82:6473597d706e | 21 | Note that the symbols BLE_<module>_SVC_LAST is the end of the allocated SVC range, |
bogdanm | 82:6473597d706e | 22 | rather than the last SVC function call actually defined and implemented. |
bogdanm | 82:6473597d706e | 23 | |
bogdanm | 82:6473597d706e | 24 | Specific SVC and event values are defined in each module's ble_<module>.h file, |
bogdanm | 82:6473597d706e | 25 | which defines names of each individual SVC code based on the range start value. |
bogdanm | 82:6473597d706e | 26 | */ |
bogdanm | 82:6473597d706e | 27 | |
bogdanm | 82:6473597d706e | 28 | #ifndef BLE_RANGES_H__ |
bogdanm | 82:6473597d706e | 29 | #define BLE_RANGES_H__ |
bogdanm | 82:6473597d706e | 30 | |
bogdanm | 82:6473597d706e | 31 | #define BLE_SVC_BASE 0x60 |
bogdanm | 82:6473597d706e | 32 | #define BLE_SVC_LAST 0x6B /* Total: 12. */ |
bogdanm | 82:6473597d706e | 33 | |
bogdanm | 82:6473597d706e | 34 | #define BLE_RESERVED_SVC_BASE 0x6C |
bogdanm | 82:6473597d706e | 35 | #define BLE_RESERVED_SVC_LAST 0x6F /* Total: 4. */ |
bogdanm | 82:6473597d706e | 36 | |
bogdanm | 82:6473597d706e | 37 | #define BLE_GAP_SVC_BASE 0x70 |
bogdanm | 82:6473597d706e | 38 | #define BLE_GAP_SVC_LAST 0x8F /* Total: 32. */ |
bogdanm | 82:6473597d706e | 39 | |
bogdanm | 82:6473597d706e | 40 | #define BLE_GATTC_SVC_BASE 0x90 |
bogdanm | 82:6473597d706e | 41 | #define BLE_GATTC_SVC_LAST 0x9F /* Total: 16. */ |
bogdanm | 82:6473597d706e | 42 | |
bogdanm | 82:6473597d706e | 43 | #define BLE_GATTS_SVC_BASE 0xA0 |
bogdanm | 82:6473597d706e | 44 | #define BLE_GATTS_SVC_LAST 0xAF /* Total: 16. */ |
bogdanm | 82:6473597d706e | 45 | |
bogdanm | 82:6473597d706e | 46 | #define BLE_L2CAP_SVC_BASE 0xB0 |
bogdanm | 82:6473597d706e | 47 | #define BLE_L2CAP_SVC_LAST 0xBF /* Total: 16. */ |
bogdanm | 82:6473597d706e | 48 | |
bogdanm | 82:6473597d706e | 49 | |
bogdanm | 82:6473597d706e | 50 | #define BLE_EVT_INVALID 0x00 |
bogdanm | 82:6473597d706e | 51 | |
bogdanm | 82:6473597d706e | 52 | #define BLE_EVT_BASE 0x01 |
bogdanm | 82:6473597d706e | 53 | #define BLE_EVT_LAST 0x0F /* Total: 15. */ |
bogdanm | 82:6473597d706e | 54 | |
bogdanm | 82:6473597d706e | 55 | #define BLE_GAP_EVT_BASE 0x10 |
bogdanm | 82:6473597d706e | 56 | #define BLE_GAP_EVT_LAST 0x2F /* Total: 32. */ |
bogdanm | 82:6473597d706e | 57 | |
bogdanm | 82:6473597d706e | 58 | #define BLE_GATTC_EVT_BASE 0x30 |
bogdanm | 82:6473597d706e | 59 | #define BLE_GATTC_EVT_LAST 0x4F /* Total: 32. */ |
bogdanm | 82:6473597d706e | 60 | |
bogdanm | 82:6473597d706e | 61 | #define BLE_GATTS_EVT_BASE 0x50 |
bogdanm | 82:6473597d706e | 62 | #define BLE_GATTS_EVT_LAST 0x6F /* Total: 32. */ |
bogdanm | 82:6473597d706e | 63 | |
bogdanm | 82:6473597d706e | 64 | #define BLE_L2CAP_EVT_BASE 0x70 |
bogdanm | 82:6473597d706e | 65 | #define BLE_L2CAP_EVT_LAST 0x8F /* Total: 32. */ |
bogdanm | 82:6473597d706e | 66 | |
bogdanm | 82:6473597d706e | 67 | #endif /* BLE_RANGES_H__ */ |
bogdanm | 82:6473597d706e | 68 | |
bogdanm | 82:6473597d706e | 69 | /** |
bogdanm | 82:6473597d706e | 70 | @} |
bogdanm | 82:6473597d706e | 71 | @} |
bogdanm | 82:6473597d706e | 72 | */ |