void STATEMGR_execute(STATEMGR* psState)
{
/* check whether atate machine is ready */
if ( (LIST_items(psState->psActions) > 0) && (LIST_items(psState->psTransitions) > 0) )
{
/* first check, if transition has to be done */
STATEMGR__checkTransitions(psState);
/* now execute cyclic action callback */
if (psState->pfAction != NULL)
{
STATEMGR__pfCallback = psState->pfAction;
STATEMGR__pfCallback();
}
}
}