Lines Matching refs:newState
110 * @brief Perform a transition from the current state to newState.
115 * @param newState state we are transitioning to.
118 inv_error_t inv_state_transition(unsigned char newState)
122 if (newState == INV_STATE_SERIAL_CLOSED) {
124 } else if (newState == INV_STATE_SERIAL_OPENED) {
126 } else if (((newState == INV_STATE_DMP_OPENED) &&
130 ((newState == INV_STATE_DMP_STARTED) &&
137 inv_state_name(newState));
145 inv_state_name(newState)));
146 result = inv_run_state_callbacks(newState);
147 if (INV_SUCCESS == result && newState == INV_STATE_SERIAL_CLOSED) {
150 inv_params_obj.state = newState;
247 inv_error_t inv_run_state_callbacks(unsigned char newState)
260 result = sStateChangeCallbacks.stateChangeCallbacks[kk] (newState);