QP/C  7.3.3
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 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_)   QHsm_isIn_((QAsm *)(me_), (state_))
 
#define QS_FILTER_ON(rec_)   QS_GLB_FILTER((rec_))
 
#define QS_FILTER_OFF(rec_)   QS_GLB_FILTER(-(rec_))
 
#define QS_FILTER_SM_OBJ(obj_)   ((void)0)
 
#define QS_FILTER_AO_OBJ(obj_)   ((void)0)
 
#define QS_FILTER_MP_OBJ(obj_)   ((void)0)
 
#define QS_FILTER_EQ_OBJ(obj_)   ((void)0)
 
#define QS_FILTER_TE_OBJ(obj_)   ((void)0)
 
#define QS_FILTER_AP_OBJ(obj_)   (QS_filt_.loc_AP = (obj_))
 
#define QS_BEGIN(rec_, obj_)
 
#define QS_U32_HEX(width_, data_)    (QS_u32_fmt_((uint8_t)(((width_) << 4)) | QS_HEX_FMT, (data_)))
 
#define Q_XTHREAD_CAST(handler_)   ((QXThreadHandler)(handler_))
 
#define QMSM_INIT(me_, par_, qsId_)   QASM_INIT((me_), (par_), (qsId_))
 
#define QMSM_DISPATCH(me_, e_, qsId_)   QASM_DISPATCH((me_), (e_), (qsId_))
 

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 62 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 76 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 94 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 109 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 114 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 126 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 129 of file qpc.h.

◆ QHsm_isIn

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

Definition at line 132 of file qpc.h.

◆ QS_FILTER_ON

#define QS_FILTER_ON (   rec_)    QS_GLB_FILTER((rec_))
Deprecated:
enable the QS global filter

Definition at line 138 of file qpc.h.

◆ QS_FILTER_OFF

#define QS_FILTER_OFF (   rec_)    QS_GLB_FILTER(-(rec_))
Deprecated:
disable the QS global filter

Definition at line 141 of file qpc.h.

◆ QS_FILTER_SM_OBJ

#define QS_FILTER_SM_OBJ (   obj_)    ((void)0)
Deprecated:
enable the QS local filter for SM (state machine) object

Definition at line 144 of file qpc.h.

◆ QS_FILTER_AO_OBJ

#define QS_FILTER_AO_OBJ (   obj_)    ((void)0)
Deprecated:
enable the QS local filter for AO (active objects)

Definition at line 147 of file qpc.h.

◆ QS_FILTER_MP_OBJ

#define QS_FILTER_MP_OBJ (   obj_)    ((void)0)
Deprecated:
enable the QS local filter for MP (memory pool) object

Definition at line 150 of file qpc.h.

◆ QS_FILTER_EQ_OBJ

#define QS_FILTER_EQ_OBJ (   obj_)    ((void)0)
Deprecated:
enable the QS local filter for EQ (event queue) object

Definition at line 153 of file qpc.h.

◆ QS_FILTER_TE_OBJ

#define QS_FILTER_TE_OBJ (   obj_)    ((void)0)
Deprecated:
enable the QS local filter for TE (time event) object

Definition at line 156 of file qpc.h.

◆ QS_FILTER_AP_OBJ

#define QS_FILTER_AP_OBJ (   obj_)    (QS_filt_.loc_AP = (obj_))
Deprecated:
local Filter for a generic application object obj_.

Definition at line 161 of file qpc.h.

◆ QS_BEGIN

#define QS_BEGIN (   rec_,
  obj_ 
)
Value:
if (((QS_filt_.glb[(uint_fast8_t)(rec_) >> 3U] \
& (1U << ((uint_fast8_t)(rec_) & 7U))) != 0U) \
&& ((QS_priv_.locFilter_AP == (void *)0) \
|| (QS_priv_.locFilter_AP == (obj_)))) \
{ \
QS_CRIT_STAT \
QS_CRIT_ENTRY(); \
QS_beginRec_((uint_fast8_t)(rec_)); \
QS_TIME_PRE_(); {
Deprecated:
begin of a user QS record, instead use QS_BEGIN_ID()

Definition at line 164 of file qpc.h.

◆ QS_U32_HEX

#define QS_U32_HEX (   width_,
  data_ 
)     (QS_u32_fmt_((uint8_t)(((width_) << 4)) | QS_HEX_FMT, (data_)))
Deprecated:
Output formatted uint32_t to the QS record

Definition at line 176 of file qpc.h.

◆ Q_XTHREAD_CAST

#define Q_XTHREAD_CAST (   handler_)    ((QXThreadHandler)(handler_))
Deprecated:
casting to QXThreadHandler instead use: the new signature of QXThreadHandler and don't cast

Definition at line 192 of file qpc.h.

◆ QMSM_INIT

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

Definition at line 198 of file qpc.h.

◆ QMSM_DISPATCH

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

Definition at line 201 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 72 of file qpc.h.