Home | History | Annotate | Download | only in libsensors_iio

Lines Matching defs:compassRate

3564         int64_t compassRate;
3586 compassRate = wanted;
3642 rateInus, 1000000000.f / compassRate);
3650 compassRate = wanted;
3721 if (compassRate < mCompassSensor->getMinDelay() * 1000LL) {
3722 compassRate = mCompassSensor->getMinDelay() * 1000LL;
3724 mCompassSensor->setDelay(ID_M, compassRate);
6722 int64_t compassRate;
6742 compassRate = mBatchDelays[MagneticField];
6744 compassRate = (mBatchDelays[MagneticField] <= mBatchDelays[RawMagneticField]) ?
6772 mplCompassRate = (int) compassRate / 1000LL;
6785 "HAL:MPL compass sample rate: (mpl)=%d us (mpu)=%.2f Hz", mplCompassRate, 1000000000.f / compassRate);
6798 compassRate = wanted;
6806 *compass_rate = compassRate;
6815 int MPLSensor::MPLSensor::setBatchDataRates(int64_t gyroRate, int64_t accelRate, int64_t compassRate, int64_t pressureRate, int64_t quatRate)
6846 if (compassRate < mCompassSensor->getMinDelay() * 1000LL) {
6847 compassRate = mCompassSensor->getMinDelay() * 1000LL;
6849 mCompassSensor->setDelay(ID_M, compassRate);
6858 mCompassBatchRate = compassRate;
6875 int64_t compassRate;
6879 calcBatchDataRates(&gyroRate, &accelRate, &compassRate, &pressureRate, &quatRate);
6880 setBatchDataRates(gyroRate, accelRate, compassRate, pressureRate, quatRate);
6885 int MPLSensor::calctDataRates(int64_t *resetRate, int64_t *gyroRate, int64_t *accelRate, int64_t *compassRate, int64_t *pressureRate)
6916 *compassRate = wanted;
6922 int MPLSensor::resetDataRates(int64_t resetRate, int64_t gyroRate, int64_t accelRate, int64_t compassRate, int64_t pressureRate)
6935 inv_set_compass_sample_rate((int)compassRate/1000LL);
6952 compassRate/1000LL, 1000000000.f / compassRate);
6983 if (compassRate < mCompassSensor->getMinDelay() * 1000LL) {
6984 compassRate = mCompassSensor->getMinDelay() * 1000LL;
6986 mCompassSensor->setDelay(ID_M, compassRate);
7005 mCompassRate = compassRate;
7021 int64_t compassRate;
7024 res = calctDataRates(&resetRate, &gyroRate, &accelRate, &compassRate, &pressureRate);
7028 resetDataRates(resetRate, gyroRate, accelRate, compassRate, pressureRate);