#include "my.h"
typedef struct MySm MySm;
struct MySm
{
rui8_t x;
rui8_t y;
};
void
{
MySm *realMe = ((MySm *)(me));
realMe->x = realMe->y = 0;
}
void
{
(void)pe;
((MySm *)(me))->x = 1;
}
void
{
(void)pe;
((MySm *)(me))->y = 2;
}
void
{
(void)pe;
((MySm *)(me))->y = 1;
}
void
{
(void)me;
(void)pe;
}
void
{
(void)me;
(void)pe;
}
void
{
(void)me;
(void)pe;
}
void
{
((MySm *)(me))->x = 1;
}
void
{
((MySm *)(me))->x = 2;
}
void
{
((MySm *)(me))->x = 3;
}
void
{
((MySm *)(me))->y = 0;
}
void
{
(void)me;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
return (((MySm *)(me))->x == 2 || ((MySm *)(me))->x == 3) ?
}
void rkh_fwk_exit(void)
Exit the RKH framework.
#define RKH_CREATE_COMP_STATE(name, en, ex, parent, defchild, history)
This macro creates a composite state.
#define RKH_CREATE_BASIC_STATE(name, en, ex, parent, prepro)
This macro creates a basic state.
#define RKH_CREATE_COND_STATE(name)
This macro creates a conditional pseudostate (a.k.a. junction).
#define RKH_CREATE_BRANCH_TABLE(name)
#define RKH_CREATE_DEEP_HISTORY_STATE(name, parent, dftTrnGuard, dftTrnAction, dftTarget)
#define RKH_CREATE_SHALLOW_HISTORY_STATE(name, parent, dftTrnGuard, dftTrnAction, dftTarget)
#define RKH_CREATE_CHOICE_STATE(name)
This macro creates a choice pseudostate.
#define RKH_CREATE_TRANS_TABLE(name)
This macro creates a state transition table.
#define RKH_TR_FWK_OBJ(obj_)
Entry symbol table for memory object.
#define RKH_TR_FWK_SIG(stateObj_)
Entry symbol table for event signal.
RKH framwwork platform - independent interface.
#define RKH_DCLR_DHIST_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define RKH_DCLR_CHOICE_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define ELSE
Each condition connector can have one special branch with a guard labeled ELSE, which is taken if all...
#define RKH_END_TRANS_TABLE
This macro is used to terminate a state transition table. This table have the general structure shown...
#define RKH_END_BRANCH_TABLE
This macro is used to terminate a state transition table. This table have the general structure shown...
#define RKH_DCLR_BASIC_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define RKH_TRREG(evt_, guard_, effect_, target_)
This macro defines a regular state transition.
#define RKH_BRANCH(guard_, effect_, target_)
This macro defines a branch in the branch table.
#define RKH_GFALSE
This values are retrived by guard functions.
#define RKH_DCLR_SHIST_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define RKH_DCLR_COMP_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define RKH_TRINT(e, g, a)
This macro defines an internal state transition. Internal transitions are simple reactions to events ...
#define RKH_DCLR_COND_STATE
Declares a previously created state/pseudostate to be used as a global object.
#define RKH_ROOT
This macro indicates the root state of a state machine.
#define RKH_SMA_DEF_PTR(me_)
Declare a opaque pointer pointing to an previously created active object.
#define RKH_SMA_CREATE(type, name, prio, ppty, initialState, initialAction, initialEvt)
Declare and allocate a SMA (active object) derived from RKH_SMA_T. Also, initializes and assigns a st...
Represents events without parameters.
Describes the SMA (active object in UML).