Home
last modified time | relevance | path

Searched refs:interval_us (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/samples/bluetooth/iso_central/src/
Dmain.c30 static uint32_t interval_us = 10U * USEC_PER_MSEC; /* 10 ms */ variable
82 interval_us); in iso_timer_timeout()
88 k_work_schedule(&iso_send_work, K_USEC(interval_us)); in iso_timer_timeout()
268 param.c_to_p_interval = interval_us; /* us */ in main()
269 param.p_to_c_interval = interval_us; /* us */ in main()
/Zephyr-latest/drivers/adc/
Dadc_context.h120 k_timer_start(&ctx->timer, K_NO_WAIT, K_USEC(ctx->options.interval_us)); in adc_context_enable_timer()
223 if (ctx->options.interval_us != 0U) { in adc_context_start_read()
279 if (ctx->options.interval_us == 0U) { in adc_context_on_sampling_done()
288 if (ctx->options.interval_us != 0U) { in adc_context_on_sampling_done()
Dadc_esp32.c413 if (seq->options->interval_us) { in adc_esp32_read()
502 if (options->interval_us) { in adc_esp32_read()
503 sample_freq_hz = MHZ(1) / options->interval_us; in adc_esp32_read()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_central.c22 static uint32_t interval_us = 10U * USEC_PER_MSEC; /* 10 ms */ variable
62 k_work_reschedule(k_work_delayable_from_work(work), K_USEC(interval_us)); in send_data_cb()
190 param->c_to_p_interval = interval_us; /* us */ in set_cig_defaults()
191 param->p_to_c_interval = interval_us; /* us */ in set_cig_defaults()
432 k_sleep(K_USEC(interval_us)); in test_main()
460 k_sleep(K_USEC(interval_us)); in test_main_disable()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_sync.c217 uint32_t interval_us; in ull_sync_setup_from_sync_transfer() local
252 interval_us = interval * PERIODIC_INT_UNIT_US; in ull_sync_setup_from_sync_transfer()
255 if (sync->timeout != 0 && interval_us != 0) { in ull_sync_setup_from_sync_transfer()
257 USEC_PER_MSEC), interval_us); in ull_sync_setup_from_sync_transfer()
292 interval_us), USEC_PER_SEC); in ull_sync_setup_from_sync_transfer()
293 lll->window_widening_max_us = (interval_us >> 1) - EVENT_IFS_US; in ull_sync_setup_from_sync_transfer()
337 uint32_t sync_intervals = DIV_ROUND_UP(total_offset_us, interval_us); in ull_sync_setup_from_sync_transfer()
340 sync_offset_us = (sync_intervals * interval_us) - total_offset_us; in ull_sync_setup_from_sync_transfer()
358 da = (uint64_t)(local_sca_ppm + lll_clock_ppm_get(sca)) * interval_us; in ull_sync_setup_from_sync_transfer()
377 sync_offset_us += interval_us; in ull_sync_setup_from_sync_transfer()
[all …]
Dull_sync_iso.c420 uint32_t interval_us; in ull_sync_iso_setup() local
541 interval_us = lll->iso_interval * PERIODIC_INT_UNIT_US; in ull_sync_iso_setup()
545 interval_us); in ull_sync_iso_setup()
551 interval_us), USEC_PER_SEC); in ull_sync_iso_setup()
552 lll->window_widening_max_us = (interval_us >> 1) - EVENT_IFS_US; in ull_sync_iso_setup()
579 interval_us -= lll->window_widening_periodic_us; in ull_sync_iso_setup()
666 sync_iso_offset_us += interval_us - in ull_sync_iso_setup()
682 HAL_TICKER_US_TO_TICKS(interval_us), in ull_sync_iso_setup()
683 HAL_TICKER_REMAINDER(interval_us), in ull_sync_iso_setup()
Dull_adv.c1396 uint64_t interval_us; local
1501 interval_us = (uint64_t)adv->interval * ADV_INT_UNIT_US;
1509 aux->interval = DIV_ROUND_UP(interval_us +
1513 aux->interval = (interval_us * (adv->max_skip + 1))
2032 uint32_t interval_us = adv->interval * ADV_INT_UNIT_US; local
2041 ticks_adjust_minus = HAL_TICKER_US_TO_TICKS(interval_us) + adv->delay;
2044 if (adv->remain_duration_us > interval_us) {
2048 adv->remain_duration_us += interval_us +
2478 uint32_t interval_us = (uint64_t)adv->interval * ADV_INT_UNIT_US; local
2479 uint32_t elapsed_us = interval_us * (lazy + 1U) +
[all …]
Dull_adv_aux.c2602 uint32_t interval_us; in ull_adv_aux_start() local
2608 interval_us = aux->interval * PERIODIC_INT_UNIT_US; in ull_adv_aux_start()
2647 HAL_TICKER_US_TO_TICKS(interval_us), in ull_adv_aux_start()
2648 HAL_TICKER_REMAINDER(interval_us), TICKER_NULL_LAZY, in ull_adv_aux_start()
3160 uint32_t interval_us; in ull_adv_aux_lll_auxptr_fill() local
3163 interval_us = aux->interval * PERIODIC_INT_UNIT_US; in ull_adv_aux_lll_auxptr_fill()
3164 offset_us = offset_us + interval_us; in ull_adv_aux_lll_auxptr_fill()
3285 uint32_t interval_us; in mfy_aux_offset_get() local
3288 interval_us = aux->interval * PERIODIC_INT_UNIT_US; in mfy_aux_offset_get()
3289 offset_us = offset_us + interval_us; in mfy_aux_offset_get()
/Zephyr-latest/samples/bluetooth/periodic_sync/src/
Dmain.c102 uint32_t interval_us; in scan_recv() local
108 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(info->interval); in scan_recv()
110 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us); in scan_recv()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_receiver.c182 uint32_t interval_us; in interval_to_sync_timeout() local
186 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
188 BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * PA_SYNC_INTERVAL_TO_TIMEOUT_RATIO; in interval_to_sync_timeout()
/Zephyr-latest/samples/bluetooth/central_past/src/
Dmain.c112 uint32_t interval_us; in scan_recv() local
118 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(info->interval); in scan_recv()
120 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us); in scan_recv()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcommon.c235 uint32_t interval_us; in interval_to_sync_timeout() local
239 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
240 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * in interval_to_sync_timeout()
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dbap_broadcast_sink.c116 uint32_t interval_us; in interval_to_sync_timeout() local
120 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(interval); in interval_to_sync_timeout()
122 BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * PA_SYNC_INTERVAL_TO_TIMEOUT_RATIO; in interval_to_sync_timeout()
/Zephyr-latest/tests/drivers/adc/adc_api/src/
Dtest_adc.c196 .interval_us = CONFIG_ADC_API_SAMPLE_INTERVAL_US, in test_task_asynchronous_call()
255 .interval_us = 100 * 1000UL, in test_task_with_interval()
335 .interval_us = CONFIG_ADC_API_SAMPLE_INTERVAL_US, in test_task_repeated_samplings()
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_sink/src/
Dmain.c125 uint32_t interval_us; in interval_to_sync_timeout() local
129 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(interval); in interval_to_sync_timeout()
131 BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * PA_SYNC_INTERVAL_TO_TIMEOUT_RATIO; in interval_to_sync_timeout()
/Zephyr-latest/samples/bluetooth/direction_finding_connectionless_rx/src/
Dmain.c83 uint32_t interval_us; in sync_create_timeout_get() local
87 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(interval); in sync_create_timeout_get()
88 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * SYNC_CREATE_TIMEOUT_INTERVAL_NUM; in sync_create_timeout_get()
/Zephyr-latest/samples/drivers/adc/adc_sequence/src/
Dmain.c38 .interval_us = 0,
/Zephyr-latest/drivers/sensor/seeed/grove/
Dlight_sensor.c43 .interval_us = 12,
Dtemperature_sensor.c43 .interval_us = 15,
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c263 uint32_t interval_us; in interval_to_sync_timeout() local
267 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
268 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * in interval_to_sync_timeout()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c294 uint32_t interval_us; in interval_to_sync_timeout() local
298 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
299 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * in interval_to_sync_timeout()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_scan_delegator.c154 uint32_t interval_us; in interval_to_sync_timeout() local
158 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
159 timeout = BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * in interval_to_sync_timeout()
/Zephyr-latest/include/zephyr/drivers/
Dadc.h584 uint32_t interval_us; member
/Zephyr-latest/subsys/bluetooth/host/shell/
Diso.c52 uint32_t interval_us) in get_next_sn() argument
67 sn_incr = delta_us / interval_us; in get_next_sn()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_broadcast_sink.c960 uint32_t interval_us; in interval_to_sync_timeout() local
964 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(interval); in interval_to_sync_timeout()
966 BT_GAP_US_TO_PER_ADV_SYNC_TIMEOUT(interval_us) * PA_SYNC_INTERVAL_TO_TIMEOUT_RATIO; in interval_to_sync_timeout()

12