Lines Matching refs:mpu
208 LOGV_IF(EXTRA_VERBOSE, "HAL:gyro temperature path: %s", mpu.temperature); in MPLSensor()
209 gyro_temperature_fd = open(mpu.temperature, O_RDONLY); in MPLSensor()
214 "HAL:temperature_fd opened: %s", mpu.temperature); in MPLSensor()
221 "HAL:sysfs:cat %s (%lld)", mpu.gyro_fsr, getTimestamp()); in MPLSensor()
223 fd = open(mpu.gyro_fsr, O_RDONLY); in MPLSensor()
242 "HAL:sysfs:cat %s (%lld)", mpu.in_gyro_self_test_scale, getTimestamp()); in MPLSensor()
243 fd = open(mpu.in_gyro_self_test_scale, O_RDONLY); in MPLSensor()
262 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro x offset path: %s", mpu.in_gyro_x_offset); in MPLSensor()
263 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro y offset path: %s", mpu.in_gyro_y_offset); in MPLSensor()
264 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro z offset path: %s", mpu.in_gyro_z_offset); in MPLSensor()
265 gyro_x_offset_fd = open(mpu.in_gyro_x_offset, O_RDWR); in MPLSensor()
266 gyro_y_offset_fd = open(mpu.in_gyro_y_offset, O_RDWR); in MPLSensor()
267 gyro_z_offset_fd = open(mpu.in_gyro_z_offset, O_RDWR); in MPLSensor()
281 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro x dmp bias path: %s", mpu.in_gyro_x_dmp_bias); in MPLSensor()
282 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro y dmp bias path: %s", mpu.in_gyro_y_dmp_bias); in MPLSensor()
283 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro z dmp bias path: %s", mpu.in_gyro_z_dmp_bias); in MPLSensor()
284 gyro_x_dmp_bias_fd = open(mpu.in_gyro_x_dmp_bias, O_RDWR); in MPLSensor()
285 gyro_y_dmp_bias_fd = open(mpu.in_gyro_y_dmp_bias, O_RDWR); in MPLSensor()
286 gyro_z_dmp_bias_fd = open(mpu.in_gyro_z_dmp_bias, O_RDWR); in MPLSensor()
300 "HAL:sysfs:cat %s (%lld)", mpu.accel_fsr, getTimestamp()); in MPLSensor()
302 fd = open(mpu.accel_fsr, O_RDONLY); in MPLSensor()
321 "HAL:sysfs:cat %s (%lld)", mpu.in_accel_self_test_scale, getTimestamp()); in MPLSensor()
322 fd = open(mpu.in_accel_self_test_scale, O_RDONLY); in MPLSensor()
341 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel x offset path: %s", mpu.in_accel_x_offset); in MPLSensor()
342 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel y offset path: %s", mpu.in_accel_y_offset); in MPLSensor()
343 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel z offset path: %s", mpu.in_accel_z_offset); in MPLSensor()
344 accel_x_offset_fd = open(mpu.in_accel_x_offset, O_RDWR); in MPLSensor()
345 accel_y_offset_fd = open(mpu.in_accel_y_offset, O_RDWR); in MPLSensor()
346 accel_z_offset_fd = open(mpu.in_accel_z_offset, O_RDWR); in MPLSensor()
358 LOGV_IF(EXTRA_VERBOSE, "HAL:accel x dmp bias path: %s", mpu.in_accel_x_dmp_bias); in MPLSensor()
359 LOGV_IF(EXTRA_VERBOSE, "HAL:accel y dmp bias path: %s", mpu.in_accel_y_dmp_bias); in MPLSensor()
360 LOGV_IF(EXTRA_VERBOSE, "HAL:accel z dmp bias path: %s", mpu.in_accel_z_dmp_bias); in MPLSensor()
361 accel_x_dmp_bias_fd = open(mpu.in_accel_x_dmp_bias, O_RDWR); in MPLSensor()
362 accel_y_dmp_bias_fd = open(mpu.in_accel_y_dmp_bias, O_RDWR); in MPLSensor()
363 accel_z_dmp_bias_fd = open(mpu.in_accel_z_dmp_bias, O_RDWR); in MPLSensor()
373 dmp_sign_motion_fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK); in MPLSensor()
384 motionThreshold, mpu.smd_threshold, getTimestamp()); in MPLSensor()
385 res = write_sysfs_int(mpu.smd_threshold, motionThreshold); in MPLSensor()
390 StepCounterThreshold, mpu.pedometer_step_thresh, getTimestamp()); in MPLSensor()
391 res = write_sysfs_int(mpu.pedometer_step_thresh, StepCounterThreshold); in MPLSensor()
394 dmp_pedometer_fd = open(mpu.event_pedometer, O_RDONLY | O_NONBLOCK); in MPLSensor()
621 mpu.in_timestamp_en, getTimestamp()); in enable_iio_sysfs()
625 tempFp = fopen(mpu.in_timestamp_en, "w"); in enable_iio_sysfs()
638 IIO_BUFFER_LENGTH, mpu.buffer_length, getTimestamp()); in enable_iio_sysfs()
639 tempFp = fopen(mpu.buffer_length, "w"); in enable_iio_sysfs()
652 1, mpu.chip_enable, getTimestamp()); in enable_iio_sysfs()
653 tempFp = fopen(mpu.chip_enable, "w"); in enable_iio_sysfs()
847 "HAL:sysfs:cat %s (%lld)", mpu.firmware_loaded, getTimestamp()); in loadDMP()
848 fd = open(mpu.firmware_loaded, O_RDONLY); in loadDMP()
853 LOGV_IF(EXTRA_VERBOSE, "HAL:load dmp: %s", mpu.dmp_firmware); in loadDMP()
854 fptr = fopen(mpu.dmp_firmware, "w"); in loadDMP()
883 "HAL:sysfs:cat %s (%lld)", mpu.gyro_orient, getTimestamp()); in inv_get_sensors_orientation()
884 fptr = fopen(mpu.gyro_orient, "r"); in inv_get_sensors_orientation()
914 "HAL:sysfs:cat %s (%lld)", mpu.accel_orient, getTimestamp()); in inv_get_sensors_orientation()
915 fptr = fopen(mpu.accel_orient, "r"); in inv_get_sensors_orientation()
993 0, mpu.master_enable, getTimestamp()); in ~MPLSensor()
994 write_sysfs_int(mpu.master_enable, 0); in ~MPLSensor()
1057 mpu.firmware_loaded, getTimestamp()); in onDmp()
1058 if(read_sysfs_int(mpu.firmware_loaded, &status) < 0){ in onDmp()
1063 mpu.dmp_on, getTimestamp()); in onDmp()
1064 if (read_sysfs_int(mpu.dmp_on, &status) < 0) { in onDmp()
1068 en, mpu.dmp_on, getTimestamp()); in onDmp()
1069 if (write_sysfs_int(mpu.dmp_on, en) < 0) { in onDmp()
1080 en, mpu.dmp_int_on, getTimestamp()); in onDmp()
1081 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) { in onDmp()
1088 en, mpu.dmp_event_int_on, getTimestamp()); in onDmp()
1089 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) { in onDmp()
1155 !dataInterrupt, mpu.dmp_event_int_on, getTimestamp()); in setDmpFeature()
1156 if (write_sysfs_int(mpu.dmp_event_int_on, !dataInterrupt) < 0) { in setDmpFeature()
1202 200, mpu.accel_fifo_rate, getTimestamp()); in SetDmpState()
1203 if (write_sysfs_int(mpu.accel_fifo_rate, 200) < 0) { in SetDmpState()
1239 0, mpu.pedometer_int_on, getTimestamp()); in enablePedIndicator()
1240 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) { in enablePedIndicator()
1272 en, mpu.step_indicator_on, getTimestamp()); in enablePedIndicator()
1273 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) { in enablePedIndicator()
1315 1, mpu.pedometer_int_on, getTimestamp()); in enablePedStandalone()
1316 if (write_sysfs_int(mpu.pedometer_int_on, 1) < 0) { in enablePedStandalone()
1323 1, mpu.dmp_event_int_on, getTimestamp()); in enablePedStandalone()
1324 if (write_sysfs_int(mpu.dmp_event_int_on, 1) < 0) { in enablePedStandalone()
1338 0, mpu.pedometer_int_on, getTimestamp()); in enablePedStandalone()
1339 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) { in enablePedStandalone()
1345 0, mpu.dmp_event_int_on, getTimestamp()); in enablePedStandalone()
1346 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) { in enablePedStandalone()
1364 en, mpu.step_detector_on, getTimestamp()); in enablePedStandaloneData()
1365 if (write_sysfs_int(mpu.step_detector_on, en) < 0) { in enablePedStandaloneData()
1372 en, mpu.step_indicator_on, getTimestamp()); in enablePedStandaloneData()
1373 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) { in enablePedStandaloneData()
1433 1, mpu.pedometer_int_on, getTimestamp()); in enablePedQuaternion()
1434 if (write_sysfs_int(mpu.pedometer_int_on, 1) < 0) { in enablePedQuaternion()
1441 1, mpu.dmp_event_int_on, getTimestamp()); in enablePedQuaternion()
1442 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) { in enablePedQuaternion()
1456 0, mpu.pedometer_int_on, getTimestamp()); in enablePedQuaternion()
1457 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) { in enablePedQuaternion()
1463 0, mpu.dmp_event_int_on, getTimestamp()); in enablePedQuaternion()
1464 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) { in enablePedQuaternion()
1482 en, mpu.ped_q_on, getTimestamp()); in enablePedQuaternionData()
1483 if (write_sysfs_int(mpu.ped_q_on, en) < 0) { in enablePedQuaternionData()
1506 res = write_sysfs_int(mpu.gyro_fifo_enable, 1); in enablePedQuaternionData()
1507 res += write_sysfs_int(mpu.accel_fifo_enable, 1); in enablePedQuaternionData()
1563 int(1000000000.f / wanted), mpu.ped_q_rate, in setPedQuaternionRate()
1565 res = write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted); in setPedQuaternionRate()
1610 en, mpu.six_axis_q_on, getTimestamp()); in enable6AxisQuaternionData()
1611 if (write_sysfs_int(mpu.six_axis_q_on, en) < 0) { in enable6AxisQuaternionData()
1635 1, mpu.gyro_fifo_enable, getTimestamp()); in enable6AxisQuaternionData()
1636 res = write_sysfs_int(mpu.gyro_fifo_enable, 1); in enable6AxisQuaternionData()
1638 1, mpu.accel_fifo_enable, getTimestamp()); in enable6AxisQuaternionData()
1639 res += write_sysfs_int(mpu.accel_fifo_enable, 1); in enable6AxisQuaternionData()
1649 res = write_sysfs_int(mpu.gyro_fifo_enable, 1); in enable6AxisQuaternionData()
1650 res += write_sysfs_int(mpu.accel_fifo_enable, 1); in enable6AxisQuaternionData()
1707 int(1000000000.f / wanted), mpu.six_axis_q_rate, in set6AxisQuaternionRate()
1709 res = write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted); in set6AxisQuaternionRate()
1763 en, mpu.three_axis_q_on, getTimestamp()); in enableQuaternionData()
1764 if (write_sysfs_int(mpu.three_axis_q_on, en) < 0) { in enableQuaternionData()
1785 int(1000000000.f / wanted), mpu.three_axis_q_rate, in setQuaternionRate()
1787 res = write_sysfs_int(mpu.three_axis_q_rate, 1000000000.f / wanted); in setQuaternionRate()
1812 en, mpu.pedometer_on, getTimestamp()); in enableDmpPedometer()
1813 if (write_sysfs_int(mpu.pedometer_on, en) < 0) { in enableDmpPedometer()
1823 en, mpu.pedometer_int_on, getTimestamp()); in enableDmpPedometer()
1824 if (write_sysfs_int(mpu.pedometer_int_on, en) < 0) { in enableDmpPedometer()
1852 en, mpu.pedometer_on, getTimestamp()); in enableDmpPedometer()
1853 if (write_sysfs_int(mpu.pedometer_on, en) < 0) { in enableDmpPedometer()
1863 en, mpu.pedometer_int_on, getTimestamp()); in enableDmpPedometer()
1864 if (write_sysfs_int(mpu.pedometer_int_on, en) < 0) { in enableDmpPedometer()
1893 en, mpu.master_enable, getTimestamp()); in masterEnable()
1894 res = write_sysfs_int(mpu.master_enable, en); in masterEnable()
1906 en, mpu.gyro_enable, getTimestamp()); in enableGyro()
1907 res = write_sysfs_int(mpu.gyro_enable, en); in enableGyro()
1909 en, mpu.gyro_fifo_enable, getTimestamp()); in enableGyro()
1910 res += write_sysfs_int(mpu.gyro_fifo_enable, en); in enableGyro()
1927 res = write_sysfs_int(mpu.motion_lpa_on, en); in enableLowPowerAccel()
1929 en, mpu.motion_lpa_on, getTimestamp()); in enableLowPowerAccel()
1941 en, mpu.accel_enable, getTimestamp()); in enableAccel()
1942 res = write_sysfs_int(mpu.accel_enable, en); in enableAccel()
1944 en, mpu.accel_fifo_enable, getTimestamp()); in enableAccel()
1945 res += write_sysfs_int(mpu.accel_fifo_enable, en); in enableAccel()
1995 res = write_sysfs_int(mpu.batchmode_timeout, timeout); in enableBatch()
1997 res = write_sysfs_int(mpu.six_axis_q_on, 0); in enableBatch()
1998 res = write_sysfs_int(mpu.ped_q_on, 0); in enableBatch()
1999 res = write_sysfs_int(mpu.step_detector_on, 0); in enableBatch()
2000 res = write_sysfs_int(mpu.step_indicator_on, 0); in enableBatch()
2278 0, mpu.dmp_event_int_on, getTimestamp());
2279 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) {
2502 200, mpu.gyro_fifo_rate, getTimestamp());
2503 if (write_sysfs_int(mpu.gyro_fifo_rate, 200) < 0) {
2525 !dataInterrupt, mpu.dmp_event_int_on, getTimestamp());
2526 if (write_sysfs_int(mpu.dmp_event_int_on, !dataInterrupt) < 0) {
2575 timeoutInMs, mpu.batchmode_timeout, getTimestamp());
2576 if (write_sysfs_int(mpu.batchmode_timeout, timeoutInMs) < 0) {
3609 1000000000.f / tempWanted, mpu.gyro_fifo_rate, getTimestamp());
3610 tempFd = open(mpu.gyro_fifo_rate, O_RDWR);
3673 1000000000.f / gyroRate, mpu.gyro_rate,
3675 tempFd = open(mpu.gyro_rate, O_RDWR);
3685 wanted_3rd_party_sensor / 1000000L, mpu.accel_rate,
3687 tempFd = open(mpu.accel_rate, O_RDWR);
3694 1000000000.f / accelRate, mpu.accel_rate,
3696 tempFd = open(mpu.accel_rate, O_RDWR);
3737 1000000000.f / wanted, mpu.gyro_rate, getTimestamp());
3738 tempFd = open(mpu.gyro_rate, O_RDWR);
3757 1000000000.f / wanted, mpu.accel_rate,
3759 tempFd = open(mpu.accel_rate, O_RDWR);
4694 0, mpu.accel_fifo_enable, getTimestamp());
4695 res += write_sysfs_int(mpu.accel_fifo_enable, 0);
4704 0, mpu.gyro_fifo_enable, getTimestamp());
4705 res += write_sysfs_int(mpu.gyro_fifo_enable, 0);
4726 en, mpu.display_orientation_on, getTimestamp());
4727 if (write_sysfs_int(mpu.display_orientation_on, en) < 0) {
4747 1, mpu.dmp_event_int_on, getTimestamp());
4748 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
4771 en, mpu.dmp_event_int_on, getTimestamp());
4772 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
4799 dmp_orient_fd = open(mpu.event_display_orientation, O_RDONLY| O_NONBLOCK);
4833 fp = fopen(mpu.event_display_orientation, "r");
5379 char **dptr = reinterpret_cast<char **>(&mpu);
5389 sprintf(mpu.key, "%s%s", sysfs_path, "/key");
5390 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable");
5391 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length");
5392 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable");
5393 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state");
5395 sprintf(mpu.in_timestamp_en, "%s%s", sysfs_path,
5397 sprintf(mpu.in_timestamp_index, "%s%s", sysfs_path,
5399 sprintf(mpu.in_timestamp_type, "%s%s", sysfs_path,
5402 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware");
5403 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded");
5404 sprintf(mpu.dmp_on, "%s%s", sysfs_path, "/dmp_on");
5405 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on");
5406 sprintf(mpu.dmp_event_int_on, "%s%s", sysfs_path, "/dmp_event_int_on");
5407 sprintf(mpu.tap_on, "%s%s", sysfs_path, "/tap_on");
5409 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test");
5411 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature");
5412 sprintf(mpu.gyro_enable, "%s%s", sysfs_path, "/gyro_enable");
5413 sprintf(mpu.gyro_fifo_rate, "%s%s", sysfs_path, "/sampling_frequency");
5414 sprintf(mpu.gyro_orient, "%s%s", sysfs_path, "/gyro_matrix");
5415 sprintf(mpu.gyro_fifo_enable, "%s%s", sysfs_path, "/gyro_fifo_enable");
5416 sprintf(mpu.gyro_fsr, "%s%s", sysfs_path, "/in_anglvel_scale");
5417 sprintf(mpu.gyro_fifo_enable, "%s%s", sysfs_path, "/gyro_fifo_enable");
5418 sprintf(mpu.gyro_rate, "%s%s", sysfs_path, "/gyro_rate");
5420 sprintf(mpu.accel_enable, "%s%s", sysfs_path, "/accel_enable");
5421 sprintf(mpu.accel_fifo_rate, "%s%s", sysfs_path, "/sampling_frequency");
5422 sprintf(mpu.accel_orient, "%s%s", sysfs_path, "/accel_matrix");
5423 sprintf(mpu.accel_fifo_enable, "%s%s", sysfs_path, "/accel_fifo_enable");
5424 sprintf(mpu.accel_rate, "%s%s", sysfs_path, "/accel_rate");
5427 sprintf(mpu.accel_fsr, "%s%s", sysfs_path, "/in_accel_scale");
5430 sprintf(mpu.in_accel_x_dmp_bias, "%s%s", sysfs_path, "/in_accel_x_dmp_bias");
5431 sprintf(mpu.in_accel_y_dmp_bias, "%s%s", sysfs_path, "/in_accel_y_dmp_bias");
5432 sprintf(mpu.in_accel_z_dmp_bias, "%s%s", sysfs_path, "/in_accel_z_dmp_bias");
5435 sprintf(mpu.in_accel_x_offset, "%s%s", sysfs_path, "/in_accel_x_offset");
5436 sprintf(mpu.in_accel_y_offset, "%s%s", sysfs_path, "/in_accel_y_offset");
5437 sprintf(mpu.in_accel_z_offset, "%s%s", sysfs_path, "/in_accel_z_offset");
5438 sprintf(mpu.in_accel_self_test_scale, "%s%s", sysfs_path, "/in_accel_self_test_scale");
5442 sprintf(mpu.in_gyro_x_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_x_dmp_bias");
5443 sprintf(mpu.in_gyro_y_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_y_dmp_bias");
5444 sprintf(mpu.in_gyro_z_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_z_dmp_bias");
5447 sprintf(mpu.in_gyro_x_offset, "%s%s", sysfs_path, "/in_anglvel_x_offset");
5448 sprintf(mpu.in_gyro_y_offset, "%s%s", sysfs_path, "/in_anglvel_y_offset");
5449 sprintf(mpu.in_gyro_z_offset, "%s%s", sysfs_path, "/in_anglvel_z_offset");
5450 sprintf(mpu.in_gyro_self_test_scale, "%s%s", sysfs_path, "/in_anglvel_self_test_scale");
5452 sprintf(mpu.three_axis_q_on, "%s%s", sysfs_path, "/three_axes_q_on"); //formerly quaternion_on
5453 sprintf(mpu.three_axis_q_rate, "%s%s", sysfs_path, "/three_axes_q_rate");
5455 sprintf(mpu.ped_q_on, "%s%s", sysfs_path, "/ped_q_on");
5456 sprintf(mpu.ped_q_rate, "%s%s", sysfs_path, "/ped_q_rate");
5458 sprintf(mpu.six_axis_q_on, "%s%s", sysfs_path, "/six_axes_q_on");
5459 sprintf(mpu.six_axis_q_rate, "%s%s", sysfs_path, "/six_axes_q_rate");
5461 sprintf(mpu.six_axis_q_value, "%s%s", sysfs_path, "/six_axes_q_value");
5463 sprintf(mpu.step_detector_on, "%s%s", sysfs_path, "/step_detector_on");
5464 sprintf(mpu.step_indicator_on, "%s%s", sysfs_path, "/step_indicator_on");
5466 sprintf(mpu.display_orientation_on, "%s%s", sysfs_path,
5468 sprintf(mpu.event_display_orientation, "%s%s", sysfs_path,
5471 sprintf(mpu.event_smd, "%s%s", sysfs_path,
5473 sprintf(mpu.smd_enable, "%s%s", sysfs_path,
5475 sprintf(mpu.smd_delay_threshold, "%s%s", sysfs_path,
5477 sprintf(mpu.smd_delay_threshold2, "%s%s", sysfs_path,
5479 sprintf(mpu.smd_threshold, "%s%s", sysfs_path,
5481 sprintf(mpu.batchmode_timeout, "%s%s", sysfs_path,
5483 sprintf(mpu.batchmode_wake_fifo_full_on, "%s%s", sysfs_path,
5485 sprintf(mpu.flush_batch, "%s%s", sysfs_path,
5487 sprintf(mpu.pedometer_on, "%s%s", sysfs_path,
5489 sprintf(mpu.pedometer_int_on, "%s%s", sysfs_path,
5491 sprintf(mpu.event_pedometer, "%s%s", sysfs_path,
5493 sprintf(mpu.pedometer_steps, "%s%s", sysfs_path,
5495 sprintf(mpu.pedometer_step_thresh, "%s%s", sysfs_path,
5497 sprintf(mpu.pedometer_counter, "%s%s", sysfs_path,
5499 sprintf(mpu.motion_lpa_on, "%s%s", sysfs_path,
5599 mpu.in_gyro_x_offset, getTimestamp());
5608 mpu.in_gyro_y_offset, getTimestamp());
5617 mpu.in_gyro_z_offset, getTimestamp());
5669 0, mpu.in_gyro_x_dmp_bias, getTimestamp());
5675 0, mpu.in_gyro_y_dmp_bias, getTimestamp());
5681 0, mpu.in_gyro_z_dmp_bias, getTimestamp());
5709 bias[0], mpu.in_gyro_x_dmp_bias, getTimestamp());
5715 bias[1], mpu.in_gyro_y_dmp_bias, getTimestamp());
5721 bias[2], mpu.in_gyro_z_dmp_bias, getTimestamp());
5765 tempBias, mpu.in_accel_x_offset, getTimestamp());
5772 tempBias, mpu.in_accel_y_offset, getTimestamp());
5779 tempBias, mpu.in_accel_z_offset, getTimestamp());
5820 mpu.in_accel_x_dmp_bias, getTimestamp());
5828 mpu.in_accel_y_dmp_bias, getTimestamp());
5836 mpu.in_accel_z_dmp_bias, getTimestamp());
6220 !dataInterrupt, mpu.dmp_event_int_on, getTimestamp());
6221 if (write_sysfs_int(mpu.dmp_event_int_on, !dataInterrupt) < 0) {
6271 mpu.flush_batch, getTimestamp());
6273 status = read_sysfs_int(mpu.flush_batch, &res);
6447 fp = fopen(mpu.pedometer_steps, "r");
6471 fp = fopen(mpu.pedometer_counter, "r");
6611 1, mpu.smd_enable, getTimestamp());
6612 if (write_sysfs_int(mpu.smd_enable, 1) < 0) {
6621 0, mpu.smd_enable, getTimestamp());
6622 if (write_sysfs_int(mpu.smd_enable, 0) < 0) {
6656 LOGV_IF(EXTRA_VERBOSE, "HAL:sysfs:echo quat value > %s", mpu.six_axis_q_value);
6661 FILE* fptr = fopen(mpu.six_axis_q_value, "w");
6693 delayThreshold1, mpu.smd_delay_threshold, getTimestamp());
6694 res = write_sysfs_int(mpu.smd_delay_threshold, delayThreshold1);
6697 delayThreshold2, mpu.smd_delay_threshold2, getTimestamp());
6698 res = write_sysfs_int(mpu.smd_delay_threshold2, delayThreshold2);
6702 motionThreshold, mpu.smd_threshold, getTimestamp());
6703 res = write_sysfs_int(mpu.smd_threshold, motionThreshold);
6829 1000000000.f / gyroRate, mpu.gyro_rate,
6831 tempFd = open(mpu.gyro_rate, O_RDWR);
6839 1000000000.f / accelRate, mpu.accel_rate,
6841 tempFd = open(mpu.accel_rate, O_RDWR);
6958 1000000000.f / wanted, mpu.gyro_fifo_rate,
6960 tempFd = open(mpu.gyro_fifo_rate, O_RDWR);
6966 1000000000.f / gyroRate, mpu.gyro_rate,
6968 tempFd = open(mpu.gyro_rate, O_RDWR);
6976 1000000000.f / accelRate, mpu.accel_rate,
6978 tempFd = open(mpu.accel_rate, O_RDWR);