Lines Matching full:sync
25 static void sync_cb(struct bt_le_per_adv_sync *sync, struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument
39 err = bt_le_per_adv_sync_subevent(sync, ¶ms); in sync_cb()
41 printk("Failed to set subevents to sync to (err %d)\n", err); in sync_cb()
47 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
54 printk("Sync terminated (reason %d)\n", info->reason); in term_cb()
61 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
97 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
186 struct bt_le_per_adv_sync *sync; in main() local
216 printk("Creating Periodic Advertising Sync"); in main()
222 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
224 printk("Failed to create sync (err %d)\n", err); in main()
229 printk("Waiting for periodic sync\n"); in main()
237 printk("Periodic sync established.\n"); in main()