PxPeGetName()
Return the name of a periodic object.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxPeGetName (PxPe_t pe, PxChar_t *buffer, PxUInt_t bufsize); - ARGUMENTS
|
|
|
|
|
- RETURN VALUES
-
-
PXROS-HR error code
-
- ERROR CODES
-
PXERR_NAME_BUFOVERFLOWThe data area is too short to store the object’s name
PXERR_PROT_PERMISSIONThe data area is not writable for the calling task
PXERR_SERVICE_NOT_CONFIGUREDService has not been configured
PXERR_OBJ_ILLOBJThe passed periodic object handle is not valid
PXERR_GLOBAL_ILLEGAL_COREThe periodic object is not on the same core
- DESCRIPTION
-
PxPeGetNameretrieves the name of the periodic objectpeby copying characters into thebufferof lengthbufsize. The result is null-terminated.
- SEE ALSO
- USAGE
-
#include "pxdef.h" const char peName[18] = "PERIODIC-OBJ-NAME"; // 17 characters + null character PxError_t err = PxPeSetName(pe, peName, 18); if (err != PXERR_NOERROR) { // Report error } char retPeName[18]; PxError_t err = PxPeGetName(pe, retPeName, 18); if (err != PXERR_NOERROR) { // Report error }