Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/st/iis3dhhc/
Diis3dhhc.c42 int64_t micro_ms2; in iis3dhhc_convert() local
45 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()
46 val->val1 = micro_ms2 / 1000000LL; in iis3dhhc_convert()
47 val->val2 = micro_ms2 % 1000000LL; in iis3dhhc_convert()
/Zephyr-latest/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-latest/drivers/sensor/nxp/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-latest/include/zephyr/drivers/
Dsensor.h1187 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() local
1189 if (micro_ms2 > 0) { in sensor_ms2_to_g()
1190 return (micro_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()
1192 return (micro_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()
1218 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() local
1220 return (micro_ms2 * 1000000LL) / SENSOR_G; in sensor_ms2_to_ug()
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372.c593 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl372_attr_set_thresh() local
596 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl372_attr_set_thresh()
661 int32_t micro_ms2 = value * (SENSOR_G / (16 * 1000 / 100)); in adxl372_accel_convert() local
663 val->val1 = micro_ms2 / 1000000; in adxl372_accel_convert()
664 val->val2 = micro_ms2 % 1000000; in adxl372_accel_convert()
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c286 int64_t micro_ms2; in fxls8974_accel_convert() local
289 micro_ms2 = (raw * SENSOR_G) >> fsr; in fxls8974_accel_convert()
295 val->val1 = (int32_t) micro_ms2 / 1000000; in fxls8974_accel_convert()
296 val->val2 = (int32_t) micro_ms2 % 1000000; in fxls8974_accel_convert()
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367.c795 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl367_attr_set_thresh() local
797 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl367_attr_set_thresh()
893 int64_t micro_ms2 = value * (SENSOR_G * 250 / 1000 * in adxl367_accel_convert() local
896 val->val1 = micro_ms2 / 1000000; in adxl367_accel_convert()
897 val->val2 = micro_ms2 % 1000000; in adxl367_accel_convert()
/Zephyr-latest/drivers/sensor/st/iis328dq/
Diis328dq.c177 int64_t micro_ms2 = (val->val1 * INT64_C(1000000)) + val->val2; in iis328dq_set_threshold() local
181 int16_t val_raw = (micro_ms2 * 1000LL) / SENSOR_G / mg_per_digit; in iis328dq_set_threshold()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362.c604 long micro_ms2 = accel * SENSOR_G / scale; in adxl362_accel_convert() local
608 val->val1 = micro_ms2 / 1000000; in adxl362_accel_convert()
609 val->val2 = micro_ms2 % 1000000; in adxl362_accel_convert()