Home
last modified time | relevance | path

Searched refs:sync (Results 1 – 25 of 35) sorted by relevance

12

/samples/drivers/ipm/ipm_esp32/remote/src/
A Dmain.c15 struct k_sem sync; variable
20 k_sem_give(&sync); in ipm_receive_callback()
25 k_sem_init(&sync, 0, 1); in main()
36 k_sem_take(&sync, K_FOREVER); in main()
/samples/drivers/ipm/ipm_esp32/src/
A Dmain.c17 static struct k_sem sync; variable
26 k_sem_give(&sync); in ipm_receive_callback()
33 k_sem_init(&sync, 0, 1); in main()
51 ret = k_sem_take(&sync, K_MSEC(5000)); in main()
/samples/bluetooth/iso_broadcast_benchmark/src/
A Dreceiver.c121 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
129 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
340 err = bt_le_per_adv_sync_delete(*sync); in create_pa_sync()
393 err = bt_iso_big_sync(sync, &big_sync_param, big); in create_big_sync()
417 if (!per_adv_lost && sync) { in cleanup()
419 pa_err = bt_le_per_adv_sync_delete(sync); in cleanup()
455 struct bt_le_per_adv_sync *sync = NULL; in test_run_receiver() local
490 err = create_pa_sync(&sync); in test_run_receiver()
499 err = create_big_sync(&big, sync); in test_run_receiver()
501 (void)cleanup(sync, big); in test_run_receiver()
[all …]
/samples/bluetooth/peripheral_past/src/
A Dmain.c18 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
35 bt_le_per_adv_sync_get_index(sync), le_addr, info->interval, in sync_cb()
41 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
49 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
54 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
65 "data: %s\n", bt_le_per_adv_sync_get_index(sync), le_addr, in recv_cb()
/samples/bluetooth/periodic_sync/src/
A Dmain.c130 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
139 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
145 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
153 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
158 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
170 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb()
183 struct bt_le_per_adv_sync *sync; in main() local
255 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
268 err = bt_le_per_adv_sync_delete(sync); in main()
/samples/bluetooth/direction_finding_connectionless_rx/src/
A Dmain.c57 static void sync_cb(struct bt_le_per_adv_sync *sync,
59 static void term_cb(struct bt_le_per_adv_sync *sync,
61 static void recv_cb(struct bt_le_per_adv_sync *sync,
67 static void cte_recv_cb(struct bt_le_per_adv_sync *sync,
158 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
167 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
173 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
181 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
191 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
203 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb()
[all …]
/samples/bluetooth/central_past/src/
A Dmain.c203 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
212 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
218 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
226 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
229 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
241 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb()
254 struct bt_le_per_adv_sync *sync; in main() local
317 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
333 err = bt_le_per_adv_sync_transfer(sync, default_conn, 0); in main()
/samples/bluetooth/periodic_sync_conn/src/
A Dmain.c25 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, &params); in sync_cb()
47 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
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
222 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
/samples/drivers/i2s/echo/boards/
A Dmimxrt1060_evk_mimxrt1062_qspi_C.overlay8 nxp,rx-sync-mode;
A Dmimxrt1170_evk_mimxrt1176_cm7_B.overlay8 nxp,rx-sync-mode;
/samples/bluetooth/tmap_bmr/src/
A Dbap_broadcast_sink.c44 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync,
46 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync,
49 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync,
247 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, in broadcast_pa_recv() argument
270 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, in broadcast_pa_synced() argument
273 if (sync == bcast_pa_sync) { in broadcast_pa_synced()
274 printk("PA sync %p synced for broadcast sink with broadcast ID 0x%06X\n", sync, in broadcast_pa_synced()
281 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, in broadcast_pa_terminated() argument
284 if (sync == bcast_pa_sync) { in broadcast_pa_terminated()
285 printk("PA sync %p lost with reason %u\n", sync, info->reason); in broadcast_pa_terminated()
/samples/bluetooth/pbp_public_broadcast_sink/src/
A Dmain.c52 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync,
55 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync,
59 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync,
261 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, in broadcast_pa_recv() argument
284 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, in broadcast_pa_synced() argument
287 if (sync == bcast_pa_sync) { in broadcast_pa_synced()
289 sync, bcast_id); in broadcast_pa_synced()
295 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, in broadcast_pa_terminated() argument
298 if (sync == bcast_pa_sync) { in broadcast_pa_terminated()
299 printk("PA sync %p lost with reason %u\n", sync, info->reason); in broadcast_pa_terminated()
/samples/bluetooth/iso_receive/src/
A Dmain.c133 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
142 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
148 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
156 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
162 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
178 static void biginfo_cb(struct bt_le_per_adv_sync *sync, in biginfo_cb() argument
309 struct bt_le_per_adv_sync *sync; in main() local
398 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
411 err = bt_le_per_adv_sync_delete(sync); in main()
430 err = bt_le_per_adv_sync_delete(sync); in main()
[all …]
/samples/subsys/input/draw_touch_events/src/
A Dmain.c41 static struct k_sem sync; variable
60 if (evt->sync) { in touch_event_callback()
61 k_sem_give(&sync); in touch_event_callback()
138 k_sem_init(&sync, 0, 1); in main()
142 k_sem_take(&sync, K_FOREVER); in main()
/samples/bluetooth/periodic_sync_rsp/src/
A Dmain.c28 static void sync_cb(struct bt_le_per_adv_sync *sync, struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument
38 default_sync = sync; in sync_cb()
45 err = bt_le_per_adv_sync_subevent(sync, &params); in sync_cb()
55 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
91 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
111 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
/samples/bluetooth/hap_ha/src/
A Dhas_server.c23 static int select_cb(uint8_t index, bool sync) in select_cb() argument
25 printk("%s %u sync %d", __func__, index, sync); in select_cb()
/samples/drivers/virtualization/ivshmem/doorbell/
A Dwrite_shared_memory.sh35 printf %s "$WM_MSG" | dd of="$WM_LOC" ibs="$WM_SIZE" conv=sync "$WM_DD" || exit 1
/samples/bluetooth/iso_broadcast_benchmark/
A DREADME.rst5 Measure packet loss and sync loss of an ISO broadcaster against one or more receivers.
7 The ISO Broadcast Benchmark sample measures and report packet loss and sync loss
15 and measures the quality of the sync.
58 The receiver will output statistics for overall (since boot), current sync
71 [00:00:05.796,081] <inf> iso_broadcast_receiver: Waiting for periodic sync
74 [00:00:06.454,010] <inf> iso_broadcast_receiver: Periodic sync established
78 [00:00:08.853,973] <inf> iso_broadcast_receiver: Waiting for BIG sync
80 [00:00:11.254,333] <inf> iso_broadcast_receiver: BIG sync established
/samples/drivers/psi5/boards/
A Ds32z2xxdc2_s32z270_rtu0.overlay33 period-sync-pulse-us = <500>;
/samples/bluetooth/bap_broadcast_assistant/src/
A Dmain.c196 static void pa_recv(struct bt_le_per_adv_sync *sync, in pa_recv() argument
529 static void pa_sync_synced_cb(struct bt_le_per_adv_sync *sync, in pa_sync_synced_cb() argument
532 if (sync == pa_sync) { in pa_sync_synced_cb()
533 printk("PA sync %p synced for broadcast sink with broadcast ID 0x%06X\n", sync, in pa_sync_synced_cb()
539 static void pa_sync_term_cb(struct bt_le_per_adv_sync *sync, in pa_sync_term_cb() argument
542 if (sync == pa_sync) { in pa_sync_term_cb()
543 printk("PA sync %p terminated with reason %u\n", sync, info->reason); in pa_sync_term_cb()
/samples/bluetooth/peripheral_past/
A DREADME.rst26 sync.
/samples/bluetooth/cap_acceptor/src/
A Dcap_acceptor_broadcast.c512 static void bap_pa_sync_synced_cb(struct bt_le_per_adv_sync *sync, in bap_pa_sync_synced_cb() argument
515 if (sync == broadcast_sink.pa_sync || in bap_pa_sync_synced_cb()
521 LOG_INF("PA sync %p synced for broadcast sink", (void *)sync); in bap_pa_sync_synced_cb()
524 broadcast_sink.pa_sync = sync; in bap_pa_sync_synced_cb()
550 static void bap_pa_sync_terminated_cb(struct bt_le_per_adv_sync *sync, in bap_pa_sync_terminated_cb() argument
553 if (sync == broadcast_sink.pa_sync) { in bap_pa_sync_terminated_cb()
556 LOG_INF("PA sync %p lost with reason %u", (void *)sync, info->reason); in bap_pa_sync_terminated_cb()
/samples/bluetooth/central_past/
A DREADME.rst30 advertising sync transfer.
/samples/bluetooth/periodic_adv_rsp/
A DREADME.rst13 This sample will scan for the corresponding sync sample and send the required
/samples/bluetooth/bap_broadcast_sink/src/
A Dmain.c802 static void bap_pa_sync_synced_cb(struct bt_le_per_adv_sync *sync, in bap_pa_sync_synced_cb() argument
805 if (sync == pa_sync || in bap_pa_sync_synced_cb()
808 printk("PA sync %p synced for broadcast sink with broadcast ID 0x%06X\n", sync, in bap_pa_sync_synced_cb()
812 pa_sync = sync; in bap_pa_sync_synced_cb()
820 static void bap_pa_sync_terminated_cb(struct bt_le_per_adv_sync *sync, in bap_pa_sync_terminated_cb() argument
823 if (sync == pa_sync) { in bap_pa_sync_terminated_cb()
824 printk("PA sync %p lost with reason 0x%02X\n", sync, info->reason); in bap_pa_sync_terminated_cb()

Completed in 65 milliseconds

12