Home
last modified time | relevance | path

Searched refs:dur (Results 1 – 20 of 20) sorted by relevance

/Zephyr-Core-3.7.0/tests/kernel/fifo/fifo_api/src/
Dtest_fifo_cancel.c32 uint32_t dur = k_uptime_get_32() - start_t; in tfifo_thread_thread() local
49 zassert_true(dur < 80, in tfifo_thread_thread()
/Zephyr-Core-3.7.0/tests/bsim/
Drun_parallel.sh120 dur=$(($SECONDS - $start))
122 name=\"bsim tests\" skip=\"0\" tests=\"$n_cases\" time=\"$dur\">" \
/Zephyr-Core-3.7.0/drivers/sensor/st/iis328dq/
Diis328dq.c204 static int iis328dq_set_duration(const struct device *dev, uint16_t dur) in iis328dq_set_duration() argument
210 if (dur > 0x7F) { in iis328dq_set_duration()
211 LOG_WRN("Duration value %u too large", dur); in iis328dq_set_duration()
215 err = iis328dq_int1_dur_set(ctx, dur); in iis328dq_set_duration()
217 LOG_ERR("Could not set INT1_DUR to 0x%02X, error %d", dur, err); in iis328dq_set_duration()
220 err = iis328dq_int2_dur_set(ctx, dur); in iis328dq_set_duration()
222 LOG_ERR("Could not set INT2_DUR to 0x%02X, error %d", dur, err); in iis328dq_set_duration()
/Zephyr-Core-3.7.0/tests/kernel/sleep/src/
Dmain.c94 static int sleep_time_valid(uint32_t start, uint32_t end, uint32_t dur) in sleep_time_valid() argument
98 return dt >= dur && dt <= (dur + TICK_MARGIN); in sleep_time_valid()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bme680/
Dbme680.c198 static uint8_t bme680_calc_gas_wait(uint16_t dur) in bme680_calc_gas_wait() argument
202 if (dur >= 0xfc0) { in bme680_calc_gas_wait()
205 while (dur > 0x3F) { in bme680_calc_gas_wait()
206 dur = dur / 4; in bme680_calc_gas_wait()
209 durval = dur + (factor * 64); in bme680_calc_gas_wait()
/Zephyr-Core-3.7.0/samples/kernel/metairq_dispatch/src/
Dmain.c205 uint32_t dur = k_cycle_get_32() - start; in thread_fn() local
217 start - m.timestamp, m.proc_cyc, dur); in thread_fn()
/Zephyr-Core-3.7.0/tests/kernel/context/src/
Dmain.c227 uint32_t dur = k_ms_to_ticks_ceil32(10); in _test_kernel_cpu_idle() local
239 k_timer_start(&idle_timer, K_TICKS(dur), K_NO_WAIT); in _test_kernel_cpu_idle()
252 zassert_true(abs((int32_t) (dt - dur)) <= slop, in _test_kernel_cpu_idle()
254 dt, dur); in _test_kernel_cpu_idle()
/Zephyr-Core-3.7.0/drivers/sensor/st/iis2dlpc/
Diis2dlpc.c156 static int iis2dlpc_set_slope_dur(const struct device *dev, uint16_t dur) in iis2dlpc_set_slope_dur() argument
163 val = (dur & 0x0F); in iis2dlpc_set_slope_dur()
170 val = ((dur >> 5) & 0x03); in iis2dlpc_set_slope_dur()
/Zephyr-Core-3.7.0/tests/subsys/openthread/
Dradio_test.c159 const uint8_t dur = 100; in ZTEST() local
165 zassert_equal(otPlatRadioEnergyScan(ot, chan, dur), OT_ERROR_NONE, in ZTEST()
168 zassert_equal(dur, scan_mock_fake.arg1_val); in ZTEST()
191 const uint8_t dur = 100; in ZTEST() local
198 zassert_equal(otPlatRadioEnergyScan(ot, chan, dur), OT_ERROR_NONE, in ZTEST()
201 zassert_equal(dur, scan_mock_fake.arg1_val); in ZTEST()
217 zassert_equal(dur, scan_mock_fake.arg1_val); in ZTEST()
/Zephyr-Core-3.7.0/tests/bluetooth/tester/src/audio/btp/
Dbtp_mcp.h196 int32_t dur; member
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/audio/
Dmcc.h119 typedef void (*bt_mcc_read_track_duration_cb)(struct bt_conn *conn, int err, int32_t dur);
/Zephyr-Core-3.7.0/tests/bluetooth/tester/src/audio/
Dbtp_mcp.c149 static void btp_send_mcp_track_duration_ev(struct bt_conn *conn, uint8_t status, int32_t dur) in btp_send_mcp_track_duration_ev() argument
156 ev.dur = sys_cpu_to_le32(dur); in btp_send_mcp_track_duration_ev()
449 static void mcc_read_track_duration_cb(struct bt_conn *conn, int err, int32_t dur) in mcc_read_track_duration_cb() argument
453 btp_send_mcp_track_duration_ev(conn, err ? BTP_STATUS_FAILED : BTP_STATUS_SUCCESS, dur); in mcc_read_track_duration_cb()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/src/
Dtest_replay_cache.c44 static void tx_started(uint16_t dur, int err, void *data) in tx_started() argument
Dmesh_test.c408 static void tx_started(uint16_t dur, int err, void *data) in tx_started() argument
/Zephyr-Core-3.7.0/doc/connectivity/bluetooth/api/audio/shell/
Dbap.rst49 [dur <duration>]
331 [dur <duration>]
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/
Ddfu_cli.c286 static void tx_start(uint16_t dur, int err, void *cb_data);
294 static void tx_start(uint16_t dur, int err, void *cb_data) in tx_start() argument
/Zephyr-Core-3.7.0/subsys/bluetooth/audio/
Dmcc.c246 int32_t dur = 0; in mcc_track_duration_cb() local
250 } else if ((!data) || (length != sizeof(dur))) { in mcc_track_duration_cb()
254 dur = sys_get_le32((uint8_t *)data); in mcc_track_duration_cb()
255 LOG_DBG("Track duration: %d", dur); in mcc_track_duration_cb()
260 mcc_cb->read_track_duration(conn, cb_err, dur); in mcc_track_duration_cb()
Dmedia_proxy.c331 static void mcc_read_track_duration_cb(struct bt_conn *conn, int err, int32_t dur) in mcc_read_track_duration_cb() argument
338 mprx.ctrlr.cbs->track_duration_recv(&mprx.remote_player, err, dur); in mcc_read_track_duration_cb()
/Zephyr-Core-3.7.0/subsys/bluetooth/audio/shell/
Dmcc.c125 static void mcc_read_track_duration_cb(struct bt_conn *conn, int err, int32_t dur) in mcc_read_track_duration_cb() argument
132 shell_print(ctx_shell, "Track duration: %d", dur); in mcc_read_track_duration_cb()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/audio/src/
Dmcc_test.c144 static void mcc_read_track_duration_cb(struct bt_conn *conn, int err, int32_t dur) in mcc_read_track_duration_cb() argument