PxSetTraceFunc()

Set a new trace function.

APPLIES TO

1.0.0

SYNOPSIS
PxError_t PxSetTraceFunc (PxTraceFunc_t PxTraceFunc);
ARGUMENTS
PxTraceFunc

The new PXROS trace function

ERROR CODES

PXERR_ACCESS_RIGHT

calling task does not have the right to set the trace function

PXERR_SERVICE_NOT_CONFIGURED

Service has not been configured into your PXROS

DESCRIPTION

PxSetTraceFunc sets the PXROS trace function to PxTraceFunc.

USAGE
#include "pxdef.h"

PxError_t Err = PxSetTraceFunc(PxTraceFunc);

if (Err != PXERR_NOERROR) {
    // Report error
}