Home
last modified time | relevance | path

Searched full:sync (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_sync.c73 * indicate that a sync is established. And is used to check for sync being
83 static void sync_ticker_cleanup(struct ll_sync_set *sync, ticker_op_func stop_op_cb);
121 struct ll_sync_set *sync; in ll_sync_create() local
126 if (!scan || scan->periodic.sync) { in ll_sync_create()
132 if (!scan_coded || scan_coded->periodic.sync) { in ll_sync_create()
138 /* Do not sync twice to the same peer and same SID */ in ll_sync_create()
148 sync = ull_sync_create(sid, sync_timeout, skip, sync_cte_type, rx_enable, nodups); in ll_sync_create()
149 if (!sync) { in ll_sync_create()
165 sync->peer_id_addr_type = adv_addr_type; in ll_sync_create()
166 (void)memcpy(sync->peer_id_addr, adv_addr, BDADDR_SIZE); in ll_sync_create()
[all …]
Dull_sync_types.h21 /* Non-zero when sync is setup. It can be in two sub-stated:
22 * - Waiting for first AUX_SYNC_IND, before sync established was notified to Host.
23 * If sync establishment is in progress node_rx_sync_estab is not NULL.
24 * - sync is already established, node_rx_sync_estab is NULL.
29 /* Member to store periodic advertising sync prepare.
30 * Also serves as a flag to inform if sync established was
47 /* Member used to notify event done handler to terminate sync scanning.
53 uint8_t is_stop:1; /* sync terminate or cancel requested */
63 /* node rx type with memory aligned storage for sync lost reason.
73 /* Not-Null when sync was setup and Controller is waiting for first AUX_SYNC_IND PDU.
[all …]
Dull_sync_internal.h9 uint16_t ull_sync_handle_get(struct ll_sync_set *sync);
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,
14 bool ull_sync_setup_sid_match(struct ll_sync_set *sync, struct ll_scan_set *scan, uint8_t sid);
16 struct ll_sync_set *sync,
21 void ull_sync_setup_reset(struct ll_sync_set *sync);
25 int ull_sync_slot_update(struct ll_sync_set *sync, uint32_t slot_plus_us,
27 struct ll_sync_set *ull_sync_is_valid_get(struct ll_sync_set *sync);
Dull_adv_sync.c98 static inline void sync_release(struct ll_adv_sync_set *sync);
99 static inline uint16_t sync_handle_get(const struct ll_adv_sync_set *sync);
100 static uint32_t sync_time_get(const struct ll_adv_sync_set *sync,
102 static inline uint8_t sync_remove(struct ll_adv_sync_set *sync,
137 struct ll_adv_sync_set *sync; in ll_adv_sync_param_set() local
153 lll_sync = adv->lll.sync; in ll_adv_sync_param_set()
159 sync = sync_acquire(); in ll_adv_sync_param_set()
160 if (!sync) { in ll_adv_sync_param_set()
165 lll_sync = &sync->lll; in ll_adv_sync_param_set()
166 lll->sync = lll_sync; in ll_adv_sync_param_set()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/adv/periodic/src/
Dper_adv_sync.c110 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
119 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
125 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
132 printk("PER_ADV_SYNC[%u]: [DEVICE]: %s sync terminated\n", in term_cb()
133 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
204 static void create_pa_sync(struct bt_le_per_adv_sync **sync) in create_pa_sync() argument
209 printk("Creating periodic advertising sync..."); in create_pa_sync()
215 err = bt_le_per_adv_sync_create(&sync_create_param, sync); in create_pa_sync()
217 FAIL("Failed to create periodic advertising sync: %d\n", err); in create_pa_sync()
222 printk("Waiting for periodic sync...\n"); in create_pa_sync()
[all …]
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_rx/src/
Dcommon.c42 struct ll_sync_set *sync; in common_create_per_sync_set() local
52 zassert_equal(err, 0, "Failed to create periodic sync set"); in common_create_per_sync_set()
54 /* Below code makes fake sync enable and provides appropriate handle value to in common_create_per_sync_set()
55 * g_per_sync->handle. There is no complete sync established procedure, in common_create_per_sync_set()
59 sync = scan->periodic.sync; in common_create_per_sync_set()
60 g_per_sync->handle = ull_sync_handle_get(sync); in common_create_per_sync_set()
61 sync->lll.phy = PHY_2M; in common_create_per_sync_set()
62 /* timeout_reload member is used by controller to check if sync was established. */ in common_create_per_sync_set()
63 sync->timeout_reload = 1; in common_create_per_sync_set()
/Zephyr-latest/modules/lvgl/
Dlvgl_zephyr_osal.c100 lv_result_t lv_thread_sync_init(lv_thread_sync_t *sync) in lv_thread_sync_init() argument
104 ret = k_sem_init(sync, 0, 1); in lv_thread_sync_init()
106 LOG_ERR("Failed to init thread sync: %d", ret); in lv_thread_sync_init()
113 lv_result_t lv_thread_sync_wait(lv_thread_sync_t *sync) in lv_thread_sync_wait() argument
117 ret = k_sem_take(sync, K_FOREVER); in lv_thread_sync_wait()
119 LOG_ERR("Error waiting on thread sync: %d", ret); in lv_thread_sync_wait()
126 lv_result_t lv_thread_sync_signal(lv_thread_sync_t *sync) in lv_thread_sync_signal() argument
128 k_sem_give(sync); in lv_thread_sync_signal()
132 lv_result_t lv_thread_sync_signal_isr(lv_thread_sync_t *sync) in lv_thread_sync_signal_isr() argument
134 k_sem_give(sync); in lv_thread_sync_signal_isr()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/scan/start_stop/src/
Dmain.c16 #include <babblekit/sync.h>
40 static void bt_sync_established_cb(struct bt_le_per_adv_sync *sync, in bt_sync_established_cb() argument
43 LOG_DBG("Periodic sync established"); in bt_sync_established_cb()
68 * Verifies that the scanner can establish a sync to a device when in run_dut()
75 * - `dut`: tries to establish the sync in run_dut()
79 * - [dut] start establishing a sync (no peer) in run_dut()
84 * - [dut] stop the periodic sync in run_dut()
85 * - [dut] start establishing a sync to the peer in run_dut()
88 * - [dut] wait until a sync is established in run_dut()
91 * - dut is able to sync to the peer. in run_dut()
[all …]
/Zephyr-latest/modules/canopennode/
Dcanopen_sync.c10 * @brief CANopen sync thread.
12 * The CANopen real-time sync thread processes SYNC RPDOs and TPDOs
25 bool sync; in canopen_sync_thread() local
35 sync = CO_process_SYNC(CO, elapsed); in canopen_sync_thread()
36 CO_process_RPDO(CO, sync); in canopen_sync_thread()
37 CO_process_TPDO(CO, sync, elapsed); in canopen_sync_thread()
DKconfig80 bool "CANopen SYNC thread"
83 Enable internal thread for processing CANopen SYNC RPDOs and
84 TPDOs. Application layer must take care of SYNC RPDO and
88 int "Stack size for the CANopen SYNC thread"
93 processes CANopen SYNC RPDOs and TPDOs.
96 int "Priority for CANopen SYNC thread"
102 CANopen SYNC RPDOs and TPDOs.
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c89 static struct sync_state *sync_state_get_by_pa(struct bt_le_per_adv_sync *sync) in sync_state_get_by_pa() argument
92 if (sync_states[i].pa_sync == sync) { in sync_state_get_by_pa()
179 printk("Could not sync per adv: %d\n", err); in pa_sync_no_past()
184 printk("PA sync pending for addr %s\n", addr_str); in pa_sync_no_past()
204 printk("Deleting PA sync\n"); in pa_sync_term()
208 FAIL("Could not delete per adv sync: %d\n", err); in pa_sync_term()
232 FAIL("Sync state receive state mismatch: %p - %p", in recv_state_updated_cb()
250 printk("PA Sync request: past_avail %u, pa_interval 0x%04x\n: %p", in pa_sync_req_cb()
265 /* TODO: Terminate existing sync and then sync to new?*/ in pa_sync_req_cb()
290 printk("PA Sync term request for %p\n", recv_state); in pa_sync_term_req_cb()
[all …]
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/
Dreceiver.c120 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
128 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
131 LOG_INF("Periodic advertisement sync terminated"); in term_cb()
137 static void biginfo_cb(struct bt_le_per_adv_sync *sync, in biginfo_cb() argument
224 print_stats("Current Sync", &stats_current_sync); in iso_recv()
301 static int create_pa_sync(struct bt_le_per_adv_sync **sync) in create_pa_sync() argument
307 LOG_INF("Creating Periodic Advertising Sync"); in create_pa_sync()
315 err = bt_le_per_adv_sync_create(&sync_create_param, sync); in create_pa_sync()
317 LOG_ERR("Periodic advertisement sync create failed (err %d)", in create_pa_sync()
322 LOG_INF("Waiting for periodic sync"); in create_pa_sync()
[all …]
/Zephyr-latest/samples/bluetooth/peripheral_past/src/
Dmain.c18 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
25 printk("Sync not from PAST\n"); in sync_cb()
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
48 printk("PER_ADV_SYNC[%u]: [DEVICE]: %s sync terminated\n", in term_cb()
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()
139 printk("Subscribing to periodic advertising sync transfers\n"); in main()
156 printk("Waiting for periodic sync...\n"); in main()
[all …]
/Zephyr-latest/samples/bluetooth/iso_receive/src/
Dmain.c132 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument
141 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb()
147 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
154 printk("PER_ADV_SYNC[%u]: [DEVICE]: %s sync terminated\n", in term_cb()
155 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb()
161 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument
173 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb()
177 static void biginfo_cb(struct bt_le_per_adv_sync *sync, in biginfo_cb() argument
189 bt_le_per_adv_sync_get_index(sync), le_addr, biginfo->sid, in biginfo_cb()
296 struct bt_le_per_adv_sync *sync; in main() local
[all …]
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/
Dull_sync.c46 struct ll_sync_set *sync; in ull_sync_is_enabled_get() local
48 sync = ull_sync_set_get(handle); in ull_sync_is_enabled_get()
49 if (!sync) { in ull_sync_is_enabled_get()
53 return sync; in ull_sync_is_enabled_get()
56 uint16_t ull_sync_handle_get(struct ll_sync_set *sync) in ull_sync_handle_get() argument
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_df_internal.h15 /* Allocate memory for new DF sync configuration. It will always return the same
20 /* Returns pointer to last allocated DF sync configuration. If it is called before
29 /* Enqueue new DF sync configuration data. */
35 /* Get latest DF sync configuration data. Latest configuration data are the one
40 /* Get current DF sync configuration data. Current configuration data
49 /* Return information if DF sync configuration data were modified since last
64 int lll_df_iq_report_no_resources_prepare(struct lll_sync *sync);
/Zephyr-latest/dts/bindings/display/panel/
Dpanel-timing.yaml86 Polarity of horizontal sync pulse
97 Polarity of vertical sync pulse
129 Drive sync on rising or sample sync on falling edge. If not specified
131 Use 0 to drive sync on falling edge
132 and sample sync on rising edge of pixel clock.
133 Use 1 to drive sync on rising edge
134 and sample sync on falling edge of pixel clock.
/Zephyr-latest/tests/bsim/babblekit/src/
Dsync.c16 LOG_MODULE_REGISTER(sync, CONFIG_LOG_DEFAULT_LEVEL);
35 LOG_DBG("Sync initialized"); in bk_sync_init()
44 LOG_DBG("Sending sync"); in bk_sync_send()
52 LOG_DBG("Waiting for sync"); in bk_sync_wait()
66 LOG_DBG("Sync received"); in bk_sync_wait()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dhas_client.c141 bool sync = false; in cmd_has_client_preset_set() local
154 if (!strcmp(arg, "sync")) { in cmd_has_client_preset_set()
155 sync = true; in cmd_has_client_preset_set()
172 err = bt_has_client_preset_set(inst, index, sync); in cmd_has_client_preset_set()
183 bool sync = false; in cmd_has_client_preset_next() local
189 if (!strcmp(arg, "sync")) { in cmd_has_client_preset_next()
190 sync = true; in cmd_has_client_preset_next()
207 err = bt_has_client_preset_next(inst, sync); in cmd_has_client_preset_next()
218 bool sync = false; in cmd_has_client_preset_prev() local
224 if (!strcmp(arg, "sync")) { in cmd_has_client_preset_prev()
[all …]
/Zephyr-latest/tests/kernel/events/sys_event/src/
Dmain.c78 * Sync point 1-1 : test_event contains events 0x1234. in receive_existing_events()
87 * Sync point 1-2 : test_event still contains event 0x1234. in receive_existing_events()
96 * Sync point 1-3: test_event still contains event 0x1234. in receive_existing_events()
105 * Sync point 1-4: test_event still contains event 0x1234. in receive_existing_events()
114 * Sync point 1-5: test_event still contains event 0x1234. in receive_existing_events()
123 * Sync point 1-6: test_event still contains event 0x1234. in receive_existing_events()
134 /* Sync point 2-1 - with reset */ in reset_on_receive()
141 /* Sync point 2-2 - with reset */ in reset_on_receive()
147 /* Sync point 2-3 - with reset */ in reset_on_receive()
154 /* Sync point 2-4 - with reset */ in reset_on_receive()
[all …]
/Zephyr-latest/drivers/dai/intel/dmic/
DKconfig.dmic52 bool "Use DMIC sync for multiple lines"
56 dmic sync registers must be set before use of dmic
71 int "Sync period per platform"
74 DMIC sync period used for:
76 From spec: E.g. for 19.2 MHz XTAL oscillator clock, 4 KHz sync period,
/Zephyr-latest/samples/bluetooth/central_past/
DREADME.rst2 :name: Central Periodic Advertising Sync Transfer (PAST)
5 Use the Periodic Advertising Sync Transfer (PAST) feature as the sender.
10 A simple application demonstrating the Bluetooth LE Periodic Advertising Sync Transfer
30 advertising sync transfer.
/Zephyr-latest/samples/bluetooth/periodic_sync_conn/src/
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()
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()
[all …]
/Zephyr-latest/samples/bluetooth/periodic_sync_rsp/src/
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()
47 printk("Failed to set subevents to sync to (err %d)\n", err); in sync_cb()
49 printk("Changed sync to subevent %d\n", subevents[0]); in sync_cb()
55 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument
62 printk("Sync terminated (reason %d)\n", info->reason); in term_cb()
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()
161 printk("Failed to set subevents to sync to (err %d)\n", err); in write_timing()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_receiver.c17 #include "babblekit/sync.h"
114 static void pa_synced_cb(struct bt_le_per_adv_sync *sync, in pa_synced_cb() argument
122 static void pa_term_cb(struct bt_le_per_adv_sync *sync, in pa_term_cb() argument
130 static void pa_biginfo_cb(struct bt_le_per_adv_sync *sync, const struct bt_iso_biginfo *biginfo) in pa_biginfo_cb() argument
213 LOG_INF("Creating PA sync"); in scan_and_sync_pa()
215 TEST_ASSERT(err == 0, "Failed to sync to PA: %d", err); in scan_and_sync_pa()
224 static void sync_big(struct bt_le_per_adv_sync *sync, uint8_t cnt, struct bt_iso_big **out_big) in sync_big() argument
242 LOG_INF("Creating BIG sync"); in sync_big()
243 err = bt_iso_big_sync(sync, &param, out_big); in sync_big()
244 TEST_ASSERT(err == 0, "Failed to create BIG sync: %d"); in sync_big()
[all …]

12345678910>>...27