Lines Matching refs:result

234     inv_error_t result;
251 result = inv_set_mpu_memory(key, 4, regs);
253 return result;
266 int result;
400 result = inv_set_mpu_memory(KEY_CFG_16, 1, &regs);
401 if (result) {
402 LOG_RESULT_LOCATION(result);
403 return result;
411 result = inv_set_mpu_memory(KEY_CFG_16, 1, &regs);
412 if (result) {
413 LOG_RESULT_LOCATION(result);
414 return result;
465 inv_error_t result = INV_SUCCESS;
477 result = inv_set_mpu_memory(KEY_D_1_178, 2, regs);
478 if (result) {
479 LOG_RESULT_LOCATION(result);
480 return result;
491 result = inv_set_mpu_memory(KEY_D_1_128, sizeof(long), regs);
492 if (result) {
493 LOG_RESULT_LOCATION(result);
494 return result;
496 result = inv_reset_fifo();
497 if (result) {
498 LOG_RESULT_LOCATION(result);
499 return result;
503 return result;
525 inv_error_t result;
532 result = inv_create_mutex(&fifo_rate_obj.mutex);
533 if (result) {
534 LOG_RESULT_LOCATION(result);
535 return result;
537 result = inv_register_state_callback(inv_state_change_fifo);
538 if (result) {
539 LOG_RESULT_LOCATION(result);
540 return result;
542 return result;
551 inv_error_t result;
553 result = inv_unregister_state_callback(inv_state_change_fifo);
554 ERROR_CHECK_FIRST(first, result);
555 result = inv_destroy_mutex(fifo_rate_obj.mutex);
556 ERROR_CHECK_FIRST(first, result);
596 inv_error_t result = INV_SUCCESS;
606 return result; // Nothing to read
616 result = inv_get_fifo_status();
617 if (INV_SUCCESS != result) {
620 return result;
623 result = inv_process_fifo_packet(buf);
624 if (result) {
625 LOG_RESULT_LOCATION(result);
626 return result;
630 result = inv_get_accel_data(data);
631 if (result == INV_ERROR_ACCEL_DATA_NOT_READY) {
634 if (result) {
635 LOG_RESULT_LOCATION(result);
636 return result;
657 result = inv_decode_quantized_accel();
658 if (result) {
659 LOG_RESULT_LOCATION(result);
660 return result;
665 result = inv_accel_compass_supervisor();
666 if (result) {
667 LOG_RESULT_LOCATION(result);
668 return result;
672 result = inv_pressure_supervisor();
673 if (result) {
674 LOG_RESULT_LOCATION(result);
675 return result;
679 result = inv_run_fifo_rate_processes();
680 if (result) {
681 LOG_RESULT_LOCATION(result);
682 return result;
686 return result;
791 inv_error_t result;
797 result = inv_serial_read(inv_get_serial_handle(),
800 if (result) {
801 LOG_RESULT_LOCATION(result);
802 return result;
820 inv_error_t result;
824 result = inv_get_temperature_raw(&tr);
825 if (result) {
826 LOG_RESULT_LOCATION(result);
827 return result;
889 inv_error_t result;
893 result =
897 if (result) {
898 LOG_RESULT_LOCATION(result);
899 return result;
994 inv_error_t result;
1000 result = inv_construct3_fifo(regs, elements, accuracy, REF_ACCEL,
1002 if (result) {
1003 LOG_RESULT_LOCATION(result);
1004 return result;
1028 inv_error_t result;
1049 result = inv_set_mpu_memory(KEY_CFG_1, 5, regs);
1050 if (result) {
1051 LOG_RESULT_LOCATION(result);
1052 return result;
1078 inv_error_t result;
1094 result = inv_set_mpu_memory(KEY_CFG_23, 1, &regs);
1095 if (result) {
1096 LOG_RESULT_LOCATION(result);
1097 return result;
1125 inv_error_t result;
1127 result = inv_send_quaternion(accuracy);
1128 if (result) {
1129 LOG_RESULT_LOCATION(result);
1130 return result;
1148 inv_error_t result;
1155 result = inv_set_mpu_memory(KEY_CFG_GYRO_SOURCE, 1, regs);
1156 if (result) {
1157 LOG_RESULT_LOCATION(result);
1158 return result;
1166 result = inv_set_mpu_memory(KEY_CFG_GYRO_SOURCE, 1, regs);
1167 if (result) {
1168 LOG_RESULT_LOCATION(result);
1169 return result;
1176 result = inv_construct3_fifo(regs, elements, accuracy, REF_GYROS,
1200 inv_error_t result;
1206 result = inv_send_gravity(elements, accuracy);
1207 if (result) {
1208 LOG_RESULT_LOCATION(result);
1209 return result;
1211 result = inv_send_accel(elements, accuracy);
1212 if (result) {
1213 LOG_RESULT_LOCATION(result);
1214 return result;
1235 inv_error_t result;
1237 result = inv_send_linear_accel(INV_ALL, accuracy);
1238 if (result) {
1239 LOG_RESULT_LOCATION(result);
1240 return result;
1242 result = inv_send_quaternion(accuracy);
1259 inv_error_t result;
1279 result = inv_set_mpu_memory(KEY_CFG_8, 5, regs);
1280 if (result) {
1281 LOG_RESULT_LOCATION(result);
1282 return result;
1300 int result;
1347 result = inv_set_mpu_memory(KEY_CFG_15, 7, regs);
1348 if (result) {
1349 LOG_RESULT_LOCATION(result);
1350 return result;
1388 result = inv_set_mpu_memory(KEY_CFG_15, 4, regs);
1389 if (result) {
1390 LOG_RESULT_LOCATION(result);
1391 return result;
1422 int result;
1459 result = inv_set_mpu_memory(KEY_CFG_EXTERNAL, sizeof(regs), regs);
1460 if (result) {
1461 LOG_RESULT_LOCATION(result);
1462 return result;
1500 inv_error_t result;
1528 result = inv_set_mpu_memory(KEY_CFG_TAP0, 5, regs);
1529 if (result) {
1530 LOG_RESULT_LOCATION(result);
1531 return result;
1540 result = inv_set_mpu_memory(KEY_CFG_TAP4, 4, regs2);
1541 if (result) {
1542 LOG_RESULT_LOCATION(result);
1543 return result;
1554 inv_error_t result;
1574 result = inv_set_mpu_memory(KEY_P_EIS_FIFO_XSHIFT, 3, regs);
1701 inv_error_t result;
1713 result = inv_get_quaternion(quat);
1714 if (result) {
1715 LOG_RESULT_LOCATION(result);
1716 return result;
1765 inv_error_t result;
1770 result = inv_get_gravity(grav);
1771 if (result) {
1772 LOG_RESULT_LOCATION(result);
1773 return result;
1775 result = inv_get_accel(la);
1776 if (result) {
1777 LOG_RESULT_LOCATION(result);
1778 return result;
1882 int result;
1887 result = inv_get_accel(lData);
1888 if (result) {
1889 LOG_RESULT_LOCATION(result);
1890 return result;
1960 inv_error_t result = INV_SUCCESS;
1974 result = inv_set_mpu_memory(KEY_D_0_22, 2, regs);
1975 if (result) {
1976 LOG_RESULT_LOCATION(result);
1977 return result;
1985 result = inv_run_state_callbacks(state);
1996 result = inv_mpu_config_accel(mldl_cfg,
1999 if (result) {
2000 LOG_RESULT_LOCATION(result);
2001 return result;
2003 result = inv_mpu_get_accel_config(mldl_cfg,
2006 if (result) {
2007 LOG_RESULT_LOCATION(result);
2008 return result;
2015 return result;
2101 inv_error_t result;
2103 result = inv_get_accel(accel);
2104 if (INV_SUCCESS != result) {
2138 inv_error_t result;
2141 result = inv_lock_mutex(fifo_rate_obj.mutex);
2142 if (INV_SUCCESS != result) {
2143 return result;
2178 result = INV_ERROR_MEMORY_EXAUSTED;
2182 return result;
2195 inv_error_t result;
2197 result = inv_lock_mutex(fifo_rate_obj.mutex);
2198 if (INV_SUCCESS != result) {
2199 return result;
2202 result = INV_ERROR_INVALID_PARAMETER;
2214 result = INV_SUCCESS;
2220 return result;
2237 inv_error_t result, result2;
2239 result = inv_lock_mutex(fifo_rate_obj.mutex);
2240 if (INV_SUCCESS != result) {
2241 MPL_LOGE("MLOsLockMutex returned %d\n", result);
2242 return result;
2251 if (result == INV_SUCCESS)
2255 result = result2;
2260 return result;