BLE Temperature Service Mobile and Ubiquitous Computing Module Birkbeck College

Dependencies:   DS1820

Committer:
gkroussos
Date:
Sun Mar 08 19:42:20 2015 +0000
Revision:
0:dd0fea342ad2
BLE Temperature Service ; Mobile and Ubiquitous Computing Module; Birkbeck College

Who changed what in which revision?

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