Lines Matching refs:result

79     inv_error_t result;
82 result = inv_set_mpu_memory(KEY_CFG_MOTION_BIAS, 3, regs);
83 return result;
90 inv_error_t result;
93 result = inv_set_mpu_memory(KEY_CFG_MOTION_BIAS, 3, regs);
94 return result;
101 inv_error_t result;
109 result = inv_set_mpu_memory(KEY_FCFG_6, 1, regs);
110 if (result) {
111 LOG_RESULT_LOCATION(result);
112 return result;
115 result = inv_get_mpu_memory(KEY_D_1_244, 12, regs);
116 if (result) {
117 LOG_RESULT_LOCATION(result);
118 return result;
124 result = inv_set_mpu_memory(KEY_FCFG_6, 1, regs);
125 if (result) {
126 LOG_RESULT_LOCATION(result);
127 return result;
130 result = inv_set_gyro_bias_in_hw_unit(bias, INV_SGB_NO_MOTION);
131 if (result) {
132 LOG_RESULT_LOCATION(result);
133 return result;
136 result =
139 if (result) {
140 LOG_RESULT_LOCATION(result);
141 return result;
143 result = inv_set_mpu_memory(KEY_DMP_PREVPTAT, 2, regs);
144 if (result) {
145 LOG_RESULT_LOCATION(result);
146 return result;
159 inv_error_t result;
172 result = inv_get_accel(accel);
173 if (result != INV_ERROR_FEATURE_NOT_ENABLED) {
174 if (result) {
175 LOG_RESULT_LOCATION(result);
176 return result;
227 inv_error_t result;
229 result = MLAccelMotionDetection(inv_obj);
245 result = inv_get_mpu_memory(KEY_D_1_98, 2, regs);
246 if (result) {
247 LOG_RESULT_LOCATION(result);
248 return result;
263 result = inv_set_mpu_memory(KEY_CFG_18, 3, regs);
264 if (result) {
265 LOG_RESULT_LOCATION(result);
266 return result;
271 result = inv_set_mpu_memory(KEY_D_1_106, 2, regs);
272 if (result) {
273 LOG_RESULT_LOCATION(result);
274 return result;
286 result = inv_set_mpu_memory(KEY_CFG_18, 3, regs);
287 if (result) {
288 LOG_RESULT_LOCATION(result);
289 return result;
295 result = inv_set_mpu_memory(KEY_D_1_106, 2, regs);
296 if (result) {
297 LOG_RESULT_LOCATION(result);
298 return result;
315 result = inv_get_mpu_memory(KEY_D_1_98, 2, regs);
316 if (result) {
317 LOG_RESULT_LOCATION(result);
318 return result;
331 result = inv_get_mpu_memory(KEY_D_2_96, 12, biasReg);
363 inv_error_t result;
365 result =
370 if (result) {
371 LOG_RESULT_LOCATION(result);
372 return result;
374 result = inv_turn_on_bias_from_no_motion();
376 return result;
381 inv_error_t result;
383 result = inv_unregister_fifo_rate_process(MLPollMotionStatus);
386 if (result) {
387 LOG_RESULT_LOCATION(result);
388 return result;
390 result = inv_turn_off_bias_from_no_motion();
392 return result;