qfsm_dis.c File Reference

QFsm_dispatch() implementation. More...

#include "qep_pkg.h"

Go to the source code of this file.

Functions

void QFsm_dispatch (QFsm *me, QEvent const *e)
 Dispatches an event to a FSM.

Detailed Description

QFsm_dispatch() implementation.

Definition in file qfsm_dis.c.


Function Documentation

void QFsm_dispatch ( QFsm me,
QEvent const *  e 
)

Dispatches an event to a FSM.

Processes one event at a time in Run-to-Completion fashion. The argument me is the pointer the state machine structure derived from QFsm. The argument e is a constant pointer the QEvent or a structure derived from QEvent.

Note:
Must be called after the "constructor" QFsm_ctor() and QFsm_init().
See also:
example for QFsm_init()
Encapsulation and Single Inheritance in C

Definition at line 37 of file qfsm_dis.c.

References Q_ENTRY_SIG, Q_EXIT_SIG, Q_RET_HANDLED, Q_RET_TRAN, QEP_TRIG_, QS_BEGIN_, QS_END_, QS_FUN_, QS_INT_LOCK_KEY_, QS_OBJ_, QS_QEP_IGNORED, QS_QEP_INTERN_TRAN, QS_QEP_TRAN, QS_SIG_, QS_smObj_, QEvent::sig, and QFsm::state.

Generated on Tue Mar 16 19:38:11 2010 for QP/C by  doxygen 1.6.3