PxTraceAssignBuffer()
Set a new trace buffer.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxTraceAssignBuffer (PxAligned_t *trcbuffer, PxULong_t capacity, PxULong_t size); - ARGUMENTS
|
|
|
|
|
- ERROR CODES
-
PXERR_ACCESS_RIGHTThe calling task does not have the right to set the trace buffer
PXERR_PROT_PERMISSIONThe calling task or kernel has no access to the passed buffer
PXERR_SERVICE_NOT_CONFIGUREDService has not been configured into your PXROS
PXERR_ILLEGAL_ACCESSNo access permission for protection type
- DESCRIPTION
-
PxTraceAssignBufferassigns a circular buffer to the PXROS trace mechanism. The buffer size must be a multiple of the size of aPxTraceentry (actual 24 bytes).
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
trcbuffermust be a pointer to a valid data area. -
capacitymust be a plausible value given as a constant (V) or a variable (C).
-
- After call
-
-
The function returns
PXERR_NOERRORif the trace buffer could be assigned. Any other return value describes an error, which has to be interpreted (C).
-
- Best Practice
-
-
No restrictions
-
- USAGE
-
#include "pxdef.h" PxError_t Err = PxTraceAssignBuffer(trcbuffer, 2, PXV_ENTRY_SIZE); if (Err != PXERR_NOERROR) { // Report error }