Loading...
Searching...
No Matches
nimble_autoadv_params.h File Reference

Default configuration for the nimble_autoadv module. More...

Detailed Description

Default configuration for the nimble_autoadv module.

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file nimble_autoadv_params.h.

#include "nimble_autoadv.h"
#include "nimble_riot.h"
+ Include dependency graph for nimble_autoadv_params.h:

Go to the source code of this file.

Variables

static const nimble_autoadv_cfg_t nimble_autoadv_cfg
 nimble_autoadv configuration
 

Default parameters used for the nimble_autoadv module

#define NIMBLE_AUTOADV_ADV_ITVL_MS   (100U) /* 100ms */
 
#define NIMBLE_AUTOADV_ADV_DURATION_MS   (BLE_HS_FOREVER) /* forever */
 
#define NIMBLE_AUTOADV_FLAGS
 
#define NIMBLE_AUTOADV_PHY   NIMBLE_PHY_1M
 
#define NIMBLE_AUTOADV_TX_POWER   0 /* 0dBm */
 
#define NIMBLE_AUTOADV_CHANNEL_MAP   0
 
#define NIMBLE_AUTOADV_OWN_ADDR_TYPE   0xFF /* sets to nimble_riot_own_addr */
 
#define NIMBLE_AUTOADV_FILTER_POLICY   0
 
#define NIMBLE_AUTOADV_PARAMS
 

Macro Definition Documentation

◆ NIMBLE_AUTOADV_ADV_DURATION_MS

#define NIMBLE_AUTOADV_ADV_DURATION_MS   (BLE_HS_FOREVER) /* forever */

Definition at line 37 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_ADV_ITVL_MS

#define NIMBLE_AUTOADV_ADV_ITVL_MS   (100U) /* 100ms */

Definition at line 34 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_CHANNEL_MAP

#define NIMBLE_AUTOADV_CHANNEL_MAP   0

Definition at line 51 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_FILTER_POLICY

#define NIMBLE_AUTOADV_FILTER_POLICY   0

Definition at line 57 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_FLAGS

#define NIMBLE_AUTOADV_FLAGS
Value:
#define NIMBLE_AUTOADV_FLAG_CONNECTABLE
if connectable advertisement
#define NIMBLE_AUTOADV_FLAG_SCANNABLE
if scannable advertisement
#define NIMBLE_AUTOADV_FLAG_LEGACY
use legacy advertising mode

Definition at line 40 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_OWN_ADDR_TYPE

#define NIMBLE_AUTOADV_OWN_ADDR_TYPE   0xFF /* sets to nimble_riot_own_addr */

Definition at line 54 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_PARAMS

#define NIMBLE_AUTOADV_PARAMS
Value:
{ .adv_itvl_ms = NIMBLE_AUTOADV_ADV_ITVL_MS, \
.adv_duration_ms = NIMBLE_AUTOADV_ADV_DURATION_MS, \
.flags = NIMBLE_AUTOADV_FLAGS, \
.phy = NIMBLE_AUTOADV_PHY, \
.tx_power = NIMBLE_AUTOADV_TX_POWER, \
.channel_map = NIMBLE_AUTOADV_CHANNEL_MAP, \
.own_addr_type = NIMBLE_AUTOADV_OWN_ADDR_TYPE, \
.filter_policy = NIMBLE_AUTOADV_FILTER_POLICY }

Definition at line 61 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_PHY

#define NIMBLE_AUTOADV_PHY   NIMBLE_PHY_1M

Definition at line 45 of file nimble_autoadv_params.h.

◆ NIMBLE_AUTOADV_TX_POWER

#define NIMBLE_AUTOADV_TX_POWER   0 /* 0dBm */

Definition at line 48 of file nimble_autoadv_params.h.

Variable Documentation

◆ nimble_autoadv_cfg

const nimble_autoadv_cfg_t nimble_autoadv_cfg
static
Initial value:
=
NIMBLE_AUTOADV_PARAMS

nimble_autoadv configuration

Definition at line 76 of file nimble_autoadv_params.h.