Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:wanted

2331     int64_t wanted = 1000000000LL;
3206 int64_t wanted = 1000000000LL;
3226 int tempRate = wanted;
3232 wanted = wanted < ns ? wanted : ns;
3243 gyroRate = wanted;
3244 accelRate = wanted;
3245 compassRate = wanted;
3246 pressureRate = wanted;
3248 wanted_3rd_party_sensor = wanted;
3253 gyroRate = wanted;
3254 accelRate = wanted;
3255 compassRate = wanted;
3256 pressureRate = wanted;
3258 wanted_3rd_party_sensor = wanted;
3273 int64_t tempWanted = wanted;
3284 rateInus = (int)wanted / 1000LL;
3307 gyroRate = wanted;
3308 accelRate = wanted;
3309 compassRate = wanted;
3311 wanted_3rd_party_sensor = wanted;
3312 rateInus = (int)wanted / 1000LL;
3329 if (wanted <= RATE_200HZ) {
3337 wanted);
3407 wanted = 20000000LLU;
3408 res = write_attribute_sensor(tempFd, wanted);
3417 wanted = (mDelays[Gyro] <= mDelays[RawGyro]?
3426 inv_set_gyro_sample_rate((int)wanted/1000LL);
3428 "HAL:MPL gyro sample rate: (mpl)=%d us", int(wanted/1000LL));
3430 1000000000.f / wanted, mpu.gyro_rate, getTimestamp());
3432 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);
3438 wanted = mDelays[Accelerometer];
3441 wanted = mDelays[Gyro];
3444 wanted = mDelays[RawGyro];
3446 wanted = mDelays[Accelerometer];
3455 inv_set_accel_sample_rate((int)wanted/1000LL);
3457 int(wanted/1000LL));
3461 1000000000.f / wanted, mpu.accel_rate,
3466 res = write_attribute_sensor(tempFd, wanted / 1000000L);
3470 res = write_attribute_sensor(tempFd, 1000000000.f/wanted);
3481 wanted = compassWanted;
3484 wanted = compassWanted;
3488 wanted = mDelays[Gyro];
3491 wanted = mDelays[RawGyro];
3494 wanted = mDelays[Accelerometer];
3496 wanted = compassWanted;
3506 mCompassSensor->setDelay(ID_M, wanted);
4455 int MPLSensor::getDmpRate(int64_t *wanted)
4462 int(1000000000.f / *wanted), mpu.three_axis_q_rate,
4464 write_sysfs_int(mpu.three_axis_q_rate, 1000000000.f / *wanted);
4466 "HAL:DMP three axis rate %.2f Hz", 1000000000.f / *wanted);
4469 int(1000000000.f / *wanted), mpu.six_axis_q_rate,
4471 write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / *wanted);
4473 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / *wanted);
4476 int(1000000000.f / *wanted), mpu.ped_q_rate,
4478 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / *wanted);
4480 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / *wanted);
4483 *wanted= RATE_200HZ;
4485 "HAL:DMP rate= %.2f Hz", 1000000000.f / *wanted);
5581 int64_t wanted = 1000000000LL, ns = 0;
5589 wanted = (ns < wanted) ? ns : wanted;
5670 (1000000000.f / wanted) * ((float)timeout / 1000000000.f));
5677 timeout, timeoutInMs, wanted);
5708 wanted = mBatchDelays[GameRotationVector];
5711 int(1000000000.f / wanted), mpu.ped_q_rate,
5713 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted);
5715 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / wanted);
5741 wanted = mBatchDelays[GameRotationVector];
5744 int(1000000000.f / wanted), mpu.six_axis_q_rate,
5746 write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted);
5748 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / wanted);
6275 int64_t wanted = 1000000000LL;
6279 wanted = wanted < ns ? wanted : ns;
6282 gyroRate = wanted;
6283 accelRate = wanted;
6284 compassRate = wanted;
6285 pressureRate = wanted;
6324 int64_t wanted = 1000000000LL;
6342 if ((wanted == ns) && (i != Pressure)) {
6347 wanted = wanted < ns ? wanted : ns;
6351 gyroRate = wanted;
6352 accelRate = wanted;
6353 compassRate = wanted;
6354 pressureRate = wanted;
6372 getDmpRate (&wanted);
6375 1000000000.f / wanted, mpu.gyro_fifo_rate,
6378 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);