Lines Matching refs:mpu

304     LOGV_IF(EXTRA_VERBOSE, "HAL:gyro temperature path: %s", mpu.temperature);
305 gyro_temperature_fd = open(mpu.temperature, O_RDONLY);
310 "HAL:temperature_fd opened: %s", mpu.temperature);
317 "HAL:sysfs:cat %s (%lld)", mpu.gyro_fsr, getTimestamp());
319 fd = open(mpu.gyro_fsr, O_RDONLY);
338 "HAL:sysfs:cat %s (%lld)", mpu.in_gyro_self_test_scale, getTimestamp());
339 fd = open(mpu.in_gyro_self_test_scale, O_RDONLY);
358 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro x offset path: %s", mpu.in_gyro_x_offset);
359 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro y offset path: %s", mpu.in_gyro_y_offset);
360 LOGV_IF(EXTRA_VERBOSE, "HAL:factory gyro z offset path: %s", mpu.in_gyro_z_offset);
361 gyro_x_offset_fd = open(mpu.in_gyro_x_offset, O_RDWR);
362 gyro_y_offset_fd = open(mpu.in_gyro_y_offset, O_RDWR);
363 gyro_z_offset_fd = open(mpu.in_gyro_z_offset, O_RDWR);
377 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro x dmp bias path: %s", mpu.in_gyro_x_dmp_bias);
378 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro y dmp bias path: %s", mpu.in_gyro_y_dmp_bias);
379 LOGV_IF(EXTRA_VERBOSE, "HAL: gyro z dmp bias path: %s", mpu.in_gyro_z_dmp_bias);
380 gyro_x_dmp_bias_fd = open(mpu.in_gyro_x_dmp_bias, O_RDWR);
381 gyro_y_dmp_bias_fd = open(mpu.in_gyro_y_dmp_bias, O_RDWR);
382 gyro_z_dmp_bias_fd = open(mpu.in_gyro_z_dmp_bias, O_RDWR);
396 "HAL:sysfs:cat %s (%lld)", mpu.accel_fsr, getTimestamp());
398 fd = open(mpu.accel_fsr, O_RDONLY);
417 "HAL:sysfs:cat %s (%lld)", mpu.in_accel_self_test_scale, getTimestamp());
418 fd = open(mpu.in_accel_self_test_scale, O_RDONLY);
437 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel x offset path: %s", mpu.in_accel_x_offset);
438 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel y offset path: %s", mpu.in_accel_y_offset);
439 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel z offset path: %s", mpu.in_accel_z_offset);
440 accel_x_offset_fd = open(mpu.in_accel_x_offset, O_RDWR);
441 accel_y_offset_fd = open(mpu.in_accel_y_offset, O_RDWR);
442 accel_z_offset_fd = open(mpu.in_accel_z_offset, O_RDWR);
454 LOGV_IF(EXTRA_VERBOSE, "HAL:accel x dmp bias path: %s", mpu.in_accel_x_dmp_bias);
455 LOGV_IF(EXTRA_VERBOSE, "HAL:accel y dmp bias path: %s", mpu.in_accel_y_dmp_bias);
456 LOGV_IF(EXTRA_VERBOSE, "HAL:accel z dmp bias path: %s", mpu.in_accel_z_dmp_bias);
457 accel_x_dmp_bias_fd = open(mpu.in_accel_x_dmp_bias, O_RDWR);
458 accel_y_dmp_bias_fd = open(mpu.in_accel_y_dmp_bias, O_RDWR);
459 accel_z_dmp_bias_fd = open(mpu.in_accel_z_dmp_bias, O_RDWR);
469 dmp_sign_motion_fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK);
477 dmp_pedometer_fd = open(mpu.event_pedometer, O_RDONLY | O_NONBLOCK);
692 mpu.in_timestamp_en, getTimestamp());
696 tempFp = fopen(mpu.in_timestamp_en, "w");
706 IIO_BUFFER_LENGTH, mpu.buffer_length, getTimestamp());
707 tempFp = fopen(mpu.buffer_length, "w");
717 1, mpu.chip_enable, getTimestamp());
718 tempFp = fopen(mpu.chip_enable, "w");
910 "HAL:sysfs:cat %s (%lld)", mpu.firmware_loaded, getTimestamp());
911 fd = open(mpu.firmware_loaded, O_RDONLY);
916 LOGV_IF(EXTRA_VERBOSE, "HAL:load dmp: %s", mpu.dmp_firmware);
917 fptr = fopen(mpu.dmp_firmware, "w");
943 "HAL:sysfs:cat %s (%lld)", mpu.gyro_orient, getTimestamp());
944 fptr = fopen(mpu.gyro_orient, "r");
971 "HAL:sysfs:cat %s (%lld)", mpu.accel_orient, getTimestamp());
972 fptr = fopen(mpu.accel_orient, "r");
1048 0, mpu.master_enable, getTimestamp());
1049 write_sysfs_int(mpu.master_enable, 0);
1080 HW_GYRO_RATE_HZ, mpu.gyro_rate, getTimestamp());
1081 int fd = open(mpu.gyro_rate, O_RDWR);
1085 mpu.gyro_rate, strerror(res), res);
1091 mpu.gyro_rate, HW_GYRO_RATE_HZ);
1137 mpu.firmware_loaded, getTimestamp());
1138 if(read_sysfs_int(mpu.firmware_loaded, &status) < 0){
1143 mpu.dmp_on, getTimestamp());
1144 if (read_sysfs_int(mpu.dmp_on, &status) < 0) {
1148 en, mpu.dmp_on, getTimestamp());
1149 if (write_sysfs_int(mpu.dmp_on, en) < 0) {
1160 en, mpu.dmp_int_on, getTimestamp());
1161 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) {
1168 en, mpu.dmp_event_int_on, getTimestamp());
1169 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
1197 0, mpu.pedometer_int_on, getTimestamp());
1198 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) {
1208 en, mpu.step_indicator_on, getTimestamp());
1209 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) {
1236 1, mpu.pedometer_int_on, getTimestamp());
1237 if (write_sysfs_int(mpu.pedometer_int_on, 1) < 0) {
1244 1, mpu.dmp_event_int_on, getTimestamp());
1245 if (write_sysfs_int(mpu.dmp_event_int_on, 1) < 0) {
1259 0, mpu.pedometer_int_on, getTimestamp());
1260 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) {
1266 0, mpu.dmp_event_int_on, getTimestamp());
1267 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) {
1285 en, mpu.step_detector_on, getTimestamp());
1286 if (write_sysfs_int(mpu.step_detector_on, en) < 0) {
1293 en, mpu.step_indicator_on, getTimestamp());
1294 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) {
1354 1, mpu.pedometer_int_on, getTimestamp());
1355 if (write_sysfs_int(mpu.pedometer_int_on, 1) < 0) {
1362 1, mpu.dmp_event_int_on, getTimestamp());
1363 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
1377 0, mpu.pedometer_int_on, getTimestamp());
1378 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) {
1384 0, mpu.dmp_event_int_on, getTimestamp());
1385 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) {
1403 en, mpu.ped_q_on, getTimestamp());
1404 if (write_sysfs_int(mpu.ped_q_on, en) < 0) {
1411 en, mpu.step_indicator_on, getTimestamp());
1412 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) {
1435 res = write_sysfs_int(mpu.gyro_fifo_enable, 1);
1436 res += write_sysfs_int(mpu.accel_fifo_enable, 1);
1524 en, mpu.six_axis_q_on, getTimestamp());
1525 if (write_sysfs_int(mpu.six_axis_q_on, en) < 0) {
1549 1, mpu.gyro_fifo_enable, getTimestamp());
1550 res = write_sysfs_int(mpu.gyro_fifo_enable, 1);
1552 1, mpu.accel_fifo_enable, getTimestamp());
1553 res += write_sysfs_int(mpu.accel_fifo_enable, 1);
1563 res = write_sysfs_int(mpu.gyro_fifo_enable, 1);
1564 res += write_sysfs_int(mpu.accel_fifo_enable, 1);
1658 en, mpu.three_axis_q_on, getTimestamp());
1659 if (write_sysfs_int(mpu.three_axis_q_on, en) < 0) {
1692 en, mpu.pedometer_on, getTimestamp());
1693 if (write_sysfs_int(mpu.pedometer_on, en) < 0) {
1702 en, mpu.pedometer_int_on, getTimestamp());
1703 if (write_sysfs_int(mpu.pedometer_int_on, en) < 0) {
1717 200, mpu.accel_fifo_rate, getTimestamp());
1718 if (write_sysfs_int(mpu.accel_fifo_rate, 200) < 0) {
1741 en, mpu.dmp_event_int_on, getTimestamp());
1742 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
1769 en, mpu.pedometer_on, getTimestamp());
1770 if (write_sysfs_int(mpu.pedometer_on, en) < 0) {
1798 en, mpu.pedometer_int_on, getTimestamp());
1799 if (write_sysfs_int(mpu.pedometer_int_on, en) < 0) {
1809 en, mpu.dmp_event_int_on, getTimestamp());
1810 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
1829 en, mpu.master_enable, getTimestamp());
1830 res = write_sysfs_int(mpu.master_enable, en);
1842 en, mpu.gyro_enable, getTimestamp());
1843 res = write_sysfs_int(mpu.gyro_enable, en);
1845 en, mpu.gyro_fifo_enable, getTimestamp());
1846 res += write_sysfs_int(mpu.gyro_fifo_enable, en);
1863 res = write_sysfs_int(mpu.motion_lpa_on, en);
1865 en, mpu.motion_lpa_on, getTimestamp());
1877 en, mpu.accel_enable, getTimestamp());
1878 res = write_sysfs_int(mpu.accel_enable, en);
1880 en, mpu.accel_fifo_enable, getTimestamp());
1881 res += write_sysfs_int(mpu.accel_fifo_enable, en);
1929 res = write_sysfs_int(mpu.batchmode_timeout, timeout);
1931 res = write_sysfs_int(mpu.six_axis_q_on, 0);
1932 res = write_sysfs_int(mpu.ped_q_on, 0);
1933 res = write_sysfs_int(mpu.step_detector_on, 0);
1934 res = write_sysfs_int(mpu.step_indicator_on, 0);
2193 0, mpu.dmp_event_int_on, getTimestamp());
2194 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) {
2415 timeoutInMs, mpu.batchmode_timeout, getTimestamp());
2416 if (write_sysfs_int(mpu.batchmode_timeout, timeoutInMs) < 0) {
2434 200, mpu.gyro_fifo_rate, getTimestamp());
2435 if (write_sysfs_int(mpu.gyro_fifo_rate, 200) < 0) {
3277 1000000000.f / tempWanted, mpu.gyro_fifo_rate, getTimestamp());
3278 tempFd = open(mpu.gyro_fifo_rate, O_RDWR);
3293 "HAL:MPL gyro sample rate: (mpl)=%d us (mpu)=%.2f Hz",
3296 "HAL:MPL accel sample rate: (mpl)=%d us (mpu)=%.2f Hz",
3299 "HAL:MPL compass sample rate: (mpl)=%d us (mpu)=%.2f Hz",
3321 "HAL:MPL gyro sample rate: (mpl)=%d us (mpu)=%.2f Hz", rateInus, 1000000000.f / gyroRate);
3323 "HAL:MPL accel sample rate: (mpl)=%d us (mpu)=%.2f Hz", rateInus, 1000000000.f / accelRate);
3325 "HAL:MPL compass sample rate: (mpl)=%d us (mpu)=%.2f Hz", rateInus, 1000000000.f / compassRate);
3336 "(mpl)=%d us (mpu)=%.2f Hz",
3346 1000000000.f / gyroRate, mpu.gyro_rate,
3348 tempFd = open(mpu.gyro_rate, O_RDWR);
3358 wanted_3rd_party_sensor / 1000000L, mpu.accel_rate,
3360 tempFd = open(mpu.accel_rate, O_RDWR);
3365 // mpu accel
3367 1000000000.f / accelRate, mpu.accel_rate,
3369 tempFd = open(mpu.accel_rate, O_RDWR);
3430 1000000000.f / wanted, mpu.gyro_rate, getTimestamp());
3431 tempFd = open(mpu.gyro_rate, O_RDWR);
3461 1000000000.f / wanted, mpu.accel_rate,
3463 tempFd = open(mpu.accel_rate, O_RDWR);
4243 0, mpu.accel_fifo_enable, getTimestamp());
4244 res += write_sysfs_int(mpu.accel_fifo_enable, 0);
4253 0, mpu.gyro_fifo_enable, getTimestamp());
4254 res += write_sysfs_int(mpu.gyro_fifo_enable, 0);
4275 en, mpu.display_orientation_on, getTimestamp());
4276 if (write_sysfs_int(mpu.display_orientation_on, en) < 0) {
4289 200, mpu.accel_fifo_rate, getTimestamp());
4290 if (write_sysfs_int(mpu.accel_fifo_rate, 200) < 0) {
4310 1, mpu.dmp_event_int_on, getTimestamp());
4311 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
4338 en, mpu.dmp_event_int_on, getTimestamp());
4339 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
4363 dmp_orient_fd = open(mpu.event_display_orientation, O_RDONLY| O_NONBLOCK);
4397 fp = fopen(mpu.event_display_orientation, "r");
4462 int(1000000000.f / *wanted), mpu.three_axis_q_rate,
4464 write_sysfs_int(mpu.three_axis_q_rate, 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);
4476 int(1000000000.f / *wanted), mpu.ped_q_rate,
4478 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / *wanted);
5036 dptr = (char**)&mpu;
5054 sprintf(mpu.key, "%s%s", sysfs_path, "/key");
5055 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable");
5056 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length");
5057 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable");
5058 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state");
5060 sprintf(mpu.in_timestamp_en, "%s%s", sysfs_path,
5062 sprintf(mpu.in_timestamp_index, "%s%s", sysfs_path,
5064 sprintf(mpu.in_timestamp_type, "%s%s", sysfs_path,
5067 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware");
5068 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded");
5069 sprintf(mpu.dmp_on, "%s%s", sysfs_path, "/dmp_on");
5070 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on");
5071 sprintf(mpu.dmp_event_int_on, "%s%s", sysfs_path, "/dmp_event_int_on");
5072 sprintf(mpu.tap_on, "%s%s", sysfs_path, "/tap_on");
5074 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test");
5076 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature");
5077 sprintf(mpu.gyro_enable, "%s%s", sysfs_path, "/gyro_enable");
5078 sprintf(mpu.gyro_fifo_rate, "%s%s", sysfs_path, "/sampling_frequency");
5079 sprintf(mpu.gyro_orient, "%s%s", sysfs_path, "/gyro_matrix");
5080 sprintf(mpu.gyro_fifo_enable, "%s%s", sysfs_path, "/gyro_fifo_enable");
5081 sprintf(mpu.gyro_fsr, "%s%s", sysfs_path, "/in_anglvel_scale");
5082 sprintf(mpu.gyro_fifo_enable, "%s%s", sysfs_path, "/gyro_fifo_enable");
5083 sprintf(mpu.gyro_rate, "%s%s", sysfs_path, "/gyro_rate");
5085 sprintf(mpu.accel_enable, "%s%s", sysfs_path, "/accel_enable");
5086 sprintf(mpu.accel_fifo_rate, "%s%s", sysfs_path, "/sampling_frequency");
5087 sprintf(mpu.accel_orient, "%s%s", sysfs_path, "/accel_matrix");
5088 sprintf(mpu.accel_fifo_enable, "%s%s", sysfs_path, "/accel_fifo_enable");
5089 sprintf(mpu.accel_rate, "%s%s", sysfs_path, "/accel_rate");
5092 sprintf(mpu.accel_fsr, "%s%s", sysfs_path, "/in_accel_scale");
5095 sprintf(mpu.in_accel_x_dmp_bias, "%s%s", sysfs_path, "/in_accel_x_dmp_bias");
5096 sprintf(mpu.in_accel_y_dmp_bias, "%s%s", sysfs_path, "/in_accel_y_dmp_bias");
5097 sprintf(mpu.in_accel_z_dmp_bias, "%s%s", sysfs_path, "/in_accel_z_dmp_bias");
5100 sprintf(mpu.in_accel_x_offset, "%s%s", sysfs_path, "/in_accel_x_offset");
5101 sprintf(mpu.in_accel_y_offset, "%s%s", sysfs_path, "/in_accel_y_offset");
5102 sprintf(mpu.in_accel_z_offset, "%s%s", sysfs_path, "/in_accel_z_offset");
5103 sprintf(mpu.in_accel_self_test_scale, "%s%s", sysfs_path, "/in_accel_self_test_scale");
5107 sprintf(mpu.in_gyro_x_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_x_dmp_bias");
5108 sprintf(mpu.in_gyro_y_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_y_dmp_bias");
5109 sprintf(mpu.in_gyro_z_dmp_bias, "%s%s", sysfs_path, "/in_anglvel_z_dmp_bias");
5112 sprintf(mpu.in_gyro_x_offset, "%s%s", sysfs_path, "/in_anglvel_x_offset");
5113 sprintf(mpu.in_gyro_y_offset, "%s%s", sysfs_path, "/in_anglvel_y_offset");
5114 sprintf(mpu.in_gyro_z_offset, "%s%s", sysfs_path, "/in_anglvel_z_offset");
5115 sprintf(mpu.in_gyro_self_test_scale, "%s%s", sysfs_path, "/in_anglvel_self_test_scale");
5117 sprintf(mpu.three_axis_q_on, "%s%s", sysfs_path, "/three_axes_q_on"); //formerly quaternion_on
5118 sprintf(mpu.three_axis_q_rate, "%s%s", sysfs_path, "/three_axes_q_rate");
5120 sprintf(mpu.ped_q_on, "%s%s", sysfs_path, "/ped_q_on");
5121 sprintf(mpu.ped_q_rate, "%s%s", sysfs_path, "/ped_q_rate");
5123 sprintf(mpu.six_axis_q_on, "%s%s", sysfs_path, "/six_axes_q_on");
5124 sprintf(mpu.six_axis_q_rate, "%s%s", sysfs_path, "/six_axes_q_rate");
5126 sprintf(mpu.six_axis_q_value, "%s%s", sysfs_path, "/six_axes_q_value");
5128 sprintf(mpu.step_detector_on, "%s%s", sysfs_path, "/step_detector_on");
5129 sprintf(mpu.step_indicator_on, "%s%s", sysfs_path, "/step_indicator_on");
5131 sprintf(mpu.display_orientation_on, "%s%s", sysfs_path,
5133 sprintf(mpu.event_display_orientation, "%s%s", sysfs_path,
5136 sprintf(mpu.event_smd, "%s%s", sysfs_path,
5138 sprintf(mpu.smd_enable, "%s%s", sysfs_path,
5140 sprintf(mpu.smd_delay_threshold, "%s%s", sysfs_path,
5142 sprintf(mpu.smd_delay_threshold2, "%s%s", sysfs_path,
5144 sprintf(mpu.smd_threshold, "%s%s", sysfs_path,
5146 sprintf(mpu.batchmode_timeout, "%s%s", sysfs_path,
5148 sprintf(mpu.batchmode_wake_fifo_full_on, "%s%s", sysfs_path,
5150 sprintf(mpu.flush_batch, "%s%s", sysfs_path,
5152 sprintf(mpu.pedometer_on, "%s%s", sysfs_path,
5154 sprintf(mpu.pedometer_int_on, "%s%s", sysfs_path,
5156 sprintf(mpu.event_pedometer, "%s%s", sysfs_path,
5158 sprintf(mpu.pedometer_steps, "%s%s", sysfs_path,
5160 sprintf(mpu.motion_lpa_on, "%s%s", sysfs_path,
5263 mpu.in_gyro_x_offset, getTimestamp());
5272 mpu.in_gyro_y_offset, getTimestamp());
5281 mpu.in_gyro_z_offset, getTimestamp());
5346 bias[0], mpu.in_gyro_x_dmp_bias, getTimestamp());
5352 bias[1], mpu.in_gyro_y_dmp_bias, getTimestamp());
5358 bias[2], mpu.in_gyro_z_dmp_bias, getTimestamp());
5402 tempBias, mpu.in_accel_x_offset, getTimestamp());
5409 tempBias, mpu.in_accel_y_offset, getTimestamp());
5416 tempBias, mpu.in_accel_z_offset, getTimestamp());
5463 mpu.in_accel_x_dmp_bias, getTimestamp());
5471 mpu.in_accel_y_dmp_bias, getTimestamp());
5479 mpu.in_accel_z_dmp_bias, getTimestamp());
5711 int(1000000000.f / wanted), mpu.ped_q_rate,
5713 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted);
5744 int(1000000000.f / wanted), mpu.six_axis_q_rate,
5746 write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted);
5763 0, mpu.batchmode_wake_fifo_full_on, getTimestamp());
5764 if (write_sysfs_int(mpu.batchmode_wake_fifo_full_on, 0) < 0) {
5771 timeoutInMs, mpu.batchmode_timeout, getTimestamp());
5772 if (write_sysfs_int(mpu.batchmode_timeout, timeoutInMs) < 0) {
5788 200, mpu.gyro_fifo_rate, getTimestamp());
5789 if (write_sysfs_int(mpu.gyro_fifo_rate, 200) < 0) {
5844 mpu.flush_batch, getTimestamp());
5846 read_sysfs_int(mpu.flush_batch, &res);
5947 fp = fopen(mpu.pedometer_steps, "r");
6014 fp = fopen(mpu.event_smd, "r");
6083 1, mpu.smd_enable, getTimestamp());
6084 if (write_sysfs_int(mpu.smd_enable, 1) < 0) {
6096 200, mpu.accel_fifo_rate, getTimestamp());
6097 if (write_sysfs_int(mpu.accel_fifo_rate, 200) < 0) {
6119 0, mpu.smd_enable, getTimestamp());
6120 if (write_sysfs_int(mpu.smd_enable, 0) < 0) {
6141 en, mpu.dmp_event_int_on, getTimestamp());
6142 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) {
6167 LOGV_IF(EXTRA_VERBOSE, "HAL:six axis q value: %s", mpu.six_axis_q_value);
6168 FILE* fptr = fopen(mpu.six_axis_q_value, "w");
6198 delayThreshold1, mpu.smd_delay_threshold, getTimestamp());
6199 res = write_sysfs_int(mpu.smd_delay_threshold, delayThreshold1);
6202 delayThreshold2, mpu.smd_delay_threshold2, getTimestamp());
6203 res = write_sysfs_int(mpu.smd_delay_threshold2, delayThreshold2);
6207 motionThreshold, mpu.smd_threshold, getTimestamp());
6208 res = write_sysfs_int(mpu.smd_threshold, motionThreshold);
6251 "HAL:MPL quat sample rate: (mpl)=%d us (mpu)=%.2f Hz", mplQuatRate,
6267 "HAL:MPL gyro sample rate: (mpl)=%d us (mpu)=%.2f Hz", mplGyroRate, 1000000000.f / gyroRate);
6269 "HAL:MPL accel sample rate: (mpl)=%d us (mpu)=%.2f Hz", mplAccelRate, 1000000000.f / accelRate);
6271 "HAL:MPL compass sample rate: (mpl)=%d us (mpu)=%.2f Hz", mplCompassRate, 1000000000.f / compassRate);
6289 1000000000.f / gyroRate, mpu.gyro_rate,
6291 tempFd = open(mpu.gyro_rate, O_RDWR);
6298 1000000000.f / accelRate, mpu.accel_rate,
6300 tempFd = open(mpu.accel_rate, O_RDWR);
6362 "HAL:MPL gyro sample rate: (mpl)=%lld us (mpu)=%.2f Hz",
6365 "HAL:MPL accel sample rate: (mpl)=%lld us (mpu)=%.2f Hz",
6368 "HAL:MPL compass sample rate: (mpl)=%lld us (mpu)=%.2f Hz",
6375 1000000000.f / wanted, mpu.gyro_fifo_rate,
6377 tempFd = open(mpu.gyro_fifo_rate, O_RDWR);
6382 1000000000.f / gyroRate, mpu.gyro_rate,
6384 tempFd = open(mpu.gyro_rate, O_RDWR);
6391 1000000000.f / accelRate, mpu.accel_rate,
6393 tempFd = open(mpu.accel_rate, O_RDWR);