QP/C  8.0.0
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qpc.h File Reference

QP/C interface including the backwards-compatibility layer. More...

#include "qp_port.h"
#include "qsafe.h"
#include "qs_port.h"

Go to the source code of this file.

Macros

#define QP_API_VERSION   0
 
#define QM_SUPER_SUB(host_)   error "submachines no longer supported"
 
#define QM_TRAN_EP(tatbl_)   error "submachines no longer supported"
 
#define QM_TRAN_XP(xp_, tatbl_)   error "submachines no longer supported"
 
#define QACTIVE_START(me_, prioSpec_, qSto_, qLen_, stkSto_, stkSize_, par_)
 
#define QXTHREAD_START(me_, prioSpec_, qSto_, qLen_, stkSto_, stkSize_, par_)
 
#define Q_onAssert(module_, id_)   Q_onError(module_, id_)
 
#define Q_ALLEGE_ID(id_, expr_)
 
#define Q_ALLEGE(expr_)   Q_ALLEGE_ID(__LINE__, (expr_))
 
#define Q_ASSERT_COMPILE(expr_)   Q_ASSERT_STATIC(expr_)
 
#define QHSM_INIT(me_, par_, qsId_)   QASM_INIT((me_), (par_), (qsId_))
 
#define QHSM_DISPATCH(me_, e_, qsId_)   QASM_DISPATCH((me_), (e_), (qsId_))
 
#define QHsm_isIn(me_, state_)   QASM_IS_IN((QAsm *)(me_), (state_))
 

Typedefs

typedef char char_t
 

Detailed Description

QP/C interface including the backwards-compatibility layer.

Definition in file qpc.h.

Macro Definition Documentation

◆ QP_API_VERSION

#define QP_API_VERSION   0

Definition at line 47 of file qpc.h.

◆ QM_SUPER_SUB

#define QM_SUPER_SUB ( host_)    error "submachines no longer supported"

Definition at line 54 of file qpc.h.

◆ QM_TRAN_EP

#define QM_TRAN_EP ( tatbl_)    error "submachines no longer supported"

Definition at line 55 of file qpc.h.

◆ QM_TRAN_XP

#define QM_TRAN_XP ( xp_,
tatbl_ )   error "submachines no longer supported"

Definition at line 56 of file qpc.h.

◆ QACTIVE_START

#define QACTIVE_START ( me_,
prioSpec_,
qSto_,
qLen_,
stkSto_,
stkSize_,
par_ )
Value:
(QActive_start((QActive *)(me_), (prioSpec_), \
(qSto_), (qLen_), (stkSto_), (stkSize_), (par_)))
Active object class (based on the QHsm implementation strategy)
Definition qp.h:779
Deprecated
Macro for starting an Active Object. Use QActive::QActive_start() instead.

Definition at line 68 of file qpc.h.

◆ QXTHREAD_START

#define QXTHREAD_START ( me_,
prioSpec_,
qSto_,
qLen_,
stkSto_,
stkSize_,
par_ )
Value:
(QXThread_start((QXThread *)(me_), (prioSpec_), \
(qSto_), (qLen_), (stkSto_), (stkSize_), (par_)))
eXtended (blocking) thread of the QXK preemptive kernel
Deprecated
Macro for starting an eXtended Thread. Use QXThread::QXThread_start() instead.

Definition at line 74 of file qpc.h.

◆ Q_onAssert

#define Q_onAssert ( module_,
id_ )   Q_onError(module_, id_)
Deprecated
Assertion failure handler. Use Q_onError() instead.

Definition at line 80 of file qpc.h.

◆ Q_ALLEGE_ID

#define Q_ALLEGE_ID ( id_,
expr_ )
Value:
if (!(expr_)) { \
QF_CRIT_STAT \
QF_CRIT_ENTRY(); \
Q_onError(&Q_this_module_[0], (id_)); \
QF_CRIT_EXIT(); \
} else ((void)0)
Deprecated
#Q_NASSERT preprocessor switch to disable QP assertions
Deprecated
general purpose assertion with user-specified ID number that always evaluates the expr_ expression.
Note
The use of this macro is no longer recommended.

Definition at line 104 of file qpc.h.

◆ Q_ALLEGE

#define Q_ALLEGE ( expr_)    Q_ALLEGE_ID(__LINE__, (expr_))
Deprecated
general purpose assertion without ID number that always evaluates the expr_ expression. Instead of ID number, this macro is based on the standard __LINE__ macro.
Note
The use of this macro is no longer recommended.

Definition at line 119 of file qpc.h.

◆ Q_ASSERT_COMPILE

#define Q_ASSERT_COMPILE ( expr_)    Q_ASSERT_STATIC(expr_)

Static (compile-time) assertion.

Deprecated
Use Q_ASSERT_STATIC() or better yet _Static_assert() instead.

Definition at line 124 of file qpc.h.

◆ QHSM_INIT

#define QHSM_INIT ( me_,
par_,
qsId_ )   QASM_INIT((me_), (par_), (qsId_))
Deprecated
instead use: QASM_INIT()

Definition at line 136 of file qpc.h.

◆ QHSM_DISPATCH

#define QHSM_DISPATCH ( me_,
e_,
qsId_ )   QASM_DISPATCH((me_), (e_), (qsId_))
Deprecated
instead use: QASM_DISPATCH()

Definition at line 139 of file qpc.h.

◆ QHsm_isIn

#define QHsm_isIn ( me_,
state_ )   QASM_IS_IN((QAsm *)(me_), (state_))
Deprecated
instead use: QASM_IS_IN()

Definition at line 142 of file qpc.h.

Typedef Documentation

◆ char_t

typedef char char_t
Deprecated
plain 'char' is no longer forbidden in MISRA-C:2023

Definition at line 64 of file qpc.h.