PxTraceCtrl()
Set or get trace relevant data.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxULong_t PxTraceCtrl (PxTraceCtrl_t cmd, PxArg_t arg); - ARGUMENTS
|
|
|
- ERROR CODES
-
PXERR_ACCESS_RIGHTThe calling task does not have the right to control the trace interface
PXERR_TASK_ILLTASKInvalid
TaskIdpassedPXERR_TRACE_ILLCTRLcmdis illegal or unknownPXERR_SERVICE_NOT_CONFIGUREDService has not been configured into your PXROS
- DESCRIPTION
-
PxTraceCtrlcontrols the PXROS trace mechanism. There are commands to set or get trace relevant data. The following commands are available:-
PXTraceSetTraceFunctionset the PXROS trace function -
PXTraceStartstart PXROS tracing, the original trace state is returned -
PXTraceStopstop PXROS tracing, the original trace state is returned -
PXTraceGetStateget the actual PXROS trace state -
PXTraceSetGroupMaskset the complete PXROS trace group mask -
PXTraceGetGroupMaskget the complete PXROS trace group mask -
PXTraceEnableGroupenables the specified group of services -
PXTraceDisableGroupdisables the specified group of services -
PXTraceEnableTaskenables the PXROS tracing for the specified task -
PXTraceDisableTaskdisables the PXROS tracing for the specified task -
PXTraceGetTaskStateget the actual trace state of the task (disabled or enabled)
-
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
cmdmust be a valid trace control command. (V) -
argmust be a valid parameter to the appropriate trace control command. (V)
-
- After call
-
-
The function returns -1 if the trace control command could not be executed. In this case
PxGetErrormust be called to check which error has occurred. (F)
-
- Best Practice
-
-
No restrictions
-
- USAGE
-
#include "pxdef.h" PxULong_t val = PxTraceCtrl(PXTraceStart, 0);