Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
nordic-sdk/components/ble/device_manager/config/device_manager_cnfg.h@182:711688a2ead8, 2015-06-08 (annotated)
- Committer:
- rgrover1
- Date:
- Mon Jun 08 10:43:30 2015 +0100
- Revision:
- 182:711688a2ead8
- Parent:
- 103:138bdc859cc9
- Child:
- 343:6675661fa600
Synchronized with git rev 0b6fc3e4
Author: Rohit Grover
reduce max bonds to managed by device-manager to 4.
This has an impact on global static memory.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rgrover1 | 182:711688a2ead8 | 1 | /* Copyright (C) 2013 Nordic Semiconductor. All Rights Reserved. |
| rgrover1 | 182:711688a2ead8 | 2 | * |
| rgrover1 | 182:711688a2ead8 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
| rgrover1 | 182:711688a2ead8 | 4 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
| rgrover1 | 182:711688a2ead8 | 5 | * |
| rgrover1 | 182:711688a2ead8 | 6 | * Licensees are granted free, non-transferable use of the information. NO |
| rgrover1 | 182:711688a2ead8 | 7 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
| rgrover1 | 182:711688a2ead8 | 8 | * the file. |
| rgrover1 | 182:711688a2ead8 | 9 | * |
| rgrover1 | 182:711688a2ead8 | 10 | */ |
| rgrover1 | 182:711688a2ead8 | 11 | |
| rgrover1 | 182:711688a2ead8 | 12 | /** |
| rgrover1 | 182:711688a2ead8 | 13 | * @file device_manager_cnfg.h |
| rgrover1 | 182:711688a2ead8 | 14 | * |
| rgrover1 | 182:711688a2ead8 | 15 | * @cond |
| rgrover1 | 182:711688a2ead8 | 16 | * @defgroup device_manager_cnfg Device Manager Configuration |
| rgrover1 | 182:711688a2ead8 | 17 | * @ingroup device_manager |
| rgrover1 | 182:711688a2ead8 | 18 | * @{ |
| rgrover1 | 182:711688a2ead8 | 19 | * |
| rgrover1 | 182:711688a2ead8 | 20 | * @brief Defines application specific configuration for Device Manager. |
| rgrover1 | 182:711688a2ead8 | 21 | * |
| rgrover1 | 182:711688a2ead8 | 22 | * @details All configurations that are specific to application have been defined |
| rgrover1 | 182:711688a2ead8 | 23 | * here. Application should configuration that best suits its requirements. |
| rgrover1 | 182:711688a2ead8 | 24 | */ |
| rgrover1 | 182:711688a2ead8 | 25 | |
| rgrover1 | 182:711688a2ead8 | 26 | #ifndef DEVICE_MANAGER_CNFG_H__ |
| rgrover1 | 182:711688a2ead8 | 27 | #define DEVICE_MANAGER_CNFG_H__ |
| rgrover1 | 182:711688a2ead8 | 28 | |
| rgrover1 | 182:711688a2ead8 | 29 | /** |
| rgrover1 | 182:711688a2ead8 | 30 | * @defgroup device_manager_inst Device Manager Instances |
| rgrover1 | 182:711688a2ead8 | 31 | * @{ |
| rgrover1 | 182:711688a2ead8 | 32 | */ |
| rgrover1 | 182:711688a2ead8 | 33 | /** |
| rgrover1 | 182:711688a2ead8 | 34 | * @brief Maximum applications that Device Manager can support. |
| rgrover1 | 182:711688a2ead8 | 35 | * |
| rgrover1 | 182:711688a2ead8 | 36 | * @details Maximum application that the Device Manager can support. |
| rgrover1 | 182:711688a2ead8 | 37 | * Currently only one application can be supported. |
| rgrover1 | 182:711688a2ead8 | 38 | * Minimum value : 1 |
| rgrover1 | 182:711688a2ead8 | 39 | * Maximum value : 1 |
| rgrover1 | 182:711688a2ead8 | 40 | * Dependencies : None. |
| rgrover1 | 182:711688a2ead8 | 41 | */ |
| rgrover1 | 182:711688a2ead8 | 42 | #define DEVICE_MANAGER_MAX_APPLICATIONS 1 |
| rgrover1 | 182:711688a2ead8 | 43 | |
| rgrover1 | 182:711688a2ead8 | 44 | /** |
| rgrover1 | 182:711688a2ead8 | 45 | * @brief Maximum connections that Device Manager should simultaneously manage. |
| rgrover1 | 182:711688a2ead8 | 46 | * |
| rgrover1 | 182:711688a2ead8 | 47 | * @details Maximum connections that Device Manager should simultaneously manage. |
| rgrover1 | 182:711688a2ead8 | 48 | * Minimum value : 1 |
| rgrover1 | 182:711688a2ead8 | 49 | * Maximum value : Maximum links supported by SoftDevice. |
| rgrover1 | 182:711688a2ead8 | 50 | * Dependencies : None. |
| rgrover1 | 182:711688a2ead8 | 51 | */ |
| rgrover1 | 182:711688a2ead8 | 52 | #define DEVICE_MANAGER_MAX_CONNECTIONS 1 |
| rgrover1 | 182:711688a2ead8 | 53 | |
| rgrover1 | 182:711688a2ead8 | 54 | |
| rgrover1 | 182:711688a2ead8 | 55 | /** |
| rgrover1 | 182:711688a2ead8 | 56 | * @brief Maximum bonds that Device Manager should manage. |
| rgrover1 | 182:711688a2ead8 | 57 | * |
| rgrover1 | 182:711688a2ead8 | 58 | * @details Maximum bonds that Device Manager should manage. |
| rgrover1 | 182:711688a2ead8 | 59 | * Minimum value : 1 |
| rgrover1 | 182:711688a2ead8 | 60 | * Maximum value : 254. |
| rgrover1 | 182:711688a2ead8 | 61 | * Dependencies : None. |
| rgrover1 | 182:711688a2ead8 | 62 | * @note In case of GAP Peripheral role, the Device Manager will accept bonding procedure |
| rgrover1 | 182:711688a2ead8 | 63 | * requests from peers even if this limit is reached, but bonding information will not |
| rgrover1 | 182:711688a2ead8 | 64 | * be stored. In such cases, application will be notified with DM_DEVICE_CONTEXT_FULL |
| rgrover1 | 182:711688a2ead8 | 65 | * as event result at the completion of the security procedure. |
| rgrover1 | 182:711688a2ead8 | 66 | */ |
| rgrover1 | 182:711688a2ead8 | 67 | #define DEVICE_MANAGER_MAX_BONDS 4 |
| rgrover1 | 182:711688a2ead8 | 68 | |
| rgrover1 | 182:711688a2ead8 | 69 | |
| rgrover1 | 182:711688a2ead8 | 70 | /** |
| rgrover1 | 182:711688a2ead8 | 71 | * @brief Maximum Characteristic Client Descriptors used for GATT Server. |
| rgrover1 | 182:711688a2ead8 | 72 | * |
| rgrover1 | 182:711688a2ead8 | 73 | * @details Maximum Characteristic Client Descriptors used for GATT Server. |
| rgrover1 | 182:711688a2ead8 | 74 | * Minimum value : 1 |
| rgrover1 | 182:711688a2ead8 | 75 | * Maximum value : 254. |
| rgrover1 | 182:711688a2ead8 | 76 | * Dependencies : None. |
| rgrover1 | 182:711688a2ead8 | 77 | */ |
| rgrover1 | 182:711688a2ead8 | 78 | #define DM_GATT_CCCD_COUNT 2 |
| rgrover1 | 182:711688a2ead8 | 79 | |
| rgrover1 | 182:711688a2ead8 | 80 | |
| rgrover1 | 182:711688a2ead8 | 81 | /** |
| rgrover1 | 182:711688a2ead8 | 82 | * @brief Size of application context. |
| rgrover1 | 182:711688a2ead8 | 83 | * |
| rgrover1 | 182:711688a2ead8 | 84 | * @details Size of application context that Device Manager should manage for each bonded device. |
| rgrover1 | 182:711688a2ead8 | 85 | * Size had to be a multiple of word size. |
| rgrover1 | 182:711688a2ead8 | 86 | * Minimum value : 4. |
| rgrover1 | 182:711688a2ead8 | 87 | * Maximum value : 256. |
| rgrover1 | 182:711688a2ead8 | 88 | * Dependencies : Needed only if Application Context saving is used by the application. |
| rgrover1 | 182:711688a2ead8 | 89 | * @note If set to zero, its an indication that application context is not required to be managed |
| rgrover1 | 182:711688a2ead8 | 90 | * by the module. |
| rgrover1 | 182:711688a2ead8 | 91 | */ |
| rgrover1 | 182:711688a2ead8 | 92 | #define DEVICE_MANAGER_APP_CONTEXT_SIZE 0 |
| rgrover1 | 182:711688a2ead8 | 93 | |
| rgrover1 | 182:711688a2ead8 | 94 | /* @} */ |
| rgrover1 | 182:711688a2ead8 | 95 | /* @} */ |
| rgrover1 | 182:711688a2ead8 | 96 | /** @endcond */ |
| rgrover1 | 182:711688a2ead8 | 97 | #endif // DEVICE_MANAGER_CNFG_H__ |
