QP/C  7.4.0-rc.2
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qp_pkg.h File Reference

Internal (package scope) QP/C interface. More...

Go to the source code of this file.

Classes

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

Macros

#define QTE_IS_LINKED   (1U << 7U)
 
#define QTE_WAS_DISARMED   (1U << 6U)
 
#define QTE_TICK_RATE   0x0FU
 
#define QACTIVE_CAST_(ptr_)   ((QActive *)(ptr_))
 
#define Q_UINTPTR_CAST_(ptr_)   ((uintptr_t)(ptr_))
 

Detailed Description

Internal (package scope) QP/C interface.

Traceability
  • DVP-QP-MC4-D04_08

Definition in file qp_pkg.h.

Macro Definition Documentation

◆ QTE_IS_LINKED

#define QTE_IS_LINKED   (1U << 7U)

Definition at line 82 of file qp_pkg.h.

◆ QTE_WAS_DISARMED

#define QTE_WAS_DISARMED   (1U << 6U)

Definition at line 83 of file qp_pkg.h.

◆ QTE_TICK_RATE

#define QTE_TICK_RATE   0x0FU

Definition at line 84 of file qp_pkg.h.

◆ QACTIVE_CAST_

#define QACTIVE_CAST_ ( ptr_)    ((QActive *)(ptr_))

Internal helper macro to encapsulate a MISRA deviation

Parameters
[in]ptr_active object pointer

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

Traceability
  • DVR-QP-MC4-R11_05
  • DVP-QP-MC4-R11_03B
  • DVP-QP-PCLP-826

Definition at line 96 of file qp_pkg.h.

◆ Q_UINTPTR_CAST_

#define Q_UINTPTR_CAST_ ( ptr_)    ((uintptr_t)(ptr_))

Internal helper macro to cast pointers to integers

Parameters
[in]ptr_object pointer
Returns
The integer representation of the pointer
Traceability
  • DVP-QP-MC4-D04_09A (false-positive)
  • DVR-QP-MC4-R11_04

Definition at line 97 of file qp_pkg.h.