cvb
Fork of nrf51-sdk by
source/nordic_sdk/components/ble/device_manager/config/device_manager_cnfg.h@9:d3dd910b0f4b, 2018-08-14 (annotated)
- Committer:
- tb942
- Date:
- Tue Aug 14 18:27:20 2018 +0000
- Revision:
- 9:d3dd910b0f4b
- Parent:
- 2:b127cab04188
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jonathan Austin |
0:bc2961fa1ef0 | 1 | /* |
Jonathan Austin |
0:bc2961fa1ef0 | 2 | * Copyright (c) Nordic Semiconductor ASA |
Jonathan Austin |
0:bc2961fa1ef0 | 3 | * All rights reserved. |
Jonathan Austin |
0:bc2961fa1ef0 | 4 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
Jonathan Austin |
0:bc2961fa1ef0 | 6 | * are permitted provided that the following conditions are met: |
Jonathan Austin |
0:bc2961fa1ef0 | 7 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
Jonathan Austin |
0:bc2961fa1ef0 | 9 | * list of conditions and the following disclaimer. |
Jonathan Austin |
0:bc2961fa1ef0 | 10 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
Jonathan Austin |
0:bc2961fa1ef0 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
Jonathan Austin |
0:bc2961fa1ef0 | 13 | * other materials provided with the distribution. |
Jonathan Austin |
0:bc2961fa1ef0 | 14 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
Jonathan Austin |
0:bc2961fa1ef0 | 16 | * contributors to this software may be used to endorse or promote products |
Jonathan Austin |
0:bc2961fa1ef0 | 17 | * derived from this software without specific prior written permission. |
Jonathan Austin |
0:bc2961fa1ef0 | 18 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 19 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
Jonathan Austin |
0:bc2961fa1ef0 | 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
Jonathan Austin |
0:bc2961fa1ef0 | 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Jonathan Austin |
0:bc2961fa1ef0 | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
Jonathan Austin |
0:bc2961fa1ef0 | 24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
Jonathan Austin |
0:bc2961fa1ef0 | 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
Jonathan Austin |
0:bc2961fa1ef0 | 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
Jonathan Austin |
0:bc2961fa1ef0 | 27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Jonathan Austin |
0:bc2961fa1ef0 | 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
Jonathan Austin |
0:bc2961fa1ef0 | 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Jonathan Austin |
0:bc2961fa1ef0 | 30 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 31 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 32 | |
Jonathan Austin |
0:bc2961fa1ef0 | 33 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 34 | * @file device_manager_cnfg.h |
Jonathan Austin |
0:bc2961fa1ef0 | 35 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 36 | * @cond |
Jonathan Austin |
0:bc2961fa1ef0 | 37 | * @defgroup device_manager_cnfg Device Manager Configuration |
Jonathan Austin |
0:bc2961fa1ef0 | 38 | * @ingroup device_manager |
Jonathan Austin |
0:bc2961fa1ef0 | 39 | * @{ |
Jonathan Austin |
0:bc2961fa1ef0 | 40 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 41 | * @brief Defines application specific configuration for Device Manager. |
Jonathan Austin |
0:bc2961fa1ef0 | 42 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 43 | * @details All configurations that are specific to application have been defined |
Jonathan Austin |
0:bc2961fa1ef0 | 44 | * here. Application should configuration that best suits its requirements. |
Jonathan Austin |
0:bc2961fa1ef0 | 45 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 46 | |
Jonathan Austin |
0:bc2961fa1ef0 | 47 | #ifndef DEVICE_MANAGER_CNFG_H__ |
Jonathan Austin |
0:bc2961fa1ef0 | 48 | #define DEVICE_MANAGER_CNFG_H__ |
Jonathan Austin |
0:bc2961fa1ef0 | 49 | |
Jonathan Austin |
0:bc2961fa1ef0 | 50 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 51 | * @defgroup device_manager_inst Device Manager Instances |
Jonathan Austin |
0:bc2961fa1ef0 | 52 | * @{ |
Jonathan Austin |
0:bc2961fa1ef0 | 53 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 54 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 55 | * @brief Maximum applications that Device Manager can support. |
Jonathan Austin |
0:bc2961fa1ef0 | 56 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 57 | * @details Maximum application that the Device Manager can support. |
Jonathan Austin |
0:bc2961fa1ef0 | 58 | * Currently only one application can be supported. |
Jonathan Austin |
0:bc2961fa1ef0 | 59 | * Minimum value : 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 60 | * Maximum value : 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 61 | * Dependencies : None. |
Jonathan Austin |
0:bc2961fa1ef0 | 62 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 63 | #define DEVICE_MANAGER_MAX_APPLICATIONS 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 64 | |
Jonathan Austin |
0:bc2961fa1ef0 | 65 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 66 | * @brief Maximum connections that Device Manager should simultaneously manage. |
Jonathan Austin |
0:bc2961fa1ef0 | 67 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 68 | * @details Maximum connections that Device Manager should simultaneously manage. |
Jonathan Austin |
0:bc2961fa1ef0 | 69 | * Minimum value : 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 70 | * Maximum value : Maximum links supported by SoftDevice. |
Jonathan Austin |
0:bc2961fa1ef0 | 71 | * Dependencies : None. |
Jonathan Austin |
0:bc2961fa1ef0 | 72 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 73 | #define DEVICE_MANAGER_MAX_CONNECTIONS 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 74 | |
Jonathan Austin |
0:bc2961fa1ef0 | 75 | |
Jonathan Austin |
0:bc2961fa1ef0 | 76 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 77 | * @brief Maximum bonds that Device Manager should manage. |
Jonathan Austin |
0:bc2961fa1ef0 | 78 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 79 | * @details Maximum bonds that Device Manager should manage. |
Jonathan Austin |
0:bc2961fa1ef0 | 80 | * Minimum value : 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 81 | * Maximum value : 254. |
Jonathan Austin |
0:bc2961fa1ef0 | 82 | * Dependencies : None. |
Jonathan Austin |
0:bc2961fa1ef0 | 83 | * @note In case of GAP Peripheral role, the Device Manager will accept bonding procedure |
Jonathan Austin |
0:bc2961fa1ef0 | 84 | * requests from peers even if this limit is reached, but bonding information will not |
Jonathan Austin |
0:bc2961fa1ef0 | 85 | * be stored. In such cases, application will be notified with DM_DEVICE_CONTEXT_FULL |
Jonathan Austin |
0:bc2961fa1ef0 | 86 | * as event result at the completion of the security procedure. |
Jonathan Austin |
0:bc2961fa1ef0 | 87 | */ |
LancasterUniversity | 2:b127cab04188 | 88 | #define DEVICE_MANAGER_MAX_BONDS 6 |
Jonathan Austin |
0:bc2961fa1ef0 | 89 | |
Jonathan Austin |
0:bc2961fa1ef0 | 90 | |
Jonathan Austin |
0:bc2961fa1ef0 | 91 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 92 | * @brief Maximum Characteristic Client Descriptors used for GATT Server. |
Jonathan Austin |
0:bc2961fa1ef0 | 93 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 94 | * @details Maximum Characteristic Client Descriptors used for GATT Server. |
Jonathan Austin |
0:bc2961fa1ef0 | 95 | * Minimum value : 1 |
Jonathan Austin |
0:bc2961fa1ef0 | 96 | * Maximum value : 254. |
Jonathan Austin |
0:bc2961fa1ef0 | 97 | * Dependencies : None. |
Jonathan Austin |
0:bc2961fa1ef0 | 98 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 99 | #define DM_GATT_CCCD_COUNT 2 |
Jonathan Austin |
0:bc2961fa1ef0 | 100 | |
Jonathan Austin |
0:bc2961fa1ef0 | 101 | |
Jonathan Austin |
0:bc2961fa1ef0 | 102 | /** |
Jonathan Austin |
0:bc2961fa1ef0 | 103 | * @brief Size of application context. |
Jonathan Austin |
0:bc2961fa1ef0 | 104 | * |
Jonathan Austin |
0:bc2961fa1ef0 | 105 | * @details Size of application context that Device Manager should manage for each bonded device. |
Jonathan Austin |
0:bc2961fa1ef0 | 106 | * Size had to be a multiple of word size. |
Jonathan Austin |
0:bc2961fa1ef0 | 107 | * Minimum value : 4. |
Jonathan Austin |
0:bc2961fa1ef0 | 108 | * Maximum value : 256. |
Jonathan Austin |
0:bc2961fa1ef0 | 109 | * Dependencies : Needed only if Application Context saving is used by the application. |
Jonathan Austin |
0:bc2961fa1ef0 | 110 | * @note If set to zero, its an indication that application context is not required to be managed |
Jonathan Austin |
0:bc2961fa1ef0 | 111 | * by the module. |
Jonathan Austin |
0:bc2961fa1ef0 | 112 | */ |
Jonathan Austin |
0:bc2961fa1ef0 | 113 | #define DEVICE_MANAGER_APP_CONTEXT_SIZE 0 |
Jonathan Austin |
0:bc2961fa1ef0 | 114 | |
Jonathan Austin |
0:bc2961fa1ef0 | 115 | /* @} */ |
Jonathan Austin |
0:bc2961fa1ef0 | 116 | /* @} */ |
Jonathan Austin |
0:bc2961fa1ef0 | 117 | /** @endcond */ |
Jonathan Austin |
0:bc2961fa1ef0 | 118 | #endif // DEVICE_MANAGER_CNFG_H__ |
LancasterUniversity | 1:e7e7ec2d2380 | 119 |