Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ble_ranges.h Source File

ble_ranges.h

00001 /*
00002   Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
00003 
00004   The information contained herein is confidential property of Nordic Semiconductor. The use,
00005   copying, transfer or disclosure of such information is prohibited except by express written
00006   agreement with Nordic Semiconductor.
00007  */
00008 /**
00009   @addtogroup BLE_COMMON
00010   @{
00011   @defgroup ble_ranges Module specific SVC and event number subranges
00012   @{
00013 
00014   @brief Definition of SVC and event number subranges for each API module.
00015 
00016   @note
00017   SVCs and event numbers are split into subranges for each API module.
00018   Each module receives its entire allocated range of SVC calls, whether implemented or not,
00019   but return BLE_ERROR_NOT_SUPPORTED for unimplemented or undefined calls in its range.
00020 
00021   Note that the symbols BLE_<module>_SVC_LAST is the end of the allocated SVC range,
00022   rather than the last SVC function call actually defined and implemented.
00023 
00024   Specific SVC and event values are defined in each module's ble_<module>.h file,
00025   which defines names of each individual SVC code based on the range start value.
00026 */
00027 
00028 #ifndef BLE_RANGES_H__
00029 #define BLE_RANGES_H__
00030 
00031 #define BLE_SVC_BASE           0x60
00032 #define BLE_SVC_LAST           0x6B       /* Total: 12. */
00033 
00034 #define BLE_RESERVED_SVC_BASE  0x6C
00035 #define BLE_RESERVED_SVC_LAST  0x6F       /* Total: 4. */
00036 
00037 #define BLE_GAP_SVC_BASE       0x70
00038 #define BLE_GAP_SVC_LAST       0x8F       /* Total: 32. */
00039 
00040 #define BLE_GATTC_SVC_BASE     0x90
00041 #define BLE_GATTC_SVC_LAST     0x9F       /* Total: 16. */
00042 
00043 #define BLE_GATTS_SVC_BASE     0xA0
00044 #define BLE_GATTS_SVC_LAST     0xAF       /* Total: 16. */
00045 
00046 #define BLE_L2CAP_SVC_BASE     0xB0
00047 #define BLE_L2CAP_SVC_LAST     0xBF       /* Total: 16. */
00048 
00049 
00050 #define BLE_EVT_INVALID        0x00
00051 
00052 #define BLE_EVT_BASE           0x01
00053 #define BLE_EVT_LAST           0x0F       /* Total: 15. */
00054 
00055 #define BLE_GAP_EVT_BASE       0x10
00056 #define BLE_GAP_EVT_LAST       0x2F       /* Total: 32. */
00057 
00058 #define BLE_GATTC_EVT_BASE     0x30
00059 #define BLE_GATTC_EVT_LAST     0x4F       /* Total: 32. */
00060 
00061 #define BLE_GATTS_EVT_BASE     0x50
00062 #define BLE_GATTS_EVT_LAST     0x6F       /* Total: 32. */
00063 
00064 #define BLE_L2CAP_EVT_BASE     0x70
00065 #define BLE_L2CAP_EVT_LAST     0x8F       /* Total: 32.  */
00066 
00067 #define BLE_OPT_INVALID        0x00       /**< Invalid BLE Option. */
00068 
00069 #define BLE_OPT_BASE           0x01       /**< Common BLE Option base. */
00070 #define BLE_OPT_LAST           0x1F       /**< Total: 31. */
00071 
00072 #define BLE_GAP_OPT_BASE       0x20       /**< GAP BLE Option base. */
00073 #define BLE_GAP_OPT_LAST       0x3F       /**< Total: 32. */
00074 
00075 #define BLE_GATTC_OPT_BASE     0x40       /**< GATTC BLE Option base. */
00076 #define BLE_GATTC_OPT_LAST     0x5F       /**< Total: 32. */
00077 
00078 #define BLE_GATTS_OPT_BASE     0x60       /**< GATTS BLE Option base. */
00079 #define BLE_GATTS_OPT_LAST     0x7F       /**< Total: 32. */
00080 
00081 #define BLE_L2CAP_OPT_BASE     0x80       /**< L2CAP BLE Option base. */
00082 #define BLE_L2CAP_OPT_LAST     0x9F       /**< Total: 32.  */
00083 
00084 #endif /* BLE_RANGES_H__ */
00085 
00086 /**
00087   @}
00088   @}
00089 */