Lines Matching refs:pdu

49 void helper_pdu_encode_ping_req(struct pdu_data *pdu, void *param)  in helper_pdu_encode_ping_req()  argument
51 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_req()
52 pdu->len = offsetof(struct pdu_data_llctrl, ping_req) + in helper_pdu_encode_ping_req()
54 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in helper_pdu_encode_ping_req()
57 void helper_pdu_encode_ping_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_ping_rsp() argument
59 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_rsp()
60 pdu->len = offsetof(struct pdu_data_llctrl, ping_rsp) + in helper_pdu_encode_ping_rsp()
62 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in helper_pdu_encode_ping_rsp()
65 void helper_pdu_encode_feature_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_feature_req() argument
69 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_feature_req()
70 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_feature_req()
72 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_REQ; in helper_pdu_encode_feature_req()
76 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_feature_req()
79 void helper_pdu_encode_peripheral_feature_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_peripheral_feature_req() argument
83 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_peripheral_feature_req()
84 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_peripheral_feature_req()
86 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PER_INIT_FEAT_XCHG; in helper_pdu_encode_peripheral_feature_req()
91 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_peripheral_feature_req()
95 void helper_pdu_encode_feature_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_feature_rsp() argument
99 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_feature_rsp()
100 pdu->len = offsetof(struct pdu_data_llctrl, feature_rsp) + in helper_pdu_encode_feature_rsp()
102 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_RSP; in helper_pdu_encode_feature_rsp()
106 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_feature_rsp()
110 void helper_pdu_encode_min_used_chans_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_min_used_chans_ind() argument
114 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_min_used_chans_ind()
115 pdu->len = offsetof(struct pdu_data_llctrl, min_used_chans_ind) + in helper_pdu_encode_min_used_chans_ind()
117 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND; in helper_pdu_encode_min_used_chans_ind()
118 pdu->llctrl.min_used_chans_ind.phys = p->phys; in helper_pdu_encode_min_used_chans_ind()
119 pdu->llctrl.min_used_chans_ind.min_used_chans = p->min_used_chans; in helper_pdu_encode_min_used_chans_ind()
122 void helper_pdu_encode_version_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_version_ind() argument
126 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_version_ind()
127 pdu->len = offsetof(struct pdu_data_llctrl, version_ind) + in helper_pdu_encode_version_ind()
129 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_VERSION_IND; in helper_pdu_encode_version_ind()
130 pdu->llctrl.version_ind.version_number = p->version_number; in helper_pdu_encode_version_ind()
131 pdu->llctrl.version_ind.company_id = p->company_id; in helper_pdu_encode_version_ind()
132 pdu->llctrl.version_ind.sub_version_number = p->sub_version_number; in helper_pdu_encode_version_ind()
135 void helper_pdu_encode_enc_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_enc_req() argument
139 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_enc_req()
140 pdu->len = in helper_pdu_encode_enc_req()
142 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_REQ; in helper_pdu_encode_enc_req()
143 memcpy(pdu->llctrl.enc_req.rand, p->rand, sizeof(pdu->llctrl.enc_req.rand)); in helper_pdu_encode_enc_req()
144 memcpy(pdu->llctrl.enc_req.ediv, p->ediv, sizeof(pdu->llctrl.enc_req.ediv)); in helper_pdu_encode_enc_req()
145 memcpy(pdu->llctrl.enc_req.skdm, p->skdm, sizeof(pdu->llctrl.enc_req.skdm)); in helper_pdu_encode_enc_req()
146 memcpy(pdu->llctrl.enc_req.ivm, p->ivm, sizeof(pdu->llctrl.enc_req.ivm)); in helper_pdu_encode_enc_req()
149 void helper_pdu_encode_enc_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_enc_rsp() argument
153 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_enc_rsp()
154 pdu->len = in helper_pdu_encode_enc_rsp()
156 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_RSP; in helper_pdu_encode_enc_rsp()
157 memcpy(pdu->llctrl.enc_rsp.skds, p->skds, sizeof(pdu->llctrl.enc_rsp.skds)); in helper_pdu_encode_enc_rsp()
158 memcpy(pdu->llctrl.enc_rsp.ivs, p->ivs, sizeof(pdu->llctrl.enc_rsp.ivs)); in helper_pdu_encode_enc_rsp()
161 void helper_pdu_encode_start_enc_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_start_enc_req() argument
163 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_start_enc_req()
164 pdu->len = offsetof(struct pdu_data_llctrl, start_enc_req) + in helper_pdu_encode_start_enc_req()
166 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_START_ENC_REQ; in helper_pdu_encode_start_enc_req()
169 void helper_pdu_encode_start_enc_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_start_enc_rsp() argument
171 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_start_enc_rsp()
172 pdu->len = offsetof(struct pdu_data_llctrl, start_enc_rsp) + in helper_pdu_encode_start_enc_rsp()
174 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_START_ENC_RSP; in helper_pdu_encode_start_enc_rsp()
177 void helper_pdu_encode_pause_enc_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_pause_enc_req() argument
179 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_pause_enc_req()
180 pdu->len = offsetof(struct pdu_data_llctrl, pause_enc_req) + in helper_pdu_encode_pause_enc_req()
182 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_REQ; in helper_pdu_encode_pause_enc_req()
185 void helper_pdu_encode_pause_enc_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_pause_enc_rsp() argument
187 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_pause_enc_rsp()
188 pdu->len = offsetof(struct pdu_data_llctrl, pause_enc_rsp) + in helper_pdu_encode_pause_enc_rsp()
190 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_RSP; in helper_pdu_encode_pause_enc_rsp()
193 void helper_pdu_encode_reject_ext_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_reject_ext_ind() argument
197 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_reject_ext_ind()
198 pdu->len = offsetof(struct pdu_data_llctrl, reject_ext_ind) + in helper_pdu_encode_reject_ext_ind()
200 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_REJECT_EXT_IND; in helper_pdu_encode_reject_ext_ind()
201 pdu->llctrl.reject_ext_ind.reject_opcode = p->reject_opcode; in helper_pdu_encode_reject_ext_ind()
202 pdu->llctrl.reject_ext_ind.error_code = p->error_code; in helper_pdu_encode_reject_ext_ind()
205 void helper_pdu_encode_reject_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_reject_ind() argument
209 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_reject_ind()
210 pdu->len = offsetof(struct pdu_data_llctrl, reject_ind) + in helper_pdu_encode_reject_ind()
212 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_REJECT_IND; in helper_pdu_encode_reject_ind()
213 pdu->llctrl.reject_ind.error_code = p->error_code; in helper_pdu_encode_reject_ind()
216 void helper_pdu_encode_phy_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_phy_req() argument
220 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_phy_req()
221 pdu->len = in helper_pdu_encode_phy_req()
223 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_REQ; in helper_pdu_encode_phy_req()
224 pdu->llctrl.phy_req.rx_phys = p->rx_phys; in helper_pdu_encode_phy_req()
225 pdu->llctrl.phy_req.tx_phys = p->tx_phys; in helper_pdu_encode_phy_req()
228 void helper_pdu_encode_phy_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_phy_rsp() argument
232 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_phy_rsp()
233 pdu->len = in helper_pdu_encode_phy_rsp()
235 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_RSP; in helper_pdu_encode_phy_rsp()
236 pdu->llctrl.phy_rsp.rx_phys = p->rx_phys; in helper_pdu_encode_phy_rsp()
237 pdu->llctrl.phy_rsp.tx_phys = p->tx_phys; in helper_pdu_encode_phy_rsp()
240 void helper_pdu_encode_phy_update_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_phy_update_ind() argument
244 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_phy_update_ind()
245 pdu->len = offsetof(struct pdu_data_llctrl, phy_upd_ind) + in helper_pdu_encode_phy_update_ind()
247 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_UPD_IND; in helper_pdu_encode_phy_update_ind()
248 pdu->llctrl.phy_upd_ind.instant = p->instant; in helper_pdu_encode_phy_update_ind()
249 pdu->llctrl.phy_upd_ind.c_to_p_phy = p->c_to_p_phy; in helper_pdu_encode_phy_update_ind()
250 pdu->llctrl.phy_upd_ind.p_to_c_phy = p->p_to_c_phy; in helper_pdu_encode_phy_update_ind()
253 void helper_pdu_encode_unknown_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_unknown_rsp() argument
257 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_unknown_rsp()
258 pdu->len = offsetof(struct pdu_data_llctrl, unknown_rsp) + in helper_pdu_encode_unknown_rsp()
260 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP; in helper_pdu_encode_unknown_rsp()
261 pdu->llctrl.unknown_rsp.type = p->type; in helper_pdu_encode_unknown_rsp()
264 void helper_pdu_encode_conn_param_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_conn_param_req() argument
268 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_conn_param_req()
269 pdu->len = offsetof(struct pdu_data_llctrl, conn_param_req) + in helper_pdu_encode_conn_param_req()
271 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CONN_PARAM_REQ; in helper_pdu_encode_conn_param_req()
273 pdu->llctrl.conn_param_req.interval_min = sys_cpu_to_le16(p->interval_min); in helper_pdu_encode_conn_param_req()
274 pdu->llctrl.conn_param_req.interval_max = sys_cpu_to_le16(p->interval_max); in helper_pdu_encode_conn_param_req()
275 pdu->llctrl.conn_param_req.latency = sys_cpu_to_le16(p->latency); in helper_pdu_encode_conn_param_req()
276 pdu->llctrl.conn_param_req.timeout = sys_cpu_to_le16(p->timeout); in helper_pdu_encode_conn_param_req()
277 pdu->llctrl.conn_param_req.preferred_periodicity = p->preferred_periodicity; in helper_pdu_encode_conn_param_req()
278 pdu->llctrl.conn_param_req.reference_conn_event_count = in helper_pdu_encode_conn_param_req()
280 pdu->llctrl.conn_param_req.offset0 = sys_cpu_to_le16(p->offset0); in helper_pdu_encode_conn_param_req()
281 pdu->llctrl.conn_param_req.offset1 = sys_cpu_to_le16(p->offset1); in helper_pdu_encode_conn_param_req()
282 pdu->llctrl.conn_param_req.offset2 = sys_cpu_to_le16(p->offset2); in helper_pdu_encode_conn_param_req()
283 pdu->llctrl.conn_param_req.offset3 = sys_cpu_to_le16(p->offset3); in helper_pdu_encode_conn_param_req()
284 pdu->llctrl.conn_param_req.offset4 = sys_cpu_to_le16(p->offset4); in helper_pdu_encode_conn_param_req()
285 pdu->llctrl.conn_param_req.offset5 = sys_cpu_to_le16(p->offset5); in helper_pdu_encode_conn_param_req()
288 void helper_pdu_encode_conn_param_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_conn_param_rsp() argument
292 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_conn_param_rsp()
293 pdu->len = offsetof(struct pdu_data_llctrl, conn_param_rsp) + in helper_pdu_encode_conn_param_rsp()
295 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CONN_PARAM_RSP; in helper_pdu_encode_conn_param_rsp()
297 pdu->llctrl.conn_param_rsp.interval_min = sys_cpu_to_le16(p->interval_min); in helper_pdu_encode_conn_param_rsp()
298 pdu->llctrl.conn_param_rsp.interval_max = sys_cpu_to_le16(p->interval_max); in helper_pdu_encode_conn_param_rsp()
299 pdu->llctrl.conn_param_rsp.latency = sys_cpu_to_le16(p->latency); in helper_pdu_encode_conn_param_rsp()
300 pdu->llctrl.conn_param_rsp.timeout = sys_cpu_to_le16(p->timeout); in helper_pdu_encode_conn_param_rsp()
301 pdu->llctrl.conn_param_rsp.preferred_periodicity = p->preferred_periodicity; in helper_pdu_encode_conn_param_rsp()
302 pdu->llctrl.conn_param_rsp.reference_conn_event_count = in helper_pdu_encode_conn_param_rsp()
304 pdu->llctrl.conn_param_rsp.offset0 = sys_cpu_to_le16(p->offset0); in helper_pdu_encode_conn_param_rsp()
305 pdu->llctrl.conn_param_rsp.offset1 = sys_cpu_to_le16(p->offset1); in helper_pdu_encode_conn_param_rsp()
306 pdu->llctrl.conn_param_rsp.offset2 = sys_cpu_to_le16(p->offset2); in helper_pdu_encode_conn_param_rsp()
307 pdu->llctrl.conn_param_rsp.offset3 = sys_cpu_to_le16(p->offset3); in helper_pdu_encode_conn_param_rsp()
308 pdu->llctrl.conn_param_rsp.offset4 = sys_cpu_to_le16(p->offset4); in helper_pdu_encode_conn_param_rsp()
309 pdu->llctrl.conn_param_rsp.offset5 = sys_cpu_to_le16(p->offset5); in helper_pdu_encode_conn_param_rsp()
312 void helper_pdu_encode_conn_update_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_conn_update_ind() argument
316 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_conn_update_ind()
317 pdu->len = offsetof(struct pdu_data_llctrl, conn_update_ind) + in helper_pdu_encode_conn_update_ind()
319 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND; in helper_pdu_encode_conn_update_ind()
321 pdu->llctrl.conn_update_ind.win_size = p->win_size; in helper_pdu_encode_conn_update_ind()
322 pdu->llctrl.conn_update_ind.win_offset = sys_cpu_to_le16(p->win_offset); in helper_pdu_encode_conn_update_ind()
323 pdu->llctrl.conn_update_ind.interval = sys_cpu_to_le16(p->interval); in helper_pdu_encode_conn_update_ind()
324 pdu->llctrl.conn_update_ind.latency = sys_cpu_to_le16(p->latency); in helper_pdu_encode_conn_update_ind()
325 pdu->llctrl.conn_update_ind.timeout = sys_cpu_to_le16(p->timeout); in helper_pdu_encode_conn_update_ind()
326 pdu->llctrl.conn_update_ind.instant = sys_cpu_to_le16(p->instant); in helper_pdu_encode_conn_update_ind()
329 void helper_pdu_encode_terminate_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_terminate_ind() argument
333 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_terminate_ind()
334 pdu->len = offsetof(struct pdu_data_llctrl, terminate_ind) + in helper_pdu_encode_terminate_ind()
336 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_TERMINATE_IND; in helper_pdu_encode_terminate_ind()
337 pdu->llctrl.terminate_ind.error_code = p->error_code; in helper_pdu_encode_terminate_ind()
340 void helper_pdu_encode_channel_map_update_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_channel_map_update_ind() argument
344 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_channel_map_update_ind()
345 pdu->len = offsetof(struct pdu_data_llctrl, chan_map_ind) + in helper_pdu_encode_channel_map_update_ind()
347 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CHAN_MAP_IND; in helper_pdu_encode_channel_map_update_ind()
348 pdu->llctrl.chan_map_ind.instant = p->instant; in helper_pdu_encode_channel_map_update_ind()
349 memcpy(pdu->llctrl.chan_map_ind.chm, p->chm, sizeof(pdu->llctrl.chan_map_ind.chm)); in helper_pdu_encode_channel_map_update_ind()
352 void helper_pdu_encode_length_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_length_req() argument
356 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_length_req()
357 pdu->len = offsetof(struct pdu_data_llctrl, length_req) + in helper_pdu_encode_length_req()
359 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_LENGTH_REQ; in helper_pdu_encode_length_req()
361 pdu->llctrl.length_req.max_rx_octets = p->max_rx_octets; in helper_pdu_encode_length_req()
362 pdu->llctrl.length_req.max_tx_octets = p->max_tx_octets; in helper_pdu_encode_length_req()
363 pdu->llctrl.length_req.max_rx_time = p->max_rx_time; in helper_pdu_encode_length_req()
364 pdu->llctrl.length_req.max_tx_time = p->max_tx_time; in helper_pdu_encode_length_req()
367 void helper_pdu_encode_length_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_length_rsp() argument
371 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_length_rsp()
372 pdu->len = offsetof(struct pdu_data_llctrl, length_rsp) + in helper_pdu_encode_length_rsp()
374 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_LENGTH_RSP; in helper_pdu_encode_length_rsp()
376 pdu->llctrl.length_req.max_rx_octets = p->max_rx_octets; in helper_pdu_encode_length_rsp()
377 pdu->llctrl.length_req.max_tx_octets = p->max_tx_octets; in helper_pdu_encode_length_rsp()
378 pdu->llctrl.length_req.max_rx_time = p->max_rx_time; in helper_pdu_encode_length_rsp()
379 pdu->llctrl.length_req.max_tx_time = p->max_tx_time; in helper_pdu_encode_length_rsp()
381 void helper_pdu_encode_cte_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_cte_req() argument
385 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cte_req()
386 pdu->len = in helper_pdu_encode_cte_req()
388 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_REQ; in helper_pdu_encode_cte_req()
389 pdu->llctrl.cte_req.min_cte_len_req = p->min_cte_len_req; in helper_pdu_encode_cte_req()
390 pdu->llctrl.cte_req.cte_type_req = p->cte_type_req; in helper_pdu_encode_cte_req()
393 void helper_pdu_encode_cte_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_cte_rsp() argument
395 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cte_rsp()
396 pdu->len = in helper_pdu_encode_cte_rsp()
398 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_RSP; in helper_pdu_encode_cte_rsp()
401 void helper_pdu_encode_zero(struct pdu_data *pdu, void *param) in helper_pdu_encode_zero() argument
403 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_zero()
404 pdu->len = 0; in helper_pdu_encode_zero()
412 void helper_pdu_encode_cis_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_cis_req() argument
416 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cis_req()
417 pdu->len = offsetof(struct pdu_data_llctrl, cis_req) + in helper_pdu_encode_cis_req()
419 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_REQ; in helper_pdu_encode_cis_req()
421 pdu->llctrl.cis_req.cig_id = p->cig_id; in helper_pdu_encode_cis_req()
422 pdu->llctrl.cis_req.cis_id = p->cis_id; in helper_pdu_encode_cis_req()
423 pdu->llctrl.cis_req.c_phy = p->c_phy; in helper_pdu_encode_cis_req()
424 pdu->llctrl.cis_req.p_phy = p->p_phy; in helper_pdu_encode_cis_req()
425 pdu->llctrl.cis_req.c_max_pdu = p->c_max_pdu; in helper_pdu_encode_cis_req()
426 pdu->llctrl.cis_req.p_max_pdu = p->p_max_pdu; in helper_pdu_encode_cis_req()
427 pdu->llctrl.cis_req.nse = p->nse; in helper_pdu_encode_cis_req()
428 pdu->llctrl.cis_req.p_bn = p->p_bn; in helper_pdu_encode_cis_req()
429 pdu->llctrl.cis_req.c_bn = p->c_bn; in helper_pdu_encode_cis_req()
430 pdu->llctrl.cis_req.c_ft = p->c_ft; in helper_pdu_encode_cis_req()
431 pdu->llctrl.cis_req.p_ft = p->p_ft; in helper_pdu_encode_cis_req()
432 pdu->llctrl.cis_req.iso_interval = p->iso_interval; in helper_pdu_encode_cis_req()
433 pdu->llctrl.cis_req.conn_event_count = p->conn_event_count; in helper_pdu_encode_cis_req()
434 memcpy(pdu->llctrl.cis_req.c_max_sdu_packed, p->c_max_sdu_packed, in helper_pdu_encode_cis_req()
436 memcpy(pdu->llctrl.cis_req.p_max_sdu, p->p_max_sdu, sizeof(p->p_max_sdu)); in helper_pdu_encode_cis_req()
437 memcpy(pdu->llctrl.cis_req.c_sdu_interval, p->c_sdu_interval, sizeof(p->c_sdu_interval)); in helper_pdu_encode_cis_req()
438 memcpy(pdu->llctrl.cis_req.p_sdu_interval, p->p_sdu_interval, sizeof(p->p_sdu_interval)); in helper_pdu_encode_cis_req()
439 memcpy(pdu->llctrl.cis_req.sub_interval, p->sub_interval, sizeof(p->sub_interval)); in helper_pdu_encode_cis_req()
440 memcpy(pdu->llctrl.cis_req.cis_offset_min, p->cis_offset_min, sizeof(p->cis_offset_min)); in helper_pdu_encode_cis_req()
441 memcpy(pdu->llctrl.cis_req.cis_offset_max, p->cis_offset_max, sizeof(p->cis_offset_max)); in helper_pdu_encode_cis_req()
444 void helper_pdu_encode_cis_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_cis_rsp() argument
448 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cis_rsp()
449 pdu->len = offsetof(struct pdu_data_llctrl, cis_rsp) + in helper_pdu_encode_cis_rsp()
451 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_RSP; in helper_pdu_encode_cis_rsp()
452 memcpy(pdu->llctrl.cis_rsp.cis_offset_min, p->cis_offset_min, sizeof(p->cis_offset_min)); in helper_pdu_encode_cis_rsp()
453 memcpy(pdu->llctrl.cis_rsp.cis_offset_max, p->cis_offset_max, sizeof(p->cis_offset_max)); in helper_pdu_encode_cis_rsp()
454 pdu->llctrl.cis_rsp.conn_event_count = p->conn_event_count; in helper_pdu_encode_cis_rsp()
457 void helper_pdu_encode_cis_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_cis_ind() argument
461 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cis_ind()
462 pdu->len = offsetof(struct pdu_data_llctrl, cis_ind) + in helper_pdu_encode_cis_ind()
464 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_IND; in helper_pdu_encode_cis_ind()
465 memcpy(pdu->llctrl.cis_ind.aa, p->aa, sizeof(p->aa)); in helper_pdu_encode_cis_ind()
466 memcpy(pdu->llctrl.cis_ind.cis_offset, p->cis_offset, sizeof(p->cis_offset)); in helper_pdu_encode_cis_ind()
467 memcpy(pdu->llctrl.cis_ind.cig_sync_delay, p->cig_sync_delay, sizeof(p->cig_sync_delay)); in helper_pdu_encode_cis_ind()
468 memcpy(pdu->llctrl.cis_ind.cis_sync_delay, p->cis_sync_delay, sizeof(p->cis_sync_delay)); in helper_pdu_encode_cis_ind()
469 pdu->llctrl.cis_ind.conn_event_count = p->conn_event_count; in helper_pdu_encode_cis_ind()
472 void helper_pdu_encode_cis_terminate_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_cis_terminate_ind() argument
476 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_cis_terminate_ind()
477 pdu->len = offsetof(struct pdu_data_llctrl, cis_terminate_ind) + in helper_pdu_encode_cis_terminate_ind()
479 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_TERMINATE_IND; in helper_pdu_encode_cis_terminate_ind()
480 pdu->llctrl.cis_terminate_ind.cig_id = p->cig_id; in helper_pdu_encode_cis_terminate_ind()
481 pdu->llctrl.cis_terminate_ind.cis_id = p->cis_id; in helper_pdu_encode_cis_terminate_ind()
482 pdu->llctrl.cis_terminate_ind.error_code = p->error_code; in helper_pdu_encode_cis_terminate_ind()
485 void helper_pdu_encode_sca_req(struct pdu_data *pdu, void *param) in helper_pdu_encode_sca_req() argument
489 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_sca_req()
490 pdu->len = offsetof(struct pdu_data_llctrl, clock_accuracy_req) + in helper_pdu_encode_sca_req()
492 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_REQ; in helper_pdu_encode_sca_req()
493 pdu->llctrl.clock_accuracy_req.sca = p->sca; in helper_pdu_encode_sca_req()
496 void helper_pdu_encode_sca_rsp(struct pdu_data *pdu, void *param) in helper_pdu_encode_sca_rsp() argument
500 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_sca_rsp()
501 pdu->len = offsetof(struct pdu_data_llctrl, clock_accuracy_rsp) + in helper_pdu_encode_sca_rsp()
503 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_RSP; in helper_pdu_encode_sca_rsp()
504 pdu->llctrl.clock_accuracy_rsp.sca = p->sca; in helper_pdu_encode_sca_rsp()
507 void helper_pdu_encode_periodic_sync_ind(struct pdu_data *pdu, void *param) in helper_pdu_encode_periodic_sync_ind() argument
511 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_periodic_sync_ind()
512 pdu->len = offsetof(struct pdu_data_llctrl, periodic_sync_ind) + in helper_pdu_encode_periodic_sync_ind()
514 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PERIODIC_SYNC_IND; in helper_pdu_encode_periodic_sync_ind()
516 pdu->llctrl.periodic_sync_ind.id = sys_cpu_to_le16(p->id); in helper_pdu_encode_periodic_sync_ind()
518 memcpy(&pdu->llctrl.periodic_sync_ind.sync_info, &p->sync_info, in helper_pdu_encode_periodic_sync_ind()
521 pdu->llctrl.periodic_sync_ind.conn_event_count = sys_cpu_to_le16(p->conn_event_count); in helper_pdu_encode_periodic_sync_ind()
522 pdu->llctrl.periodic_sync_ind.last_pa_event_counter = in helper_pdu_encode_periodic_sync_ind()
524 pdu->llctrl.periodic_sync_ind.sid = p->sid; in helper_pdu_encode_periodic_sync_ind()
525 pdu->llctrl.periodic_sync_ind.addr_type = p->addr_type; in helper_pdu_encode_periodic_sync_ind()
526 pdu->llctrl.periodic_sync_ind.sca = p->sca; in helper_pdu_encode_periodic_sync_ind()
527 pdu->llctrl.periodic_sync_ind.phy = p->phy; in helper_pdu_encode_periodic_sync_ind()
529 memcpy(pdu->llctrl.periodic_sync_ind.adv_addr, p->adv_addr, sizeof(p->adv_addr)); in helper_pdu_encode_periodic_sync_ind()
531 pdu->llctrl.periodic_sync_ind.sync_conn_event_count = p->sync_conn_event_count; in helper_pdu_encode_periodic_sync_ind()
534 void helper_pdu_verify_version_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_version_ind() argument
539 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_version_ind()
541 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_VERSION_IND, in helper_pdu_verify_version_ind()
543 zassert_equal(pdu->llctrl.version_ind.version_number, p->version_number, in helper_pdu_verify_version_ind()
545 zassert_equal(pdu->llctrl.version_ind.company_id, p->company_id, in helper_pdu_verify_version_ind()
547 zassert_equal(pdu->llctrl.version_ind.sub_version_number, p->sub_version_number, in helper_pdu_verify_version_ind()
551 void helper_pdu_verify_ping_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_ping_req() argument
553 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_ping_req()
555 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PING_REQ, in helper_pdu_verify_ping_req()
559 void helper_pdu_verify_ping_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_ping_rsp() argument
561 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_ping_rsp()
563 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PING_RSP, in helper_pdu_verify_ping_rsp()
567 void helper_pdu_verify_feature_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_feature_req() argument
572 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL); in helper_pdu_verify_feature_req()
573 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_FEATURE_REQ, in helper_pdu_verify_feature_req()
579 zassert_equal(pdu->llctrl.feature_req.features[counter], expected_value, in helper_pdu_verify_feature_req()
584 void helper_pdu_verify_peripheral_feature_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_peripheral_feature_req() argument
589 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL); in helper_pdu_verify_peripheral_feature_req()
590 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PER_INIT_FEAT_XCHG); in helper_pdu_verify_peripheral_feature_req()
595 zassert_equal(pdu->llctrl.feature_req.features[counter], expected_value, in helper_pdu_verify_peripheral_feature_req()
600 void helper_pdu_verify_feature_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_feature_rsp() argument
605 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL); in helper_pdu_verify_feature_rsp()
606 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_FEATURE_RSP, in helper_pdu_verify_feature_rsp()
607 "Response: %d Expected: %d\n", pdu->llctrl.opcode, in helper_pdu_verify_feature_rsp()
613 zassert_equal(pdu->llctrl.feature_rsp.features[counter], expected_value, in helper_pdu_verify_feature_rsp()
618 void helper_pdu_verify_min_used_chans_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_min_used_chans_ind() argument
623 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_min_used_chans_ind()
625 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND, in helper_pdu_verify_min_used_chans_ind()
627 zassert_equal(pdu->llctrl.min_used_chans_ind.phys, p->phys, "Wrong PHY.\nCalled at %s:%d\n", in helper_pdu_verify_min_used_chans_ind()
629 zassert_equal(pdu->llctrl.min_used_chans_ind.min_used_chans, p->min_used_chans, in helper_pdu_verify_min_used_chans_ind()
633 void helper_pdu_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_enc_req() argument
637 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_enc_req()
639 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_ENC_REQ, in helper_pdu_verify_enc_req()
642 PDU_MEM_EQUAL(rand, pdu->llctrl.enc_req, p, "Rand mismatch."); in helper_pdu_verify_enc_req()
643 PDU_MEM_EQUAL(ediv, pdu->llctrl.enc_req, p, "EDIV mismatch."); in helper_pdu_verify_enc_req()
644 PDU_MEM_EQUAL(skdm, pdu->llctrl.enc_req, p, "SKDm mismatch."); in helper_pdu_verify_enc_req()
645 PDU_MEM_EQUAL(ivm, pdu->llctrl.enc_req, p, "IVm mismatch."); in helper_pdu_verify_enc_req()
648 void helper_pdu_ntf_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_ntf_verify_enc_req() argument
653 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_ntf_verify_enc_req()
655 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_ENC_REQ, in helper_pdu_ntf_verify_enc_req()
658 PDU_MEM_EQUAL(rand, pdu->llctrl.enc_req, p, "Rand mismatch."); in helper_pdu_ntf_verify_enc_req()
659 PDU_MEM_EQUAL(ediv, pdu->llctrl.enc_req, p, "EDIV mismatch."); in helper_pdu_ntf_verify_enc_req()
662 void helper_pdu_verify_enc_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_enc_rsp() argument
664 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_enc_rsp()
666 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_ENC_RSP, in helper_pdu_verify_enc_rsp()
670 void helper_pdu_verify_start_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_start_enc_req() argument
673 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_start_enc_req()
675 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_START_ENC_REQ, in helper_pdu_verify_start_enc_req()
679 void helper_pdu_verify_start_enc_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_start_enc_rsp() argument
682 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_start_enc_rsp()
684 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_START_ENC_RSP, in helper_pdu_verify_start_enc_rsp()
688 void helper_pdu_verify_pause_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_pause_enc_req() argument
691 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_pause_enc_req()
693 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_REQ, in helper_pdu_verify_pause_enc_req()
697 void helper_pdu_verify_pause_enc_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_pause_enc_rsp() argument
700 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_pause_enc_rsp()
702 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_RSP, in helper_pdu_verify_pause_enc_rsp()
713 void helper_pdu_verify_reject_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_reject_ind() argument
718 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_reject_ind()
720 zassert_equal(pdu->len, in helper_pdu_verify_reject_ind()
724 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_REJECT_IND, in helper_pdu_verify_reject_ind()
726 zassert_equal(pdu->llctrl.reject_ind.error_code, p->error_code, in helper_pdu_verify_reject_ind()
730 void helper_pdu_verify_reject_ext_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_reject_ext_ind() argument
735 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_reject_ext_ind()
737 zassert_equal(pdu->len, in helper_pdu_verify_reject_ext_ind()
741 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_REJECT_EXT_IND, in helper_pdu_verify_reject_ext_ind()
743 zassert_equal(pdu->llctrl.reject_ext_ind.reject_opcode, p->reject_opcode, in helper_pdu_verify_reject_ext_ind()
745 zassert_equal(pdu->llctrl.reject_ext_ind.error_code, p->error_code, in helper_pdu_verify_reject_ext_ind()
749 void helper_pdu_verify_phy_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_phy_req() argument
753 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_phy_req()
755 zassert_equal(pdu->len, in helper_pdu_verify_phy_req()
759 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PHY_REQ, in helper_pdu_verify_phy_req()
761 zassert_equal(pdu->llctrl.phy_req.rx_phys, p->rx_phys, in helper_pdu_verify_phy_req()
763 zassert_equal(pdu->llctrl.phy_req.tx_phys, p->tx_phys, in helper_pdu_verify_phy_req()
767 void helper_pdu_verify_phy_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_phy_rsp() argument
771 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_phy_rsp()
773 zassert_equal(pdu->len, in helper_pdu_verify_phy_rsp()
777 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PHY_RSP, in helper_pdu_verify_phy_rsp()
779 zassert_equal(pdu->llctrl.phy_rsp.rx_phys, p->rx_phys, in helper_pdu_verify_phy_rsp()
781 zassert_equal(pdu->llctrl.phy_rsp.tx_phys, p->tx_phys, in helper_pdu_verify_phy_rsp()
785 void helper_pdu_verify_phy_update_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_phy_update_ind() argument
790 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_phy_update_ind()
792 zassert_equal(pdu->len, in helper_pdu_verify_phy_update_ind()
796 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PHY_UPD_IND, in helper_pdu_verify_phy_update_ind()
798 zassert_equal(pdu->llctrl.phy_upd_ind.instant, p->instant, in helper_pdu_verify_phy_update_ind()
800 zassert_equal(pdu->llctrl.phy_upd_ind.c_to_p_phy, p->c_to_p_phy, in helper_pdu_verify_phy_update_ind()
802 zassert_equal(pdu->llctrl.phy_upd_ind.p_to_c_phy, p->p_to_c_phy, in helper_pdu_verify_phy_update_ind()
809 struct node_rx_pu *pdu = (struct node_rx_pu *)rx->pdu; in helper_node_verify_phy_update() local
814 zassert_equal(pdu->status, p->status, "Status mismatch.\nCalled at %s:%d\n", file, line); in helper_node_verify_phy_update()
820 struct node_rx_sca *pdu = (struct node_rx_sca *)rx->pdu; in helper_node_verify_peer_sca_update() local
825 zassert_equal(pdu->status, p->status, "Status mismatch.\nCalled at %s:%d\n", file, line); in helper_node_verify_peer_sca_update()
826 zassert_equal(pdu->sca, p->sca, "SCA mismatch.\nCalled at %s:%d\n", file, line); in helper_node_verify_peer_sca_update()
829 void helper_pdu_verify_unknown_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_unknown_rsp() argument
834 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_unknown_rsp()
836 zassert_equal(pdu->len, in helper_pdu_verify_unknown_rsp()
840 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP, in helper_pdu_verify_unknown_rsp()
842 zassert_equal(pdu->llctrl.unknown_rsp.type, p->type, "Type mismatch.\nCalled at %s:%d\n", in helper_pdu_verify_unknown_rsp()
846 void helper_pdu_verify_conn_param_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_conn_param_req() argument
851 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_conn_param_req()
853 zassert_equal(pdu->len, in helper_pdu_verify_conn_param_req()
857 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CONN_PARAM_REQ, in helper_pdu_verify_conn_param_req()
860 zassert_equal(pdu->llctrl.conn_param_req.interval_min, p->interval_min, in helper_pdu_verify_conn_param_req()
862 zassert_equal(pdu->llctrl.conn_param_req.interval_max, p->interval_max, in helper_pdu_verify_conn_param_req()
864 zassert_equal(pdu->llctrl.conn_param_req.latency, p->latency, in helper_pdu_verify_conn_param_req()
866 zassert_equal(pdu->llctrl.conn_param_req.timeout, p->timeout, in helper_pdu_verify_conn_param_req()
868 zassert_equal(pdu->llctrl.conn_param_req.preferred_periodicity, p->preferred_periodicity, in helper_pdu_verify_conn_param_req()
870 zassert_equal(pdu->llctrl.conn_param_req.reference_conn_event_count, in helper_pdu_verify_conn_param_req()
873 zassert_equal(pdu->llctrl.conn_param_req.offset0, p->offset0, in helper_pdu_verify_conn_param_req()
875 zassert_equal(pdu->llctrl.conn_param_req.offset1, p->offset1, in helper_pdu_verify_conn_param_req()
877 zassert_equal(pdu->llctrl.conn_param_req.offset2, p->offset2, in helper_pdu_verify_conn_param_req()
879 zassert_equal(pdu->llctrl.conn_param_req.offset3, p->offset3, in helper_pdu_verify_conn_param_req()
881 zassert_equal(pdu->llctrl.conn_param_req.offset4, p->offset4, in helper_pdu_verify_conn_param_req()
883 zassert_equal(pdu->llctrl.conn_param_req.offset5, p->offset5, in helper_pdu_verify_conn_param_req()
887 void helper_pdu_verify_conn_param_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_conn_param_rsp() argument
892 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_conn_param_rsp()
894 zassert_equal(pdu->len, in helper_pdu_verify_conn_param_rsp()
898 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CONN_PARAM_RSP, in helper_pdu_verify_conn_param_rsp()
901 zassert_equal(pdu->llctrl.conn_param_rsp.interval_min, p->interval_min, in helper_pdu_verify_conn_param_rsp()
903 zassert_equal(pdu->llctrl.conn_param_rsp.interval_max, p->interval_max, in helper_pdu_verify_conn_param_rsp()
905 zassert_equal(pdu->llctrl.conn_param_rsp.latency, p->latency, in helper_pdu_verify_conn_param_rsp()
907 zassert_equal(pdu->llctrl.conn_param_rsp.timeout, p->timeout, in helper_pdu_verify_conn_param_rsp()
909 zassert_equal(pdu->llctrl.conn_param_rsp.preferred_periodicity, p->preferred_periodicity, in helper_pdu_verify_conn_param_rsp()
911 zassert_equal(pdu->llctrl.conn_param_rsp.reference_conn_event_count, in helper_pdu_verify_conn_param_rsp()
914 zassert_equal(pdu->llctrl.conn_param_rsp.offset0, p->offset0, in helper_pdu_verify_conn_param_rsp()
916 zassert_equal(pdu->llctrl.conn_param_rsp.offset1, p->offset1, in helper_pdu_verify_conn_param_rsp()
918 zassert_equal(pdu->llctrl.conn_param_rsp.offset2, p->offset2, in helper_pdu_verify_conn_param_rsp()
920 zassert_equal(pdu->llctrl.conn_param_rsp.offset3, p->offset3, in helper_pdu_verify_conn_param_rsp()
922 zassert_equal(pdu->llctrl.conn_param_rsp.offset4, p->offset4, in helper_pdu_verify_conn_param_rsp()
924 zassert_equal(pdu->llctrl.conn_param_rsp.offset5, p->offset5, in helper_pdu_verify_conn_param_rsp()
928 void helper_pdu_verify_conn_update_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_conn_update_ind() argument
933 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_conn_update_ind()
935 zassert_equal(pdu->len, in helper_pdu_verify_conn_update_ind()
939 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND, in helper_pdu_verify_conn_update_ind()
941 zassert_equal(pdu->llctrl.conn_update_ind.win_size, p->win_size, in helper_pdu_verify_conn_update_ind()
943 zassert_equal(pdu->llctrl.conn_update_ind.win_offset, p->win_offset, in helper_pdu_verify_conn_update_ind()
945 zassert_equal(pdu->llctrl.conn_update_ind.latency, p->latency, in helper_pdu_verify_conn_update_ind()
947 zassert_equal(pdu->llctrl.conn_update_ind.interval, p->interval, in helper_pdu_verify_conn_update_ind()
949 zassert_equal(pdu->llctrl.conn_update_ind.timeout, p->timeout, in helper_pdu_verify_conn_update_ind()
951 zassert_equal(pdu->llctrl.conn_update_ind.instant, p->instant, in helper_pdu_verify_conn_update_ind()
958 struct node_rx_pu *pdu = (struct node_rx_pu *)rx->pdu; in helper_node_verify_conn_update() local
963 zassert_equal(pdu->status, p->status, "Status mismatch.\nCalled at %s:%d\n", file, line); in helper_node_verify_conn_update()
966 void helper_pdu_verify_terminate_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_terminate_ind() argument
971 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_terminate_ind()
973 zassert_equal(pdu->len, in helper_pdu_verify_terminate_ind()
977 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_TERMINATE_IND, in helper_pdu_verify_terminate_ind()
979 zassert_equal(pdu->llctrl.terminate_ind.error_code, p->error_code, in helper_pdu_verify_terminate_ind()
983 void helper_pdu_verify_channel_map_update_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_channel_map_update_ind() argument
988 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_channel_map_update_ind()
990 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CHAN_MAP_IND, in helper_pdu_verify_channel_map_update_ind()
992 pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CHAN_MAP_IND); in helper_pdu_verify_channel_map_update_ind()
993 zassert_equal(pdu->len, in helper_pdu_verify_channel_map_update_ind()
997 zassert_equal(pdu->llctrl.chan_map_ind.instant, p->instant, in helper_pdu_verify_channel_map_update_ind()
999 zassert_mem_equal(pdu->llctrl.chan_map_ind.chm, p->chm, sizeof(p->chm), in helper_pdu_verify_channel_map_update_ind()
1003 void helper_pdu_verify_length_req(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_length_req() argument
1008 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_length_req()
1010 zassert_equal(pdu->len, in helper_pdu_verify_length_req()
1014 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_LENGTH_REQ, in helper_pdu_verify_length_req()
1016 zassert_equal(pdu->llctrl.length_req.max_rx_octets, p->max_rx_octets, in helper_pdu_verify_length_req()
1018 zassert_equal(pdu->llctrl.length_req.max_tx_octets, p->max_tx_octets, in helper_pdu_verify_length_req()
1020 zassert_equal(pdu->llctrl.length_req.max_rx_time, p->max_rx_time, in helper_pdu_verify_length_req()
1022 zassert_equal(pdu->llctrl.length_req.max_tx_time, p->max_tx_time, in helper_pdu_verify_length_req()
1026 void helper_pdu_verify_length_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_length_rsp() argument
1031 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_length_rsp()
1033 zassert_equal(pdu->len, in helper_pdu_verify_length_rsp()
1037 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_LENGTH_RSP, in helper_pdu_verify_length_rsp()
1039 zassert_equal(pdu->llctrl.length_rsp.max_rx_octets, p->max_rx_octets, in helper_pdu_verify_length_rsp()
1041 zassert_equal(pdu->llctrl.length_rsp.max_tx_octets, p->max_tx_octets, in helper_pdu_verify_length_rsp()
1043 zassert_equal(pdu->llctrl.length_rsp.max_rx_time, p->max_rx_time, in helper_pdu_verify_length_rsp()
1045 zassert_equal(pdu->llctrl.length_rsp.max_tx_time, p->max_tx_time, in helper_pdu_verify_length_rsp()
1049 void helper_pdu_verify_cte_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_cte_req() argument
1053 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_cte_req()
1055 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CTE_REQ, in helper_pdu_verify_cte_req()
1057 pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CTE_REQ); in helper_pdu_verify_cte_req()
1058 zassert_equal(pdu->len, in helper_pdu_verify_cte_req()
1062 zassert_equal(pdu->llctrl.cte_req.min_cte_len_req, p->min_cte_len_req, in helper_pdu_verify_cte_req()
1064 zassert_equal(pdu->llctrl.cte_req.cte_type_req, p->cte_type_req, in helper_pdu_verify_cte_req()
1068 void helper_pdu_verify_cte_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_cte_rsp() argument
1070 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_cte_rsp()
1072 zassert_equal(pdu->len, in helper_pdu_verify_cte_rsp()
1076 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CTE_RSP, in helper_pdu_verify_cte_rsp()
1100 void helper_pdu_ntf_verify_cte_rsp(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_ntf_verify_cte_rsp() argument
1103 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_ntf_verify_cte_rsp()
1105 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CTE_RSP, in helper_pdu_ntf_verify_cte_rsp()
1113 struct node_rx_conn_iso_req *pdu = (struct node_rx_conn_iso_req *)rx->pdu; in helper_node_verify_cis_request() local
1117 zassert_equal(p->cig_id, pdu->cig_id, in helper_node_verify_cis_request()
1119 zassert_equal(p->cis_handle, pdu->cis_handle, in helper_node_verify_cis_request()
1121 zassert_equal(p->cis_id, pdu->cis_id, in helper_node_verify_cis_request()
1129 struct node_rx_conn_iso_estab *pdu = (struct node_rx_conn_iso_estab *)rx->pdu; in helper_node_verify_cis_established() local
1133 zassert_equal(p->status, pdu->status, in helper_node_verify_cis_established()
1135 zassert_equal(p->cis_handle, pdu->cis_handle, in helper_node_verify_cis_established()
1139 void helper_pdu_verify_cis_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_cis_req() argument
1143 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_verify_cis_req()
1144 pdu->len = offsetof(struct pdu_data_llctrl, cis_req) + in helper_pdu_verify_cis_req()
1146 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_REQ; in helper_pdu_verify_cis_req()
1148 zassert_equal(pdu->llctrl.cis_req.cig_id, p->cig_id, in helper_pdu_verify_cis_req()
1150 zassert_equal(pdu->llctrl.cis_req.cis_id, p->cis_id, in helper_pdu_verify_cis_req()
1152 zassert_equal(pdu->llctrl.cis_req.c_phy, p->c_phy, in helper_pdu_verify_cis_req()
1154 zassert_equal(pdu->llctrl.cis_req.p_phy, p->p_phy, in helper_pdu_verify_cis_req()
1156 zassert_equal(pdu->llctrl.cis_req.c_max_pdu, p->c_max_pdu, in helper_pdu_verify_cis_req()
1158 zassert_equal(pdu->llctrl.cis_req.p_max_pdu, p->p_max_pdu, in helper_pdu_verify_cis_req()
1160 zassert_equal(pdu->llctrl.cis_req.nse, p->nse, in helper_pdu_verify_cis_req()
1162 zassert_equal(pdu->llctrl.cis_req.p_bn, p->p_bn, in helper_pdu_verify_cis_req()
1164 zassert_equal(pdu->llctrl.cis_req.c_bn, p->c_bn, in helper_pdu_verify_cis_req()
1166 zassert_equal(pdu->llctrl.cis_req.c_ft, p->c_ft, in helper_pdu_verify_cis_req()
1168 zassert_equal(pdu->llctrl.cis_req.p_ft, p->p_ft, in helper_pdu_verify_cis_req()
1170 zassert_equal(pdu->llctrl.cis_req.iso_interval, p->iso_interval, in helper_pdu_verify_cis_req()
1172 zassert_equal(pdu->llctrl.cis_req.conn_event_count, p->conn_event_count, in helper_pdu_verify_cis_req()
1174 zassert_mem_equal(pdu->llctrl.cis_req.c_max_sdu_packed, p->c_max_sdu_packed, in helper_pdu_verify_cis_req()
1177 zassert_mem_equal(pdu->llctrl.cis_req.p_max_sdu, p->p_max_sdu, in helper_pdu_verify_cis_req()
1180 zassert_mem_equal(pdu->llctrl.cis_req.c_sdu_interval, p->c_sdu_interval, in helper_pdu_verify_cis_req()
1183 zassert_mem_equal(pdu->llctrl.cis_req.p_sdu_interval, p->p_sdu_interval, in helper_pdu_verify_cis_req()
1186 zassert_mem_equal(pdu->llctrl.cis_req.sub_interval, p->sub_interval, in helper_pdu_verify_cis_req()
1189 zassert_mem_equal(pdu->llctrl.cis_req.cis_offset_min, p->cis_offset_min, in helper_pdu_verify_cis_req()
1192 zassert_mem_equal(pdu->llctrl.cis_req.cis_offset_max, p->cis_offset_max, in helper_pdu_verify_cis_req()
1197 void helper_pdu_verify_cis_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_cis_rsp() argument
1201 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_cis_rsp()
1203 zassert_equal(pdu->len, in helper_pdu_verify_cis_rsp()
1207 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CIS_RSP, in helper_pdu_verify_cis_rsp()
1210 zassert_mem_equal(pdu->llctrl.cis_rsp.cis_offset_min, p->cis_offset_min, in helper_pdu_verify_cis_rsp()
1213 zassert_mem_equal(pdu->llctrl.cis_rsp.cis_offset_max, p->cis_offset_max, in helper_pdu_verify_cis_rsp()
1216 zassert_equal(pdu->llctrl.cis_rsp.conn_event_count, p->conn_event_count, in helper_pdu_verify_cis_rsp()
1220 void helper_pdu_verify_cis_ind(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_cis_ind() argument
1224 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_cis_ind()
1226 zassert_equal(pdu->len, in helper_pdu_verify_cis_ind()
1230 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CIS_IND, in helper_pdu_verify_cis_ind()
1233 zassert_mem_equal(pdu->llctrl.cis_ind.aa, p->aa, sizeof(p->aa), in helper_pdu_verify_cis_ind()
1235 zassert_mem_equal(pdu->llctrl.cis_ind.cis_offset, p->cis_offset, sizeof(p->cis_offset), in helper_pdu_verify_cis_ind()
1237 zassert_mem_equal(pdu->llctrl.cis_ind.cig_sync_delay, p->cig_sync_delay, in helper_pdu_verify_cis_ind()
1240 zassert_mem_equal(pdu->llctrl.cis_ind.cis_sync_delay, p->cis_sync_delay, in helper_pdu_verify_cis_ind()
1243 zassert_equal(pdu->llctrl.cis_ind.conn_event_count, p->conn_event_count, in helper_pdu_verify_cis_ind()
1247 void helper_pdu_verify_cis_terminate_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_cis_terminate_ind() argument
1252 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_cis_terminate_ind()
1254 zassert_equal(pdu->len, in helper_pdu_verify_cis_terminate_ind()
1258 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CIS_TERMINATE_IND, in helper_pdu_verify_cis_terminate_ind()
1260 zassert_equal(pdu->llctrl.cis_terminate_ind.cig_id, p->cig_id, in helper_pdu_verify_cis_terminate_ind()
1262 zassert_equal(pdu->llctrl.cis_terminate_ind.cis_id, p->cis_id, in helper_pdu_verify_cis_terminate_ind()
1264 zassert_equal(pdu->llctrl.cis_terminate_ind.error_code, p->error_code, in helper_pdu_verify_cis_terminate_ind()
1268 void helper_pdu_verify_sca_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_sca_req() argument
1270 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_sca_req()
1272 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_REQ, in helper_pdu_verify_sca_req()
1276 void helper_pdu_verify_sca_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_sca_rsp() argument
1278 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_sca_rsp()
1280 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_RSP, in helper_pdu_verify_sca_rsp()
1284 void helper_pdu_verify_periodic_sync_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_periodic_sync_ind() argument
1289 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_periodic_sync_ind()
1291 zassert_equal(pdu->llctrl.opcode, PDU_DATA_LLCTRL_TYPE_PERIODIC_SYNC_IND, in helper_pdu_verify_periodic_sync_ind()
1294 zassert_equal(pdu->llctrl.periodic_sync_ind.id, p->id, in helper_pdu_verify_periodic_sync_ind()
1297 zassert_equal(pdu->llctrl.periodic_sync_ind.conn_event_count, p->conn_event_count, in helper_pdu_verify_periodic_sync_ind()
1300 zassert_equal(pdu->llctrl.periodic_sync_ind.last_pa_event_counter, p->last_pa_event_counter, in helper_pdu_verify_periodic_sync_ind()
1303 zassert_equal(pdu->llctrl.periodic_sync_ind.sid, p->sid, in helper_pdu_verify_periodic_sync_ind()
1306 zassert_equal(pdu->llctrl.periodic_sync_ind.addr_type, p->addr_type, in helper_pdu_verify_periodic_sync_ind()
1309 zassert_equal(pdu->llctrl.periodic_sync_ind.sca, p->sca, in helper_pdu_verify_periodic_sync_ind()
1312 zassert_equal(pdu->llctrl.periodic_sync_ind.phy, p->phy, in helper_pdu_verify_periodic_sync_ind()
1315 zassert_equal(pdu->llctrl.periodic_sync_ind.sync_conn_event_count, p->sync_conn_event_count, in helper_pdu_verify_periodic_sync_ind()
1318 zassert_mem_equal(&pdu->llctrl.periodic_sync_ind.sync_info, &p->sync_info, in helper_pdu_verify_periodic_sync_ind()
1322 zassert_mem_equal(pdu->llctrl.periodic_sync_ind.adv_addr, p->adv_addr, in helper_pdu_verify_periodic_sync_ind()