2017-06-14 00:26:27 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct ll_adv_set {
|
2017-07-04 04:07:36 +08:00
|
|
|
u8_t chan_map:3;
|
2017-06-14 00:26:27 +08:00
|
|
|
u8_t filter_policy:2;
|
2017-08-14 19:45:13 +08:00
|
|
|
#if defined(CONFIG_BT_CTLR_PRIVACY)
|
2017-06-14 00:26:27 +08:00
|
|
|
u8_t own_addr_type:2;
|
|
|
|
u8_t id_addr_type:1;
|
2017-07-06 22:43:03 +08:00
|
|
|
u8_t rl_idx;
|
2017-06-14 00:26:27 +08:00
|
|
|
u8_t id_addr[BDADDR_SIZE];
|
2017-08-14 19:45:13 +08:00
|
|
|
#endif /* CONFIG_BT_CTLR_PRIVACY */
|
2017-06-14 00:26:27 +08:00
|
|
|
|
2017-08-14 19:45:13 +08:00
|
|
|
#if defined(CONFIG_BT_CTLR_ADV_EXT)
|
2017-06-14 00:26:27 +08:00
|
|
|
u8_t phy_p:3;
|
|
|
|
u32_t interval;
|
2017-08-14 19:45:13 +08:00
|
|
|
#else /* !CONFIG_BT_CTLR_ADV_EXT */
|
2017-06-14 00:26:27 +08:00
|
|
|
u16_t interval;
|
2017-08-14 19:45:13 +08:00
|
|
|
#endif /* !CONFIG_BT_CTLR_ADV_EXT */
|
2017-06-14 00:26:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ll_adv_set *ll_adv_set_get(void);
|