/Zephyr-latest/drivers/sensor/bosch/bma280/ |
D | bma280.h | 50 #define BMA280_PMU_FULL_RANGE (4 * SENSOR_G) 53 #define BMA280_PMU_FULL_RANGE (8 * SENSOR_G) 56 #define BMA280_PMU_FULL_RANGE (16 * SENSOR_G) 59 #define BMA280_PMU_FULL_RANGE (32 * SENSOR_G)
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 1170 #define SENSOR_G 9806650LL macro 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() 1204 ms2->val1 = ((int64_t)g * SENSOR_G) / 1000000LL; in sensor_g_to_ms2() 1205 ms2->val2 = ((int64_t)g * SENSOR_G) % 1000000LL; in sensor_g_to_ms2() 1220 return (micro_ms2 * 1000000LL) / SENSOR_G; in sensor_ms2_to_ug() 1231 ms2->val1 = ((int64_t)ug * SENSOR_G / 1000000LL) / 1000000LL; in sensor_ug_to_ms2() 1232 ms2->val2 = ((int64_t)ug * SENSOR_G / 1000000LL) % 1000000LL; in sensor_ug_to_ms2()
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.h | 32 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.h | 35 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
|
/Zephyr-latest/drivers/sensor/memsic/mc3419/ |
D | mc3419.h | 43 #define SENSOR_GRAVITY_DOUBLE (SENSOR_G / 1000000.0)
|
/Zephyr-latest/drivers/sensor/st/lis2dw12/ |
D | lis2dw12.c | 90 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000000LL; in lis2dw12_convert() 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()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_emul.c | 189 *epsilon = (3 * SENSOR_G * Q31_SCALE / sensitivity / 1000000LL / 2) >> *shift; in icm42688_emul_get_accel_ranges() 190 *upper = (fs_g * SENSOR_G * Q31_SCALE / 1000000LL) >> *shift; in icm42688_emul_get_accel_ranges() 368 reg_val = ((value_unshifted * sensitivity / Q31_SCALE) * 1000000LL) / SENSOR_G; in icm42688_emul_backend_set_channel()
|
D | icm42688.h | 529 int64_t in_ms = in * SENSOR_G; in icm42688_accel_ms()
|
/Zephyr-latest/tests/drivers/sensor/generic/src/ |
D | main.c | 280 zassert_equal(data.val1, SENSOR_G/1000000LL, in ZTEST() 282 zassert_equal(data.val2, SENSOR_G%(data.val1 * 1000000LL), in ZTEST()
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | bmi160_trigger.c | 205 if (slope_th_ums2 > (acc_range_g / 2 * SENSOR_G)) { in bmi160_acc_slope_config() 209 reg_val = (slope_th_ums2 - 1) * 512U / (acc_range_g * SENSOR_G); in bmi160_acc_slope_config()
|
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/ |
D | phy_3d_sensor.c | 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()
|
/Zephyr-latest/drivers/sensor/st/iis328dq/ |
D | iis328dq.c | 112 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000LL; in iis328dq_convert() 181 int16_t val_raw = (micro_ms2 * 1000LL) / SENSOR_G / mg_per_digit; in iis328dq_set_threshold()
|
/Zephyr-latest/drivers/sensor/st/iis3dhhc/ |
D | iis3dhhc.c | 45 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()
|
/Zephyr-latest/drivers/sensor/nxp/fxos8700/ |
D | fxos8700.h | 87 #define FXOS8700_FF_MT_THS_SCALE (SENSOR_G * 63000LL / 1000000LL)
|
/Zephyr-latest/drivers/sensor/st/iis2dh/ |
D | iis2dh.c | 111 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000000LL; in iis2dh_convert()
|
/Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
D | mpu6050.c | 25 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu6050_convert_accel()
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345_decoder.c | 11 #define SENSOR_SCALING_FACTOR (SENSOR_G / (16 * 1000 / 100))
|
D | adxl345.c | 315 val->val1 = ((sample * SENSOR_G) / 32) / 1000000; in adxl345_accel_convert() 316 val->val2 = ((sample * SENSOR_G) / 32) % 1000000; in adxl345_accel_convert()
|
/Zephyr-latest/drivers/sensor/st/lis2dux12/ |
D | lis2dux12.c | 183 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2dux12_convert()
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh_trigger.c | 316 if ((slope_th_ums2 - 1) > (range_g * SENSOR_G)) { in lis2dh_acc_slope_config() 321 reg_val = 128 / range_g * (slope_th_ums2 - 1) / SENSOR_G; in lis2dh_acc_slope_config()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372.c | 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()
|
/Zephyr-latest/drivers/sensor/st/lis2ds12/ |
D | lis2ds12.c | 220 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2ds12_convert()
|
/Zephyr-latest/drivers/sensor/st/lsm6ds0/ |
D | lsm6ds0.h | 315 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | mpu9250.c | 63 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu9250_convert_accel()
|
/Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
D | bmi08x.h | 426 #define BMI08X_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL)
|