PxMcGetType()
Get type of a memory class.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxMcType_t PxMcGetType (PxMc_t mcid); - ARGUMENTS
|
- RETURN VALUES
-
-
The memory classes type
-
- ERROR CODES
-
PXERR_MC_ILLMCmcidis not a valid memory classPXERR_GLOBAL_ILLEGAL_COREThe requested memory class is not on the same core
- DESCRIPTION
-
PxMcGetTypereturns the memory classes type:-
PXMcVarsized
-
PXMcVarsizedAdjusted
-
PXMcVarsizedAligned
-
PXMcFixsized
-
PxMcBuddyMemory
-
PXMcTypeLast if an invalid memory class is given.
-
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
mcidmust be:-
a valid PXROS-HR memory class created with a
PxMcRequestcall (V). The validity ofmcidmay also be checked by thePxMcIsValidmacro (F). -
the symbolic value
PXMcSystemdefaultspecifying the system memory class (V) -
the symbolic value
PXMcTaskdefaultspecifying the task’s memory class (V)
-
-
- After call
-
-
The function returns
PXMcTypeLastif the given memory class is invalid.
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxMcType_t Type = PxMcGetType(mcid)