Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:wanted

1504 int MPLSensor::setPedQuaternionRate(int64_t wanted)
1510 int(1000000000.f / wanted), mpu.ped_q_rate,
1512 res = write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted);
1514 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / wanted);
1648 int MPLSensor::set6AxisQuaternionRate(int64_t wanted)
1654 int(1000000000.f / wanted), mpu.six_axis_q_rate,
1656 res = write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted);
1658 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / wanted);
1726 int MPLSensor::setQuaternionRate(int64_t wanted)
1732 int(1000000000.f / wanted), mpu.three_axis_q_rate,
1734 res = write_sysfs_int(mpu.three_axis_q_rate, 1000000000.f / wanted);
1736 "HAL:DMP three axis rate %.2f Hz", 1000000000.f / wanted);
2368 int64_t wanted = 1000000000LL;
3290 int64_t wanted = 1000000000LL;
3312 int tempRate = wanted;
3318 wanted = wanted < ns ? wanted : ns;
3323 gyroRate = wanted;
3324 accelRate = wanted;
3325 compassRate = wanted;
3327 pressureRate = wanted;
3330 wanted_3rd_party_sensor = wanted;
3344 int64_t tempWanted = wanted;
3355 rateInus = (int)wanted / 1000LL;
3372 rateInus, 1000000000.f / wanted);
3387 gyroRate = wanted;
3388 accelRate = wanted;
3389 compassRate = wanted;
3391 wanted_3rd_party_sensor = wanted;
3392 rateInus = (int)wanted / 1000LL;
3395 if (wanted <= RATE_200HZ) {
3403 rateInus, 1000000000.f / wanted);
3468 wanted = (mDelays[Gyro] <= mDelays[RawGyro]?
3472 inv_set_gyro_sample_rate((int)wanted/1000LL);
3474 "HAL:MPL gyro sample rate: (mpl)=%d us", int(wanted/1000LL));
3476 1000000000.f / wanted, mpu.gyro_rate, getTimestamp());
3478 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);
3484 wanted = mDelays[Gyro];
3487 wanted = mDelays[RawGyro];
3489 wanted = mDelays[Accelerometer];
3492 inv_set_accel_sample_rate((int)wanted/1000LL);
3494 int(wanted/1000LL));
3496 1000000000.f / wanted, mpu.accel_rate,
3501 res = write_attribute_sensor(tempFd, wanted / 1000000L);
3505 res = write_attribute_sensor(tempFd, 1000000000.f/wanted);
3516 wanted = compassWanted;
3520 wanted = mDelays[Gyro];
3523 wanted = mDelays[RawGyro];
3526 wanted = mDelays[Accelerometer];
3528 wanted = compassWanted;
3533 mCompassSensor->setDelay(ID_M, wanted);
4590 int MPLSensor::getDmpRate(int64_t *wanted)
4596 setQuaternionRate(*wanted);
4598 set6AxisQuaternionRate(*wanted);
4599 setPedQuaternionRate(*wanted);
4602 *wanted= RATE_200HZ;
4604 "HAL:DMP rate= %.2f Hz", 1000000000.f / *wanted);
5670 int64_t wanted = 1000000000LL, ns = 0;
5678 wanted = (ns < wanted) ? ns : wanted;
5757 wanted = mBatchDelays[GameRotationVector];
5758 setPedQuaternionRate(wanted);
5787 wanted = mBatchDelays[GameRotationVector];
5788 set6AxisQuaternionRate(wanted);
5902 int64_t wanted;
5915 wanted = mBatchDelays[GameRotationVector];
5916 setPedQuaternionRate(wanted);
5925 wanted = mBatchDelays[GameRotationVector];
5926 set6AxisQuaternionRate(wanted);
6383 int64_t wanted = 1000000000LL;
6387 wanted = wanted < ns ? wanted : ns;
6390 gyroRate = wanted;
6391 accelRate = wanted;
6392 compassRate = wanted;
6394 pressureRate = wanted;
6438 int64_t wanted = 1000000000LL;
6459 if ((wanted == ns) && (i != Pressure)) {
6465 wanted = wanted < ns ? wanted : ns;
6469 resetRate = wanted;
6470 gyroRate = wanted;
6471 accelRate = wanted;
6472 compassRate = wanted;
6474 pressureRate = wanted;
6500 getDmpRate (&wanted);
6503 1000000000.f / wanted, mpu.gyro_fifo_rate,
6506 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);