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