Home
last modified time | relevance | path

Searched refs:micro_ms2 (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.6.0/drivers/sensor/iis3dhhc/
Diis3dhhc.c43 int64_t micro_ms2; in iis3dhhc_convert() local
46 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()
47 val->val1 = micro_ms2 / 1000000LL; in iis3dhhc_convert()
48 val->val2 = micro_ms2 % 1000000LL; in iis3dhhc_convert()
/Zephyr-Core-3.6.0/subsys/sensing/sensor/phy_3d_sensor/
Dphy_3d_sensor.c53 int64_t micro_ms2 = sensor_value_to_micro(val); in accel_sensor_value_to_q31() local
54 int64_t micro_g = micro_ms2 * 1000000LL / SENSOR_G; in accel_sensor_value_to_q31()
64 int64_t micro_ms2 = micro_g * SENSOR_G / 1000000LL; in accel_q31_to_sensor_value() local
66 sensor_value_from_micro(val, micro_ms2); in accel_q31_to_sensor_value()
/Zephyr-Core-3.6.0/drivers/sensor/fxos8700/
Dfxos8700.c225 uint64_t micro_ms2 = abs(val->val1 * 1000000LL + val->val2); in fxos8700_set_mt_ths() local
226 uint64_t ths = micro_ms2 / FXOS8700_FF_MT_THS_SCALE; in fxos8700_set_mt_ths()
327 int64_t micro_ms2; in fxos8700_accel_convert() local
340 micro_ms2 = (raw * SENSOR_G) >> frac_bits; in fxos8700_accel_convert()
346 val->val1 = (int32_t) micro_ms2 / 1000000; in fxos8700_accel_convert()
347 val->val2 = (int32_t) micro_ms2 % 1000000; in fxos8700_accel_convert()
/Zephyr-Core-3.6.0/include/zephyr/drivers/
Dsensor.h1072 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() local
1074 if (micro_ms2 > 0) { in sensor_ms2_to_g()
1075 return (micro_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()
1077 return (micro_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()
1103 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() local
1105 return (micro_ms2 * 1000000LL) / SENSOR_G; in sensor_ms2_to_ug()
/Zephyr-Core-3.6.0/drivers/sensor/adxl372/
Dadxl372.c542 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl372_attr_set_thresh() local
545 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl372_attr_set_thresh()
610 int32_t micro_ms2 = value * (SENSOR_G / (16 * 1000 / 100)); in adxl372_accel_convert() local
612 val->val1 = micro_ms2 / 1000000; in adxl372_accel_convert()
613 val->val2 = micro_ms2 % 1000000; in adxl372_accel_convert()
/Zephyr-Core-3.6.0/drivers/sensor/adxl367/
Dadxl367.c731 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl367_attr_set_thresh() local
733 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl367_attr_set_thresh()
827 int64_t micro_ms2 = value * (SENSOR_G * 250 / 10000 * in adxl367_accel_convert() local
830 val->val1 = micro_ms2 / 1000000; in adxl367_accel_convert()
831 val->val2 = micro_ms2 % 1000000; in adxl367_accel_convert()
/Zephyr-Core-3.6.0/drivers/sensor/adxl362/
Dadxl362.c553 long micro_ms2 = accel * SENSOR_G / scale; in adxl362_accel_convert() local
557 val->val1 = micro_ms2 / 1000000; in adxl362_accel_convert()
558 val->val2 = micro_ms2 % 1000000; in adxl362_accel_convert()