19 #ifndef NIMBLE_AUTOADV_PARAMS_H
20 #define NIMBLE_AUTOADV_PARAMS_H
33 #ifndef NIMBLE_AUTOADV_ADV_ITVL_MS
34 #define NIMBLE_AUTOADV_ADV_ITVL_MS (100U)
36 #ifndef NIMBLE_AUTOADV_ADV_DURATION_MS
37 #define NIMBLE_AUTOADV_ADV_DURATION_MS (BLE_HS_FOREVER)
39 #ifndef NIMBLE_AUTOADV_FLAGS
40 #define NIMBLE_AUTOADV_FLAGS (NIMBLE_AUTOADV_FLAG_LEGACY | \
41 NIMBLE_AUTOADV_FLAG_CONNECTABLE | \
42 NIMBLE_AUTOADV_FLAG_SCANNABLE)
44 #ifndef NIMBLE_AUTOADV_PHY
45 #define NIMBLE_AUTOADV_PHY NIMBLE_PHY_1M
47 #ifndef NIMBLE_AUTOADV_TX_POWER
48 #define NIMBLE_AUTOADV_TX_POWER 0
50 #ifndef NIMBLE_AUTOADV_CHANNEL_MAP
51 #define NIMBLE_AUTOADV_CHANNEL_MAP 0
53 #ifndef NIMBLE_AUTOADV_OWN_ADDR_TYPE
54 #define NIMBLE_AUTOADV_OWN_ADDR_TYPE 0xFF
56 #ifndef NIMBLE_AUTOADV_FILTER_POLICY
57 #define NIMBLE_AUTOADV_FILTER_POLICY 0
60 #ifndef NIMBLE_AUTOADV_PARAMS
61 #define NIMBLE_AUTOADV_PARAMS \
62 { .adv_itvl_ms = NIMBLE_AUTOADV_ADV_ITVL_MS, \
63 .adv_duration_ms = NIMBLE_AUTOADV_ADV_DURATION_MS, \
64 .flags = NIMBLE_AUTOADV_FLAGS, \
65 .phy = NIMBLE_AUTOADV_PHY, \
66 .tx_power = NIMBLE_AUTOADV_TX_POWER, \
67 .channel_map = NIMBLE_AUTOADV_CHANNEL_MAP, \
68 .own_addr_type = NIMBLE_AUTOADV_OWN_ADDR_TYPE, \
69 .filter_policy = NIMBLE_AUTOADV_FILTER_POLICY }
77 NIMBLE_AUTOADV_PARAMS;
static const nimble_autoadv_cfg_t nimble_autoadv_cfg
nimble_autoadv configuration
RIOT specific glue functions for integrating NimBLE.
Parameter set used to configure accepting connections (advertising)