Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 54) sorted by relevance

123

/Zephyr-latest/samples/shields/npm1300_ek/src/
Dmain.c99 abs(current.val1), abs(current.val2) / 100); in read_sensors()
101 printk("T: %s%d.%02d\n", ((temp.val1 < 0) || (temp.val2 < 0)) ? "-" : "", abs(temp.val1), in read_sensors()
102 abs(temp.val2) / 10000); in read_sensors()
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/
Dcrt0.S9 # abs 0x0000 - entry point after bootloader
16 # abs 0x0080 - will be checked by bootloader
20 # abs 0x0100 - text
/Zephyr-latest/drivers/gnss/
Dgnss_dump.c113 alt_sign, abs(nav_data->altitude) / 1000, abs(nav_data->altitude) % 1000); in gnss_dump_nav_data()
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
Ddata_load_test.py62 abs(padding_data1[0].tolist()[i][j] - expected_data1_0[i][j]),
67 abs(padding_data1[1].tolist()[i][j] - expected_data1_1[i][j]),
/Zephyr-latest/tests/boards/intel_adsp/smoke/src/
Dmain.c41 diff = abs(hz - CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC); in ZTEST()
Dcpus.c123 int32_t diff = MAX(1, abs(clk_ratios[i] - clk_ratios[cpu])); in core_smoke()
/Zephyr-latest/tests/boards/mtk_adsp/src/
Dmain.c49 int32_t err = hz0 / abs((int32_t)(hz0 - hz)); in ZTEST()
/Zephyr-latest/lib/libc/minimal/include/
Dstdlib.h60 static inline int abs(int __n) in abs() function
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Ddut.c111 int64_t diff_to_expected_ms = abs(time_diff_ms - expected_conn_timeout_ms); in dut_procedure_connect_timeout()
/Zephyr-latest/drivers/input/
Dinput_adc_keys.c86 diff = abs(sample_mv - cfg->code_cfg[i].press_mv); in adc_keys_process()
93 diff = abs(sample_mv - cfg->keyup_mv); in adc_keys_process()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dbuild_date.c149 abs(expected_time_seconds - received_time_seconds)); in ZTEST()
246 abs(expected_time_seconds - received_time_seconds)); in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/
Dtester.c70 if (abs(diff_ms - rpa_timeout_ms) > (rpa_timeout_ms / 10)) { in cb_expect_rpa()
/Zephyr-latest/drivers/sensor/nordic/temp/
Dtemp_nrfs.c253 val->val2 = (abs(uval) % 100) * 10000; in api_channel_get()
255 LOG_DBG("Temperature: %d.%02u[C]", uval / 100, abs(uval) % 100); in api_channel_get()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/peripheral/src/
Dtester_rpa_rotation.c101 if (abs(diff_ms - rpa_timeout_ms) > (rpa_timeout_ms / 10)) { in test_address()
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/src/
Dmath_ops.c21 if (abs(in_a[i] - in_b[i]) > threshold) { in test_near_equal_q15()
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h241 if (abs(a[index] - b[index]) > threshold) { in test_near_equal_q31()
255 if (abs(a[index] - b[index]) > threshold) { in test_near_equal_q15()
269 if (abs(a[index] - b[index]) > threshold) { in test_near_equal_q7()
/Zephyr-latest/tests/drivers/sensor/temp_sensor/src/
Dmain.c35 temp_val/100, abs(temp_val) % 100); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py84 assert abs(time_diff) < seconds * max_drift_ppm / 1_000_000
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688.h443 *out_ug = ((abs(in) - (abs((*out_g)) * sensitivity)) * 1000000) / sensitivity; in icm42688_accel_g()
/Zephyr-latest/drivers/clock_control/
Dnrf_clock_calibration.c219 diff = abs(temperature - prev_temperature); in measure_temperature()
/Zephyr-latest/drivers/pwm/
Dpwm_mchp_xec.c227 if (abs((int)target_freq - (int)freq_h) < in xec_compare_params()
228 abs((int)target_freq - (int)freq_l)) { in xec_compare_params()
/Zephyr-latest/scripts/coccinelle/
Dsymbols.txt2 abs
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/
Dmain.c80 const int64_t diff_to_expected_ms = abs(time_diff_ms - expected_conn_timeout_ms); in test_central_connect_timeout_with_timeout()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.c42 v = abs(val1); in lwm2m_float_to_b32()
57 v = abs(val2); in lwm2m_float_to_b32()
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c248 abs((int)value[sample].val1), abs((int)value[sample].val2), in sensor_submit_fallback_sync()

123