nimble_rpble_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019-2021 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #include "nimble_rpble.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #ifndef NIMBLE_RPBLE_SCAN_ITVL_MS
32 #define NIMBLE_RPBLE_SCAN_ITVL_MS 1200U
33 #endif
34 #ifndef NIMBLE_RPBLE_SCAN_WIN_MS
35 #define NIMBLE_RPBLE_SCAN_WIN_MS 120U
36 #endif
37 
38 #ifndef NIMBLE_RPBLE_ADV_ITVL_MS
39 #define NIMBLE_RPBLE_ADV_ITVL_MS 100U
40 #endif
41 
42 #ifndef NIMBLE_RPBLE_CONN_SCAN_ITVL_MS
43 #define NIMBLE_RPBLE_CONN_SCAN_ITVL_MS 120U
44 #endif
45 #ifndef NIMBLE_RPBLE_CONN_SCAN_WIN_MS
46 #define NIMBLE_RPBLE_CONN_SCAN_WIN_MS 120U
47 #endif
48 #ifndef NIMBLE_RPBLE_CONN_SCAN_TO_MS
49 #define NIMBLE_RPBLE_CONN_SCAN_TO_MS 360U
50 #endif
51 #ifndef NIMBLE_RPBLE_CONN_ITVL_MIN_MS
52 #define NIMBLE_RPBLE_CONN_ITVL_MIN_MS 90U
53 #endif
54 #ifndef NIMBLE_RPBLE_CONN_ITVL_MAX_MS
55 #define NIMBLE_RPBLE_CONN_ITVL_MAX_MS 110U
56 #endif
57 #ifndef NIMBLE_RPBLE_CONN_LATENCY
58 #define NIMBLE_RPBLE_CONN_LATENCY 0
59 #endif
60 #ifndef NIMBLE_RPBLE_CONN_SUPER_TO_MS
61 #define NIMBLE_RPBLE_CONN_SUPER_TO_MS 1650U
62 #endif
63 
64 #ifndef NIMBLE_RPBLE_EVAL_ITVL_MIN_MS
65 #define NIMBLE_RPBLE_EVAL_ITVL_MIN_MS 12000U
66 #endif
67 #ifndef NIMBLE_RPBLE_EVAL_ITVL_MAX_MS
68 #define NIMBLE_RPBLE_EVAL_ITVL_MAX_MS 13000U
69 #endif
70 
74 #ifndef NIMBLE_RPBLE_PHY_MODE
75 #define NIMBLE_RPBLE_PHY_MODE NIMBLE_PHY_1M
76 #endif
77 
78 #ifndef NIMBLE_RPBLE_PARAMS
79 #define NIMBLE_RPBLE_PARAMS \
80  { .scan_itvl_ms = NIMBLE_RPBLE_SCAN_ITVL_MS, \
81  .scan_win_ms = NIMBLE_RPBLE_SCAN_WIN_MS, \
82  .adv_itvl_ms = NIMBLE_RPBLE_ADV_ITVL_MS, \
83  .conn_scan_itvl_ms = NIMBLE_RPBLE_CONN_SCAN_ITVL_MS, \
84  .conn_scan_win_ms = NIMBLE_RPBLE_CONN_SCAN_WIN_MS, \
85  .conn_scan_to_ms = NIMBLE_RPBLE_CONN_SCAN_TO_MS, \
86  .conn_itvl_min_ms = NIMBLE_RPBLE_CONN_ITVL_MIN_MS, \
87  .conn_itvl_max_ms = NIMBLE_RPBLE_CONN_ITVL_MAX_MS, \
88  .conn_latency = NIMBLE_RPBLE_CONN_LATENCY, \
89  .conn_super_to_ms = NIMBLE_RPBLE_CONN_SUPER_TO_MS, \
90  .phy_mode = NIMBLE_RPBLE_PHY_MODE, \
91  .eval_itvl_min_ms = NIMBLE_RPBLE_EVAL_ITVL_MIN_MS, \
92  .eval_itvl_max_ms = NIMBLE_RPBLE_EVAL_ITVL_MAX_MS }
93 #endif
99 static const nimble_rpble_cfg_t nimble_rpble_params = NIMBLE_RPBLE_PARAMS;
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
Interface for the nimble_rpble module.
static const nimble_rpble_cfg_t nimble_rpble_params
nimble_netif_rpble configuration
rpble configuration parameters
Definition: nimble_rpble.h:96