1 /* 2 * Copyright (c) 2018-2021 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 struct pdu_adv *lll_adv_pdu_latest_get(struct lll_adv_pdu *pdu, 8 uint8_t *is_modified); 9 lll_adv_data_latest_get(struct lll_adv * lll,uint8_t * is_modified)10static inline struct pdu_adv *lll_adv_data_latest_get(struct lll_adv *lll, 11 uint8_t *is_modified) 12 { 13 return lll_adv_pdu_latest_get(&lll->adv_data, is_modified); 14 } 15 lll_adv_scan_rsp_latest_get(struct lll_adv * lll,uint8_t * is_modified)16static inline struct pdu_adv *lll_adv_scan_rsp_latest_get(struct lll_adv *lll, 17 uint8_t *is_modified) 18 { 19 return lll_adv_pdu_latest_get(&lll->scan_rsp, is_modified); 20 } 21 lll_adv_data_curr_get(struct lll_adv * lll)22static inline struct pdu_adv *lll_adv_data_curr_get(struct lll_adv *lll) 23 { 24 return (void *)lll->adv_data.pdu[lll->adv_data.first]; 25 } 26 lll_adv_scan_rsp_curr_get(struct lll_adv * lll)27static inline struct pdu_adv *lll_adv_scan_rsp_curr_get(struct lll_adv *lll) 28 { 29 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.first]; 30 } 31