QP Framework in C internal (package-scope) interface
More...
Go to the source code of this file.
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.
◆ QACTIVE_CAST_
| #define QACTIVE_CAST_ |
( |
| ptr_ | ) |
|
Value:
Active object class (based on the QHsm implementation strategy).
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) |
◆ QTE_FLAG_WAS_DISARMED
| #define QTE_FLAG_WAS_DISARMED (1U << 6U) |
◆ QP_DIS_UPDATE
| #define QP_DIS_UPDATE |
( |
| T_, |
|
|
| org_ ) |
Value:
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.