PxOpoolGetType()
Return the object pool type.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxOpoolType_t PxOpoolGetType (PxOpool_t OpoolId); - ARGUMENTS
|
- RETURN VALUES
-
-
The object pool type
-
- ERROR CODES
-
PXERR_OPOOL_ILLOPOOLOpoolIdis not a valid object pool idPXERR_GLOBAL_ILLEGAL_COREThe requested object pool is not on the same core
- DESCRIPTION
-
PxOpoolGetTypereturns the type of the given object pool. The type can be eitherPXOpoolVirtual,PXOpoolReal, orPXOpoolIllegalTypeif an invalid object pool is given.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
OpoolIdmust be a valid PXROS-HR object pool. The validity ofOpoolIdmay be checked by the following macros:-
PxOpoolIdIsValid()must be true. -
PxOpoolIdGet()must not be_PXIllegalObjId. -
PxOpoolIdError()must bePXERR_NOERRORotherwise the returned error code has to be interpreted (C).
-
-
- After call
-
-
The function returns
PXOpoolIllegalTypeif the given object pool is invalid. In this casePxGetErrormust be called to check which error has occurred. (F)
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxOpoolType_t Type = PxOpoolGetType(OpoolId);