Skip to content

Commit a25994b

Browse files
committed
Bluetooth: controller: LLL: Add peek extra_data related with lll_adv_sync
Configuration of CTE for transmission is stored in extra_date member of a lll_adv_sync object. PDUs in periodic advertising chain share the same CTE configuration, so there is single instance of the extra_data. To configure CTE transmission for every PDU in periodic advertising chain a new function was introduced to peek extra_data instance without peeking new PDU. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 58dee79 commit a25994b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_pdu.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ static inline struct pdu_adv *lll_adv_sync_data_peek(struct lll_adv_sync *lll,
138138

139139
return (void *)lll->data.pdu[last];
140140
}
141+
142+
#if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY)
143+
static inline void *lll_adv_sync_extra_data_peek(struct lll_adv_sync *lll)
144+
{
145+
return lll->data.extra_data[lll->data.last];
146+
}
147+
#endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */
141148
#endif /* CONFIG_BT_CTLR_ADV_PERIODIC */
142149
#endif /* CONFIG_BT_CTLR_ADV_EXT */
143150

0 commit comments

Comments
 (0)