Home
last modified time | relevance | path

Searched refs:micro_g (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/subsys/sensing/sensor/phy_3d_sensor/
Dphy_3d_sensor.c54 int64_t micro_g = micro_ms2 * 1000000LL / SENSOR_G; in accel_sensor_value_to_q31() local
56 return scaled_int64_to_shifted_q31(micro_g, 1000000LL, in accel_sensor_value_to_q31()
62 int64_t micro_g = shifted_q31_to_scaled_int64(q, in accel_q31_to_sensor_value() local
64 int64_t micro_ms2 = micro_g * SENSOR_G / 1000000LL; in accel_q31_to_sensor_value()
/Zephyr-Core-3.7.0/drivers/sensor/nxp/fxos8700/
Dfxos8700.c352 int32_t micro_g; in fxos8700_magn_convert() local
357 micro_g = raw * 1000; in fxos8700_magn_convert()
359 val->val1 = micro_g / 1000000; in fxos8700_magn_convert()
360 val->val2 = micro_g % 1000000; in fxos8700_magn_convert()