QP/C  7.3.3
Real-Time Embedded Framework
Loading...
Searching...
No Matches
QAsm Class Reference

Abstract State Machine class (state machine interface) More...

#include "qp.h"

Inheritance diagram for QAsm:
QActive QHsm QMsm QActiveDummy QMActive QTicker QXThread QHsmDummy

Protected Member Functions

void QAsm_ctor (QAsm *const me)
 
QState QHsm_top (QHsm const *const me, QEvt const *const e)
 

Protected Attributes

struct QAsmVtable const * vptr
 
union QAsmAttr state
 
union QAsmAttr temp
 

Detailed Description

Abstract State Machine class (state machine interface)

Traceability

Definition at line 277 of file qp.h.

Member Function Documentation

◆ QAsm_ctor()

QAsm::QAsm_ctor ( QAsm *const  me)
protected

Constructor of the QAsm base class.

Description
The constructor initializes the QAsm::vptr and clears the internal attributes. The constructor is "protected" because it is only intended to be invoked from the subclasses of the abstract base class QAsm.
Parameters
[in,out]mecurrent instance pointer (see Object Orientation)

◆ QHsm_top()

QState QHsm_top ( QHsm const *const  me,
QEvt const *const  e 
)
protected

Definition at line 707 of file qep_hsm.c.

Member Data Documentation

◆ vptr

QAsm::vptr
protected

Virtual pointer inherited by all QHsm subclasses (see also Object Orientation).

Traceability

Definition at line 281 of file qp.h.

◆ state

QAsm::state
protected

Current state (pointer to the current state-handler function)

Traceability

Definition at line 286 of file qp.h.

◆ temp

QAsm::temp
protected

Temporary storage for target/act-table, etc.

Description
The temp data member is used for passing information from the QP Application to the "event processor" of QP. The temp member is also used as the Duplicate Inverse Storage of the state attribute in between transitions (part of QP Functional Safety (FuSa) Subsystem).

Definition at line 289 of file qp.h.


The documentation for this class was generated from the following files: