Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.
source/nordic_sdk/components/ble/device_manager/config/device_manager_cnfg.h@19:47192cb9def7, 2016-04-07 (annotated)
- Committer:
- vcoubard
- Date:
- Thu Apr 07 17:37:40 2016 +0100
- Revision:
- 19:47192cb9def7
- Parent:
- 11:53378d902308
- Child:
- 20:a90c48eb1d30
Synchronized with git rev 9251259f
Author: Liyou Zhou
Copy over coresponding files from nordic-sdk 9.0.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vcoubard | 19:47192cb9def7 | 1 | /* Copyright (C) 2013 Nordic Semiconductor. All Rights Reserved. |
vcoubard | 19:47192cb9def7 | 2 | * |
vcoubard | 19:47192cb9def7 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
vcoubard | 19:47192cb9def7 | 4 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
vcoubard | 19:47192cb9def7 | 5 | * |
vcoubard | 19:47192cb9def7 | 6 | * Licensees are granted free, non-transferable use of the information. NO |
vcoubard | 19:47192cb9def7 | 7 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
vcoubard | 19:47192cb9def7 | 8 | * the file. |
vcoubard | 19:47192cb9def7 | 9 | * |
Vincent Coubard |
0:f2542974c862 | 10 | */ |
Vincent Coubard |
0:f2542974c862 | 11 | |
Vincent Coubard |
0:f2542974c862 | 12 | /** |
Vincent Coubard |
0:f2542974c862 | 13 | * @file device_manager_cnfg.h |
Vincent Coubard |
0:f2542974c862 | 14 | * |
Vincent Coubard |
0:f2542974c862 | 15 | * @cond |
Vincent Coubard |
0:f2542974c862 | 16 | * @defgroup device_manager_cnfg Device Manager Configuration |
Vincent Coubard |
0:f2542974c862 | 17 | * @ingroup device_manager |
Vincent Coubard |
0:f2542974c862 | 18 | * @{ |
Vincent Coubard |
0:f2542974c862 | 19 | * |
Vincent Coubard |
0:f2542974c862 | 20 | * @brief Defines application specific configuration for Device Manager. |
Vincent Coubard |
0:f2542974c862 | 21 | * |
Vincent Coubard |
0:f2542974c862 | 22 | * @details All configurations that are specific to application have been defined |
Vincent Coubard |
0:f2542974c862 | 23 | * here. Application should configuration that best suits its requirements. |
Vincent Coubard |
0:f2542974c862 | 24 | */ |
Vincent Coubard |
0:f2542974c862 | 25 | |
Vincent Coubard |
0:f2542974c862 | 26 | #ifndef DEVICE_MANAGER_CNFG_H__ |
Vincent Coubard |
0:f2542974c862 | 27 | #define DEVICE_MANAGER_CNFG_H__ |
Vincent Coubard |
0:f2542974c862 | 28 | |
Vincent Coubard |
0:f2542974c862 | 29 | /** |
Vincent Coubard |
0:f2542974c862 | 30 | * @defgroup device_manager_inst Device Manager Instances |
Vincent Coubard |
0:f2542974c862 | 31 | * @{ |
Vincent Coubard |
0:f2542974c862 | 32 | */ |
Vincent Coubard |
0:f2542974c862 | 33 | /** |
Vincent Coubard |
0:f2542974c862 | 34 | * @brief Maximum applications that Device Manager can support. |
Vincent Coubard |
0:f2542974c862 | 35 | * |
Vincent Coubard |
0:f2542974c862 | 36 | * @details Maximum application that the Device Manager can support. |
Vincent Coubard |
0:f2542974c862 | 37 | * Currently only one application can be supported. |
Vincent Coubard |
0:f2542974c862 | 38 | * Minimum value : 1 |
Vincent Coubard |
0:f2542974c862 | 39 | * Maximum value : 1 |
Vincent Coubard |
0:f2542974c862 | 40 | * Dependencies : None. |
Vincent Coubard |
0:f2542974c862 | 41 | */ |
Vincent Coubard |
0:f2542974c862 | 42 | #define DEVICE_MANAGER_MAX_APPLICATIONS 1 |
Vincent Coubard |
0:f2542974c862 | 43 | |
Vincent Coubard |
0:f2542974c862 | 44 | /** |
Vincent Coubard |
0:f2542974c862 | 45 | * @brief Maximum connections that Device Manager should simultaneously manage. |
Vincent Coubard |
0:f2542974c862 | 46 | * |
Vincent Coubard |
0:f2542974c862 | 47 | * @details Maximum connections that Device Manager should simultaneously manage. |
Vincent Coubard |
0:f2542974c862 | 48 | * Minimum value : 1 |
Vincent Coubard |
0:f2542974c862 | 49 | * Maximum value : Maximum links supported by SoftDevice. |
Vincent Coubard |
0:f2542974c862 | 50 | * Dependencies : None. |
Vincent Coubard |
0:f2542974c862 | 51 | */ |
Vincent Coubard |
0:f2542974c862 | 52 | #define DEVICE_MANAGER_MAX_CONNECTIONS 1 |
Vincent Coubard |
0:f2542974c862 | 53 | |
Vincent Coubard |
0:f2542974c862 | 54 | |
Vincent Coubard |
0:f2542974c862 | 55 | /** |
Vincent Coubard |
0:f2542974c862 | 56 | * @brief Maximum bonds that Device Manager should manage. |
Vincent Coubard |
0:f2542974c862 | 57 | * |
Vincent Coubard |
0:f2542974c862 | 58 | * @details Maximum bonds that Device Manager should manage. |
Vincent Coubard |
0:f2542974c862 | 59 | * Minimum value : 1 |
Vincent Coubard |
0:f2542974c862 | 60 | * Maximum value : 254. |
Vincent Coubard |
0:f2542974c862 | 61 | * Dependencies : None. |
Vincent Coubard |
0:f2542974c862 | 62 | * @note In case of GAP Peripheral role, the Device Manager will accept bonding procedure |
Vincent Coubard |
0:f2542974c862 | 63 | * requests from peers even if this limit is reached, but bonding information will not |
Vincent Coubard |
0:f2542974c862 | 64 | * be stored. In such cases, application will be notified with DM_DEVICE_CONTEXT_FULL |
Vincent Coubard |
0:f2542974c862 | 65 | * as event result at the completion of the security procedure. |
Vincent Coubard |
0:f2542974c862 | 66 | */ |
vcoubard | 19:47192cb9def7 | 67 | #define DEVICE_MANAGER_MAX_BONDS 7 |
Vincent Coubard |
0:f2542974c862 | 68 | |
Vincent Coubard |
0:f2542974c862 | 69 | |
Vincent Coubard |
0:f2542974c862 | 70 | /** |
Vincent Coubard |
0:f2542974c862 | 71 | * @brief Maximum Characteristic Client Descriptors used for GATT Server. |
Vincent Coubard |
0:f2542974c862 | 72 | * |
Vincent Coubard |
0:f2542974c862 | 73 | * @details Maximum Characteristic Client Descriptors used for GATT Server. |
Vincent Coubard |
0:f2542974c862 | 74 | * Minimum value : 1 |
Vincent Coubard |
0:f2542974c862 | 75 | * Maximum value : 254. |
Vincent Coubard |
0:f2542974c862 | 76 | * Dependencies : None. |
Vincent Coubard |
0:f2542974c862 | 77 | */ |
Vincent Coubard |
0:f2542974c862 | 78 | #define DM_GATT_CCCD_COUNT 2 |
Vincent Coubard |
0:f2542974c862 | 79 | |
Vincent Coubard |
0:f2542974c862 | 80 | |
Vincent Coubard |
0:f2542974c862 | 81 | /** |
Vincent Coubard |
0:f2542974c862 | 82 | * @brief Size of application context. |
Vincent Coubard |
0:f2542974c862 | 83 | * |
Vincent Coubard |
0:f2542974c862 | 84 | * @details Size of application context that Device Manager should manage for each bonded device. |
Vincent Coubard |
0:f2542974c862 | 85 | * Size had to be a multiple of word size. |
Vincent Coubard |
0:f2542974c862 | 86 | * Minimum value : 4. |
Vincent Coubard |
0:f2542974c862 | 87 | * Maximum value : 256. |
Vincent Coubard |
0:f2542974c862 | 88 | * Dependencies : Needed only if Application Context saving is used by the application. |
Vincent Coubard |
0:f2542974c862 | 89 | * @note If set to zero, its an indication that application context is not required to be managed |
Vincent Coubard |
0:f2542974c862 | 90 | * by the module. |
Vincent Coubard |
0:f2542974c862 | 91 | */ |
Vincent Coubard |
0:f2542974c862 | 92 | #define DEVICE_MANAGER_APP_CONTEXT_SIZE 0 |
Vincent Coubard |
0:f2542974c862 | 93 | |
Vincent Coubard |
0:f2542974c862 | 94 | /* @} */ |
Vincent Coubard |
0:f2542974c862 | 95 | /* @} */ |
Vincent Coubard |
0:f2542974c862 | 96 | /** @endcond */ |
Vincent Coubard |
0:f2542974c862 | 97 | #endif // DEVICE_MANAGER_CNFG_H__ |
vcoubard | 1:ebc0e0ef0a11 | 98 |