|
RKH
|
Describes the state machine. More...
#include <rkhsm.h>
Data Fields | |
| rui8_t | prio |
| SMA (a.k.a Active Object) priority. | |
| rui8_t | ppty |
| State machine properties. | |
| RKHROM RKH_ST_T * | istate |
| Name of State Machine Application (a.k.a Active Object). | |
| RKH_TRN_ACT_T | iaction |
| Points to initializing action (optional). | |
| RKHROM RKH_ST_T * | state |
| Pointer to an event that will be passed to state machine application when it starts. Could be used to pass arguments to the state machine like an argc/argv. This argument is optional, thus it could be declared as NULL or eliminated in compile-time with RKH_CFG_SMA_INIT_EVT_EN = 0. | |
| RKH_EVT_T * | propagatedEvent |
| Points to the propagated event. | |
Describes the state machine.
RKH_SM_T is not intended to be instantiated directly, but rather serves as the base structure for derivation of state machines in the application code. Also, is the base structure of active object structure RKH_SMA_T.
| rui8_t prio |
| rui8_t ppty |
| RKHROM RKH_ST_T* istate |
Name of State Machine Application (a.k.a Active Object).
Pointer to an ASCII string (NULL terminated) to assign a name to the State Machine Application (a.k.a Active Object). The name can be displayed by debuggers or by Trazer.
Points to initial state.
This state could be defined either composite or basic (not pseudo-state).
| RKH_TRN_ACT_T iaction |
| RKHROM RKH_ST_T* state |
Pointer to an event that will be passed to state machine application when it starts. Could be used to pass arguments to the state machine like an argc/argv. This argument is optional, thus it could be declared as NULL or eliminated in compile-time with RKH_CFG_SMA_INIT_EVT_EN = 0.
Points to current stable state (simple or final state).