1 /*
2  * Copyright (c) 2020 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 int ull_sync_init(void);
8 int ull_sync_reset(void);
9 uint16_t ull_sync_handle_get(struct ll_sync_set *sync);
10 struct ll_sync_set *ull_sync_is_enabled_get(uint16_t handle);
11 void ull_sync_release(struct ll_sync_set *sync);
12 void ull_sync_setup_addr_check(struct ll_sync_set *sync, struct ll_scan_set *scan,
13 			       uint8_t addr_type, uint8_t *addr, uint8_t rl_idx);
14 bool ull_sync_setup_sid_match(struct ll_sync_set *sync, struct ll_scan_set *scan, uint8_t sid);
15 void ull_sync_create_from_sync_transfer(uint16_t conn_handle,  uint16_t service_data,
16 					struct ll_sync_set *sync,
17 					struct pdu_adv_sync_info *si,
18 					uint32_t conn_offset_us);
19 void ull_sync_setup(struct ll_scan_set *scan, uint8_t phy,
20 		    struct node_rx_pdu *node_rx, struct pdu_adv_sync_info *si);
21 void ull_sync_setup_reset(struct ll_sync_set *sync);
22 void ull_sync_established_report(memq_link_t *link, struct node_rx_pdu *rx);
23 void ull_sync_done(struct node_rx_event_done *done);
24 void ull_sync_chm_update(uint8_t sync_handle, uint8_t *acad, uint8_t acad_len);
25 int ull_sync_slot_update(struct ll_sync_set *sync, uint32_t slot_plus_us,
26 			 uint32_t slot_minus_us);
27 struct ll_sync_set *ull_sync_is_valid_get(struct ll_sync_set *sync);
28 void ull_sync_transfer_received(struct ll_conn *conn, uint16_t service_data,
29 				struct pdu_adv_sync_info *si, uint16_t conn_event_count,
30 				uint16_t last_pa_event_counter, uint8_t sid,
31 				uint8_t addr_type, uint8_t sca, uint8_t phy,
32 				uint8_t *adv_addr, uint16_t sync_conn_event_count,
33 				uint8_t addr_resolved);
34