PxSetMessageFun()
Set the PXROS error reporting function.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxError_t PxSetMessageFun (PxMessageFun_t messagefun);
- ARGUMENTS
|
- ERROR CODES
-
PXERR_ACCESS_RIGHT
The calling task does not have the right to change the error reporting function
- DESCRIPTION
-
PxSetMessageFun sets the PXROS error reporting function to messagefun.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
The parameter must be a pointer to a valid error function (V).
-
- After call
-
-
The function returns
PXERR_NOERROR
if the error reporting function could be set. Any other return value describes an error, which has to be interpreted. (C)
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxError_t Err = PxSetMessageFun(messagefun); if (Err == PXERR_ACCESS_RIGHT) { // Report error }