Lines Matching full:state
26 * @brief Basic state machine definition and support for the Motion Library.
30 * @brief The Motion Library state machine definition.
84 * @brief return a string containing the label assigned to the given state.
85 * @param state The state of which the label has to be returned.
86 * @return A string containing the state label.
88 char *inv_state_name(unsigned char state)
90 switch (state) {
110 * @brief Perform a transition from the current state to newState.
115 * @param newState state we are transitioning to.
127 ((inv_params_obj.state == INV_STATE_SERIAL_OPENED) ||
128 (inv_params_obj.state == INV_STATE_DMP_STARTED)))
131 (inv_params_obj.state == INV_STATE_DMP_OPENED))) {
135 MPL_LOGE("Error : illegal state transition from %s to %s\n",
136 inv_state_name(inv_params_obj.state),
143 ("ML State transition from %s to %s\n",
144 inv_state_name(inv_params_obj.state),
150 inv_params_obj.state = newState;
161 return (inv_params_obj.state);
166 * @brief This registers a function to be called each time the state
168 * It will be called at the start of a state change before the
169 * state change has taken place. See Also inv_unregister_state_callback()
213 * @brief This unregisters a function to be called each time the state