| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <smf.h>
Data Fields | |
| const state_execution | entry | 
| const state_execution | run | 
| const state_execution | exit | 
| const struct smf_state * | parent | 
General state that can be used in multiple state machines.
| const state_execution smf_state::entry | 
Optional method that will be run when this state is entered
| const state_execution smf_state::exit | 
Optional method that will be run when this state exists
| const struct smf_state* smf_state::parent | 
Optional parent state that contains common entry/run/exit implementation among various child states. entry: Parent function executes BEFORE child function. run: Parent function executes AFTER child function. exit: Parent function executes AFTER child function.
Note: When transitioning between two child states with a shared parent, that parent's exit and entry functions do not execute.
| const state_execution smf_state::run | 
Optional method that will be run repeatedly during state machine loop.