Lines Matching refs:result

68  *    result = inv_dmp_open( );
69 * if (INV_SUCCESS != result) {
80 inv_error_t result;
95 result = inv_state_transition(INV_STATE_DMP_OPENED);
96 if (result) {
97 LOG_RESULT_LOCATION(result);
98 return result;
101 result = inv_dl_open(inv_get_serial_handle());
102 if (result) {
103 LOG_RESULT_LOCATION(result);
104 return result;
114 result = inv_setup_dmp();
115 if (result) {
116 LOG_RESULT_LOCATION(result);
117 return result;
123 result = inv_init_fifo_param();
124 if (result) {
125 LOG_RESULT_LOCATION(result);
126 return result;
128 result = inv_enable_set_bias();
129 if (result) {
130 LOG_RESULT_LOCATION(result);
131 return result;
145 result = inv_init_requested_sensors(requested_sensors);
146 if (result) {
147 LOG_RESULT_LOCATION(result);
148 return result;
150 result = inv_apply_calibration();
151 if (result) {
152 LOG_RESULT_LOCATION(result);
153 return result;
156 result = inv_apply_endian_accel();
159 return result;
168 * result = inv_dmp_start();
169 * if (INV_SUCCESS != result) {
179 inv_error_t result;
184 result = inv_state_transition(INV_STATE_DMP_STARTED);
185 if (result) {
186 LOG_RESULT_LOCATION(result);
187 return result;
190 result = inv_dl_start(inv_get_dl_config()->requested_sensors);
191 if (result) {
192 LOG_RESULT_LOCATION(result);
193 return result;
197 result = inv_reset_motion();
198 if (result) {
199 LOG_RESULT_LOCATION(result);
200 return result;
203 return result;
216 inv_error_t result;
221 result = inv_state_transition(INV_STATE_DMP_OPENED);
222 if (result) {
223 LOG_RESULT_LOCATION(result);
224 return result;
226 result = inv_dl_stop(INV_ALL_SENSORS);
227 if (result) {
228 LOG_RESULT_LOCATION(result);
229 return result;
232 return result;
247 * result = inv_dmp_close();
248 * if (INV_SUCCESS != result) {
258 inv_error_t result;
264 result = inv_disable_set_bias();
265 ERROR_CHECK_FIRST(firstError, result);
267 result = inv_dl_stop(INV_ALL_SENSORS);
268 ERROR_CHECK_FIRST(firstError, result);
270 result = inv_close_fifo();
271 ERROR_CHECK_FIRST(firstError, result);
273 result = inv_dl_close();
274 ERROR_CHECK_FIRST(firstError, result);
276 result = inv_state_transition(INV_STATE_SERIAL_OPENED);
277 ERROR_CHECK_FIRST(firstError, result);
279 return result;