25#include "nimble/nimble/include/nimble/ble.h"
26#include "ble_ll_hci.h"
27#include "ble_ll_conn.h"
33struct ble_ll_scan_addr_data;
36int ble_ll_sync_create(
const uint8_t *cmdbuf, uint8_t len);
37int ble_ll_sync_cancel(ble_ll_hci_post_cmd_complete_cb *post_cmd_cb);
38int ble_ll_sync_terminate(
const uint8_t *cmdbuf, uint8_t len);
39int ble_ll_sync_list_add(
const uint8_t *cmdbuf, uint8_t len);
40int ble_ll_sync_list_remove(
const uint8_t *cmdbuf, uint8_t len);
41int ble_ll_sync_list_clear(
void);
42int ble_ll_sync_list_size(uint8_t *rspbuf, uint8_t *rsplen);
43int ble_ll_sync_receive_enable(
const uint8_t *cmdbuf, uint8_t len);
44int ble_ll_sync_transfer(
const uint8_t *cmdbuf, uint8_t len,
45 uint8_t *rspbuf, uint8_t *rsplen);
47void ble_ll_sync_periodic_ind(
struct ble_ll_conn_sm *connsm,
48 const uint8_t *sync_ind,
bool reports_disabled,
49 uint16_t max_skip, uint32_t sync_timeout);
50void ble_ll_sync_transfer_disconnected(
struct ble_ll_conn_sm *connsm);
52void ble_ll_sync_info_event(
struct ble_ll_scan_addr_data *addrd, uint8_t sid,
53 struct ble_mbuf_hdr *rxhdr,
54 const uint8_t *syncinfo);
56int ble_ll_sync_rx_isr_start(uint8_t pdu_type,
struct ble_mbuf_hdr *rxhdr);
57int ble_ll_sync_rx_isr_end(uint8_t *rxbuf,
struct ble_mbuf_hdr *rxhdr);
58void ble_ll_sync_rx_pkt_in(
struct os_mbuf *rxpdu,
struct ble_mbuf_hdr *hdr);
59void ble_ll_sync_wfr_timer_exp(
void);
60void ble_ll_sync_halt(
void);
61void ble_ll_sync_rmvd_from_sched(
struct ble_ll_sync_sm *sm);
63uint32_t ble_ll_sync_get_event_end_time(
void);
65bool ble_ll_sync_enabled(
void);
67void ble_ll_sync_reset(
void);
68void ble_ll_sync_init(
void);