Jason Garner / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Committer:
elevatorguy
Date:
Thu Aug 13 02:33:38 2015 +0000
Revision:
386:52cd618a90b4
Parent:
381:c997e9717fb7
changes

Who changed what in which revision?

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