Lines Matching refs:result

282  *          Produces the PASS/FAIL result. Loads the calculated gyro biases
298 * Report also the final result using a bit-mask like error code
322 inv_error_t result;
341 result = inv_serial_single_write(
344 CHECK_TEST_ERROR(result);
362 result = inv_serial_single_write(
365 CHECK_TEST_ERROR(result);
366 result = inv_serial_single_write(
369 CHECK_TEST_ERROR(result);
378 result = inv_serial_single_write(
381 CHECK_TEST_ERROR(result);
387 result = inv_serial_single_write(
390 CHECK_TEST_ERROR(result);
392 result = inv_serial_single_write(
395 CHECK_TEST_ERROR(result);
400 result = inv_serial_single_write(mlsl_handle,
403 CHECK_TEST_ERROR(result);
409 result = inv_serial_single_write(
412 CHECK_TEST_ERROR(result);
415 result = inv_serial_read(
418 CHECK_TEST_ERROR(result);
428 result = inv_serial_read_fifo(mlsl_handle,
430 CHECK_TEST_ERROR(result);
452 result = inv_serial_single_write(
455 CHECK_TEST_ERROR(result);
458 result = inv_serial_read(mlsl_handle, mputestCfgPtr->addr,
460 CHECK_TEST_ERROR(result);
572 inv_error_t result;
588 result = inv_serial_single_write(
591 if (result) {
592 LOG_RESULT_LOCATION(result);
593 return result;
612 result = inv_serial_single_write(
615 if (result) {
616 LOG_RESULT_LOCATION(result);
617 return result;
619 result = inv_serial_single_write(
622 if (result) {
623 LOG_RESULT_LOCATION(result);
624 return result;
634 result = inv_serial_single_write(
638 result = inv_serial_single_write(
642 if (result) {
643 LOG_RESULT_LOCATION(result);
644 return result;
651 result = inv_serial_single_write(
654 if (result) {
655 LOG_RESULT_LOCATION(result);
656 return result;
662 result = inv_serial_single_write(mlsl_handle,
665 if (result) {
666 LOG_RESULT_LOCATION(result);
667 return result;
673 result = inv_serial_single_write(
676 if (result) {
677 LOG_RESULT_LOCATION(result);
678 return result;
681 result = inv_serial_read(
684 if (result) {
685 LOG_RESULT_LOCATION(result);
686 return result;
697 result = inv_serial_read_fifo(mlsl_handle,
699 if (result) {
700 LOG_RESULT_LOCATION(result);
701 return result;
722 result = inv_serial_single_write(
725 if (result) {
726 LOG_RESULT_LOCATION(result);
727 return result;
731 result = inv_serial_read(mlsl_handle, mputestCfgPtr->addr,
733 if (result) {
734 LOG_RESULT_LOCATION(result);
735 return result;
790 inv_error_t result;
794 result =
798 if (result)
817 result =
819 return result;
974 inv_error_t result;
983 result = inv_serial_read(
986 if (result) {
987 LOG_RESULT_LOCATION(result);
988 return result;
992 result = inv_serial_single_write(
996 if (result) {
997 LOG_RESULT_LOCATION(result);
998 return result;
1005 result = inv_serial_read(
1008 if (result) {
1009 LOG_RESULT_LOCATION(result);
1010 return result;
1016 result = inv_serial_single_write(
1019 if (result) {
1020 LOG_RESULT_LOCATION(result);
1021 return result;
1026 result = inv_serial_single_write(
1029 if (result) {
1030 LOG_RESULT_LOCATION(result);
1031 return result;
1039 result = inv_serial_single_write(
1042 if (result) {
1043 LOG_RESULT_LOCATION(result);
1044 return result;
1051 result = inv_serial_single_write(
1054 if (result) {
1055 LOG_RESULT_LOCATION(result);
1056 return result;
1061 result = inv_serial_single_write(
1064 if (result) {
1065 LOG_RESULT_LOCATION(result);
1066 return result;
1097 * also the final result using a bit-mask like error code as
1110 int result = 0;
1127 result = inv_device_power_mgmt(mlsl_handle, TRUE);
1130 result = test_get_mpu_id(mlsl_handle);
1131 if (result != INV_SUCCESS) {
1134 return result;
1144 result = inv_test_gyro_3050(mlsl_handle,
1149 "no test PASS/FAIL result will be provided\n");
1150 result = inv_test_gyro_6050(mlsl_handle, gyro_biases, &temp_avg);
1155 if (result)
1156 return result;
1182 result = inv_test_accel(mlsl_handle, accel_biases, accelSens[2],
1185 result = inv_test_accel(mlsl_handle, accel_biases, accelSens[2],
1188 if (result)
1189 return result;
1191 result = inv_device_power_mgmt(mlsl_handle, FALSE);
1192 if (result)
1193 return result;
1248 return result;
1264 * also the final result using a bit-mask like error code as
1275 int result;
1277 result = inv_mpu_test(mlsl_handle, provide_result);
1280 if (result == 0) {
1283 MPL_LOGI("Test : FAILED %d/%04X - Biases NOT stored\n", result, result);
1284 return result; /* abort writing the calibration if the
1290 if (result) {
1291 LOG_RESULT_LOCATION(result);
1292 return result;
1296 result = inv_serial_write_cal(dataStore, ML_INIT_CAL_LEN);
1297 if (result) {
1299 result);
1300 return result;
1342 inv_error_t result;
1350 result = inv_serial_read(mlsl_handle, mputestCfgPtr->addr, 0x23,
1353 result = inv_serial_read(mlsl_handle, pdata->address, slave->read_reg,
1356 if (result) {
1357 LOG_RESULT_LOCATION(result);
1358 return result;