Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Defines the current context of the state machine. More...

#include <smf.h>

Data Fields

const struct smf_statecurrent
 Current state the state machine is executing.
 
const struct smf_stateprevious
 Previous state the state machine executed.
 
int32_t 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.
 
uint32_t internal
 The state machine casts this to a "struct internal_ctx" and it's used to track state machine context.
 

Detailed Description

Defines the current context of the state machine.

Field Documentation

◆ current

const struct smf_state* smf_ctx::current

Current state the state machine is executing.

◆ internal

uint32_t smf_ctx::internal

The state machine casts this to a "struct internal_ctx" and it's used to track state machine context.

◆ previous

const struct smf_state* smf_ctx::previous

Previous state the state machine executed.

◆ terminate_val

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.


The documentation for this struct was generated from the following file: