Lines Matching full:state
10 * @brief State Machine Framework header file
19 * @brief State Machine Framework API
20 * @defgroup smf State Machine Framework API
27 * @brief Macro to create a hierarchical state with initial transitions.
29 * @param _entry State entry function or NULL
30 * @param _run State run function or NULL
31 * @param _exit State exit function or NULL
32 * @param _parent State parent object or NULL
33 * @param _initial State initial transition object or NULL
45 * @brief Macro to cast user defined object to state machine
59 * @brief Function pointer that implements a portion of a state
65 /** General state that can be used in multiple state machines. */
67 /** Optional method that will be run when this state is entered */
70 * Optional method that will be run repeatedly during state machine
74 /** Optional method that will be run when this state exists */
78 * Optional parent state that contains common entry/run/exit
91 * Optional initial transition state. NULL for leaf states.
98 /** Defines the current context of the state machine. */
100 /** Current state the state machine is executing. */
102 /** Previous state the state machine executed */
106 /** Currently executing state (which may be a parent) */
111 * should terminate the state machine when its set to a
117 * The state machine casts this to a "struct internal_ctx" and it's
118 * used to track state machine context
124 * @brief Initializes the state machine and sets its initial state.
126 * @param ctx State machine context
127 * @param init_state Initial state the state machine starts in.
132 * @brief Changes a state machines state. This handles exiting the previous
133 * state and entering the target state. For HSMs the entry and exit
136 * @param ctx State machine context
137 * @param new_state State to transition to (NULL is valid and exits all states)
142 * @brief Terminate a state machine
144 * @param ctx State machine context
155 * @param ctx State machine context
160 * @brief Runs one iteration of a state machine (including any parent states)
162 * @param ctx State machine context
163 * @return A non-zero value should terminate the state machine. This
164 * non-zero value could represent a terminal state being reached
166 * termination of the state machine.