| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <smf.h>
Data Fields | |
| const struct smf_state * | current | 
| const struct smf_state * | previous | 
| int32_t | terminate_val | 
| uint32_t | internal | 
Defines the current context of the state machine.
| const struct smf_state* smf_ctx::current | 
Current state the state machine is executing.
| uint32_t smf_ctx::internal | 
The state machine casts this to a "struct internal_ctx" and it's used to track state machine context
| const struct smf_state* smf_ctx::previous | 
Previous state the state machine executed
| int32_t smf_ctx::terminate_val | 
This value is set by the set_terminate function and should terminate the state machine when its set to a value other than zero when it's returned by the run_state function.