Home
last modified time | relevance | path

Searched refs:SENSOR_G (Results 1 – 25 of 36) sorted by relevance

12

/Zephyr-latest/drivers/sensor/bosch/bma280/
Dbma280.h50 #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/
Dsensor.h1170 #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/
Dlis2de12.h32 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
/Zephyr-latest/drivers/sensor/st/lis2du12/
Dlis2du12.h35 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
/Zephyr-latest/drivers/sensor/memsic/mc3419/
Dmc3419.h43 #define SENSOR_GRAVITY_DOUBLE (SENSOR_G / 1000000.0)
/Zephyr-latest/drivers/sensor/st/lis2dw12/
Dlis2dw12.c90 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/
Dicm42688_emul.c189 *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()
Dicm42688.h529 int64_t in_ms = in * SENSOR_G; in icm42688_accel_ms()
/Zephyr-latest/tests/drivers/sensor/generic/src/
Dmain.c280 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/
Dbmi160_trigger.c205 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/
Dphy_3d_sensor.c54 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/
Diis328dq.c112 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/
Diis3dhhc.c45 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700.h87 #define FXOS8700_FF_MT_THS_SCALE (SENSOR_G * 63000LL / 1000000LL)
/Zephyr-latest/drivers/sensor/st/iis2dh/
Diis2dh.c111 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000000LL; in iis2dh_convert()
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050.c25 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu6050_convert_accel()
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_decoder.c11 #define SENSOR_SCALING_FACTOR (SENSOR_G / (16 * 1000 / 100))
Dadxl345.c315 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/
Dlis2dux12.c183 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2dux12_convert()
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c316 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/
Dadxl372.c596 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/
Dlis2ds12.c220 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2ds12_convert()
/Zephyr-latest/drivers/sensor/st/lsm6ds0/
Dlsm6ds0.h315 #define SENSOR_G_DOUBLE (SENSOR_G / 1000000.0)
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c63 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu9250_convert_accel()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x.h426 #define BMI08X_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL)

12