Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/st/lis2dw12/
Dlis2dw12.c196 int64_t nano_ms2 = (ms2->val1 * 1000000LL + ms2->val2) * 1000LL; in sensor_ms2_to_mg() local
198 if (nano_ms2 > 0) { in sensor_ms2_to_mg()
199 return (nano_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_mg()
201 return (nano_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_mg()