Lines Matching full:sensitivity
17 /* Sensitivity of the accelerometer, indexed by the raw full scale value. Unit is µg/ LSB */
21 * Sensitivity of the gyroscope, indexed by the raw full scale value.
22 * The value here is just a factor applied to GAIN_UNIT_G, as the sensitivity is
442 uint32_t sensitivity) in lsm9ds1_accel_convert() argument
444 /* Sensitivity is exposed in ug/LSB */ in lsm9ds1_accel_convert()
446 sensor_ug_to_ms2(raw_val * sensitivity, val); in lsm9ds1_accel_convert()
450 struct lsm9ds1_data *data, uint32_t sensitivity) in lsm9ds1_accel_get_channel() argument
456 lsm9ds1_accel_convert(val, data->acc[0], sensitivity); in lsm9ds1_accel_get_channel()
459 lsm9ds1_accel_convert(val, data->acc[1], sensitivity); in lsm9ds1_accel_get_channel()
462 lsm9ds1_accel_convert(val, data->acc[2], sensitivity); in lsm9ds1_accel_get_channel()
466 lsm9ds1_accel_convert(val++, data->acc[i], sensitivity); in lsm9ds1_accel_get_channel()
482 static inline void lsm9ds1_gyro_convert(struct sensor_value *val, int raw_val, uint32_t sensitivity) in lsm9ds1_gyro_convert() argument
484 /* Sensitivity is exposed in udps/LSB */ in lsm9ds1_gyro_convert()
486 sensor_10udegrees_to_rad((raw_val * (int32_t)sensitivity) / 10, val); in lsm9ds1_gyro_convert()
490 struct lsm9ds1_data *data, uint32_t sensitivity) in lsm9ds1_gyro_get_channel() argument
496 lsm9ds1_gyro_convert(val, data->gyro[0], sensitivity); in lsm9ds1_gyro_get_channel()
499 lsm9ds1_gyro_convert(val, data->gyro[1], sensitivity); in lsm9ds1_gyro_get_channel()
502 lsm9ds1_gyro_convert(val, data->gyro[2], sensitivity); in lsm9ds1_gyro_get_channel()
506 lsm9ds1_gyro_convert(val++, data->gyro[i], sensitivity); in lsm9ds1_gyro_get_channel()