QP/C  8.0.0
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 QMActive QTicker

Protected Member Functions

void QAsm_ctor (QAsm *const me)
 Constructor of the QAsm base class.
 
QState QHsm_top (QHsm const *const me, QEvt const *const e)
 

Protected Attributes

struct QAsmVtable const * vptr
 Virtual pointer inherited by all QAsm subclasses (see also Object Orientation)
 
union QAsmAttr state
 Current state (pointer to the current state-handler function)
 
union QAsmAttr temp
 Temporary storage for target/act-table etc.
 

Detailed Description

Abstract State Machine class (state machine interface)

Backward Traceability

Definition at line 256 of file qp.h.

Member Function Documentation

◆ QAsm_ctor()

void QAsm_ctor ( QAsm *const me)
protected

Constructor of the QAsm base class.

Details
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)
Backward Traceability
  • QAsm : Abstract State Machine class (state machine interface)

◆ QHsm_top()

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

Definition at line 713 of file qep_hsm.c.

Member Data Documentation

◆ vptr

struct QAsmVtable const* vptr
protected

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

Backward Traceability
  • QAsm : Abstract State Machine class (state machine interface)

Definition at line 260 of file qp.h.

◆ state

union QAsmAttr state
protected

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

Definition at line 265 of file qp.h.

◆ temp

union QAsmAttr temp
protected

Temporary storage for target/act-table etc.

Backward Traceability
  • QAsm : Abstract State Machine class (state machine interface)
Details
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 268 of file qp.h.


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