QP/C 8.1.1
Real-Time Event Framework
Loading...
Searching...
No Matches
qp_pkg.h File Reference

QP Framework in C internal (package-scope) interface More...

Go to the source code of this file.

Classes

class  QF_Attr
 Private attributes of the QF framework. More...

Macros

#define QACTIVE_CAST_(ptr_)
 Internal helper macro to encapsulate MISRA deviation.
#define QTE_FLAG_IS_LINKED   (1U << 7U)
#define QTE_FLAG_WAS_DISARMED   (1U << 6U)
#define QP_DIS_UPDATE(T_, org_)
 Update Duplicate Inverse Storage integer variable.
#define QP_DIS_VERIFY(T_, org_, dis_)
 Verify integer variable against its Duplicate Inverse Storage.

Detailed Description

QP Framework in C internal (package-scope) interface

Forward Traceability

  • DVR_QP_MC5_D4_8: MISRA-C:2025 Directive 4.8(Advisory): If a pointer to a structure or union is never dereferenced within a translation unit then the implementation of the object should be hidden

Definition in file qp_pkg.h.

Macro Definition Documentation

◆ QACTIVE_CAST_

#define QACTIVE_CAST_ ( ptr_)
Value:
((QActive *)(ptr_))
Active object class (based on the QHsm implementation strategy).
Definition qp.h:428

Internal helper macro to encapsulate MISRA deviation.

Details
This internal macro encapsulates the violation of MISRA-C:2025 Rule 11.5(A).

Parameters
[in]ptr_active object pointer

Forward Traceability

  • DVR_QP_MC5_D4_9A: MISRA-C:2025 Directive 4.9(Advisory): A function should be used in preference to a function-like macro where they are interchangeable (FALSE-POSITIVE diagnostics)
  • DVR_QP_MC5_R11_3B: MISRA-C:2025 Rule 11.3(Required): A cast shall not be performed between a pointer to object type and a pointer to a different object type (object-oriented downcast)
  • DVR_QP_MC5_R11_5: MISRA-C:2025 Rule 11.5(Advisory): A conversion should not be performed from pointer to void into pointer to object
  • DVR_QP_MC5_R11_8: MISRA-C:2025 Rule 11.8(Required): A cast shall not remove any 'const' or 'volatile' qualification from the type pointer to by a pointer
  • DVR_QP_PCLP_826: PCLP Diagnostic: Suspicious pointer-to-pointer conversion (area too small)

Definition at line 35 of file qp_pkg.h.

◆ QTE_FLAG_IS_LINKED

#define QTE_FLAG_IS_LINKED   (1U << 7U)

Definition at line 52 of file qp_pkg.h.

◆ QTE_FLAG_WAS_DISARMED

#define QTE_FLAG_WAS_DISARMED   (1U << 6U)

Definition at line 53 of file qp_pkg.h.

◆ QP_DIS_UPDATE

#define QP_DIS_UPDATE ( T_,
org_ )
Value:
((T_)(~(org_)))

Update Duplicate Inverse Storage integer variable.

Details

Parameters
[in]T_type of the DIS variable
[in]org_original integer variable to be mirrored
Returns
the inverted value of the original integer variable to be stored in the mirrored DIS variable.

Forward Traceability

  • DVR_QP_MC5_D4_9A: MISRA-C:2025 Directive 4.9(Advisory): A function should be used in preference to a function-like macro where they are interchangeable (FALSE-POSITIVE diagnostics)

Definition at line 74 of file qp_pkg.h.

◆ QP_DIS_VERIFY

#define QP_DIS_VERIFY ( T_,
org_,
dis_ )
Value:
((org_) == (T_)(~(dis_)))

Verify integer variable against its Duplicate Inverse Storage.

Details

Parameters
[in]T_type of the DIS variable
[in]org_original integer variable to be mirrored
[in]dis_Duplicate Inverse Storage of the original
Returns
true when the original variable matches the Duplicate Inverse Storage and false otherwise.

Forward Traceability

  • DVR_QP_MC5_D4_9A: MISRA-C:2025 Directive 4.9(Advisory): A function should be used in preference to a function-like macro where they are interchangeable (FALSE-POSITIVE diagnostics)

Definition at line 75 of file qp_pkg.h.