Statistics
| Branch: | Tag: | Revision:

mongoose / examples / nRF52 / http / config / ipv6_medium_ble_cfg.h @ eaef5bd1

History | View | Annotate | Download (4.27 KB)

1
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2
 *
3
 * The information contained herein is property of Nordic Semiconductor ASA.
4
 * Terms and conditions of usage are described in detail in NORDIC
5
 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6
 *
7
 * Licensees are granted free, non-transferable use of the information. NO
8
 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9
 * the file.
10
 */
11

    
12
/** @cond To make doxygen skip this file */
13

    
14
/** @file
15
 *  This header contains defines with respect to the IPv6 medium that are specific to
16
 *  the BLE implementation and the application use case.
17
 * @{
18
 */
19

    
20
#ifndef IPV6_MEDIUM_BLE_CONFIG_H__
21
#define IPV6_MEDIUM_BLE_CONFIG_H__
22

    
23
#include "app_util.h"
24

    
25
#define DEVICE_NAME                      "TCP_Server"                         /**< Device name used in BLE undirected advertisement. */
26
#define IS_SRVC_CHANGED_CHARACT_PRESENT  0
27

    
28
#define COMPANY_IDENTIFIER               0x0059                               /**< Company identifier for Nordic Semiconductor ASA as per www.bluetooth.org. */
29

    
30
#define APP_TIMER_PRESCALER              31                                   /**< Value of the RTC1 PRESCALER register. */
31
#define APP_ADV_ADV_INTERVAL             MSEC_TO_UNITS(333, UNIT_0_625_MS)    /**< The advertising interval. This value can vary between 100ms to 10.24s). */
32
#define APP_ADV_TIMEOUT                  0                                    /**< Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */
33

    
34
/*lint -emacro(524, MIN_CONN_INTERVAL) // Loss of precision */
35
#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(7.5, UNIT_1_25_MS)     /**< Minimum connection interval (7.5 ms) */
36
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(30, UNIT_1_25_MS)      /**< Maximum connection interval (30 ms). */
37
#define SLAVE_LATENCY                    6                                    /**< Slave latency. */
38
#define CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(430, UNIT_10_MS)       /**< Connection supervisory timeout (430 ms). */
39

    
40
#ifdef COMMISSIONING_ENABLED
41

    
42
#define CONFIG_MODE_DEVICE_NAME           "NodeCFG"                           /**< Name of device. Will be included in the advertising data. */
43

    
44
/*lint -emacro(524, MIN_CONN_INTERVAL) // Loss of precision */
45
#define CONFIG_MODE_MIN_CONN_INTERVAL     MSEC_TO_UNITS(400, UNIT_1_25_MS)    /**< Config mode: Minimum acceptable connection interval (0.4 seconds). */
46
#define CONFIG_MODE_MAX_CONN_INTERVAL     MSEC_TO_UNITS(650, UNIT_1_25_MS)    /**< Config mode: Maximum acceptable connection interval (0.65 second). */
47
#define CONFIG_MODE_SLAVE_LATENCY         0                                   /**< Config mode: Slave latency. */
48
#define CONFIG_MODE_CONN_SUP_TIMEOUT      MSEC_TO_UNITS(4000, UNIT_10_MS)     /**< Config mode: Connection supervisory timeout (4 seconds). */
49

    
50
#define CONFIG_MODE_ADV_ADV_INTERVAL      MSEC_TO_UNITS(333, UNIT_0_625_MS)   /**< Config mode: The advertising interval. This value can vary between 100ms to 10.24s). */
51
#define CONFIG_MODE_ADV_TIMEOUT           0                                   /**< Config mode: Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */
52

    
53
#define JOINING_MODE_MIN_CONN_INTERVAL    MSEC_TO_UNITS(400, UNIT_1_25_MS)    /**< Joining mode: Minimum acceptable connection interval (0.4 seconds). */
54
#define JOINING_MODE_MAX_CONN_INTERVAL    MSEC_TO_UNITS(650, UNIT_1_25_MS)    /**< Joining mode: Maximum acceptable connection interval (0.65 second). */
55
#define JOINING_MODE_SLAVE_LATENCY        0                                   /**< Joining mode: Slave latency. */
56
#define JOINING_MODE_CONN_SUP_TIMEOUT     MSEC_TO_UNITS(4000, UNIT_10_MS)     /**< Joining mode: Connection supervisory timeout (4 seconds). */
57

    
58
#define JOINING_MODE_ADV_ADV_INTERVAL     MSEC_TO_UNITS(333, UNIT_0_625_MS)   /**< Joining mode: The advertising interval. This value can vary between 100ms to 10.24s). */
59
#define JOINING_MODE_ADV_TIMEOUT          0                                   /**< Joining mode: Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */
60

    
61
#endif // COMMISSIONING_ENABLED
62

    
63
#endif // IPV6_MEDIUM_BLE_CONFIG_H__
64

    
65
/** @} */
66
/** @endcond */