Loading...
Searching...
No Matches
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
19#ifndef NIMBLE_RPBLE_PARAMS_H
20#define NIMBLE_RPBLE_PARAMS_H
21
22#include "nimble_rpble.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef NIMBLE_RPBLE_SCAN_ITVL_MS
33#define NIMBLE_RPBLE_SCAN_ITVL_MS 1200U
34#endif
35#ifndef NIMBLE_RPBLE_SCAN_WIN_MS
36#define NIMBLE_RPBLE_SCAN_WIN_MS 120U
37#endif
38
39#ifndef NIMBLE_RPBLE_ADV_ITVL_MS
40#define NIMBLE_RPBLE_ADV_ITVL_MS 100U
41#endif
42
43#ifndef NIMBLE_RPBLE_CONN_SCAN_ITVL_MS
44#define NIMBLE_RPBLE_CONN_SCAN_ITVL_MS 120U
45#endif
46#ifndef NIMBLE_RPBLE_CONN_SCAN_WIN_MS
47#define NIMBLE_RPBLE_CONN_SCAN_WIN_MS 120U
48#endif
49#ifndef NIMBLE_RPBLE_CONN_SCAN_TO_MS
50#define NIMBLE_RPBLE_CONN_SCAN_TO_MS 360U
51#endif
52#ifndef NIMBLE_RPBLE_CONN_ITVL_MIN_MS
53#define NIMBLE_RPBLE_CONN_ITVL_MIN_MS 90U
54#endif
55#ifndef NIMBLE_RPBLE_CONN_ITVL_MAX_MS
56#define NIMBLE_RPBLE_CONN_ITVL_MAX_MS 110U
57#endif
58#ifndef NIMBLE_RPBLE_CONN_LATENCY
59#define NIMBLE_RPBLE_CONN_LATENCY 0
60#endif
61#ifndef NIMBLE_RPBLE_CONN_SUPER_TO_MS
62#define NIMBLE_RPBLE_CONN_SUPER_TO_MS 1650U
63#endif
64
65#ifndef NIMBLE_RPBLE_EVAL_ITVL_MIN_MS
66#define NIMBLE_RPBLE_EVAL_ITVL_MIN_MS 12000U
67#endif
68#ifndef NIMBLE_RPBLE_EVAL_ITVL_MAX_MS
69#define NIMBLE_RPBLE_EVAL_ITVL_MAX_MS 13000U
70#endif
71
75#ifndef NIMBLE_RPBLE_PHY_MODE
76#define NIMBLE_RPBLE_PHY_MODE NIMBLE_PHY_1M
77#endif
78
79#ifndef NIMBLE_RPBLE_PARAMS
80#define NIMBLE_RPBLE_PARAMS \
81 { .scan_itvl_ms = NIMBLE_RPBLE_SCAN_ITVL_MS, \
82 .scan_win_ms = NIMBLE_RPBLE_SCAN_WIN_MS, \
83 .adv_itvl_ms = NIMBLE_RPBLE_ADV_ITVL_MS, \
84 .conn_scan_itvl_ms = NIMBLE_RPBLE_CONN_SCAN_ITVL_MS, \
85 .conn_scan_win_ms = NIMBLE_RPBLE_CONN_SCAN_WIN_MS, \
86 .conn_scan_to_ms = NIMBLE_RPBLE_CONN_SCAN_TO_MS, \
87 .conn_itvl_min_ms = NIMBLE_RPBLE_CONN_ITVL_MIN_MS, \
88 .conn_itvl_max_ms = NIMBLE_RPBLE_CONN_ITVL_MAX_MS, \
89 .conn_latency = NIMBLE_RPBLE_CONN_LATENCY, \
90 .conn_super_to_ms = NIMBLE_RPBLE_CONN_SUPER_TO_MS, \
91 .phy_mode = NIMBLE_RPBLE_PHY_MODE, \
92 .eval_itvl_min_ms = NIMBLE_RPBLE_EVAL_ITVL_MIN_MS, \
93 .eval_itvl_max_ms = NIMBLE_RPBLE_EVAL_ITVL_MAX_MS }
94#endif
100static const nimble_rpble_cfg_t nimble_rpble_params = NIMBLE_RPBLE_PARAMS;
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* NIMBLE_RPBLE_PARAMS_H */
Interface for the nimble_rpble module.
static const nimble_rpble_cfg_t nimble_rpble_params
nimble_netif_rpble configuration
rpble configuration parameters