_PxHndcall()
PXROS-HR handler call.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxArg_t _PxHndcall (handler, task, varsize, parms...);
- ARGUMENTS
|
|
|
|
|
|
|
- DESCRIPTION
-
_PxHndcall
calls the passed function handler with its argumentsparms…
in supervisor mode. Since the function is executed in the context of the calling task using the task stack, the function can only access data of the task context.
- USAGE
-
#include "pxdef.h" #define UNUSED_TID 0 // TASK ID - argument not used #define UNUSED_VARSIZE 0 // VARIABLE SIZE - argument not used int HandlerFunc(va_list ap) { int arg1 = va_arg(ap, int); return arg1; } PxArg_t retval = _PxHndcall(HandlerFunc, UNUSED_TID, UNUSED_VARSIZE, arg1);