ecu_fsm_state Struct Reference

ECU: ecu_fsm_state Struct Reference
ECU
ecu_fsm_state Struct Reference

Single state in fsm, initialized via ECU_FSM_STATE_CTOR(). Pointers are const-qualified to only allow states to be created at compile-time. More...

#include <fsm.h>

Data Fields

void(*const entry )(struct ecu_fsm *fsm)
 Executes when state first entered. Optional.
 
void(*const exit )(struct ecu_fsm *fsm)
 Executes when state exits. Optional.
 
void(*const handler )(struct ecu_fsm *fsm, const void *event)
 Processes events dispatched to this state. Mandatory.
 

Detailed Description

Single state in fsm, initialized via ECU_FSM_STATE_CTOR(). Pointers are const-qualified to only allow states to be created at compile-time.

Warning
PRIVATE. Unless otherwise specified, all members can only be edited via the public API.

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