_PxHndcall()
PXROS-HR handler call.
- APPLIES TO
-
9.0.0
- SYNOPSIS
-
int _PxHndcall(PxHndcallFunction_t function, void *arg); - ARGUMENTS
|
|
|
- DESCRIPTION
-
_PxHndcallcalls the passed function handler with its argumentargin 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" typedef struct { PxUInt32_t interruptNumber; PxUInt32_t reloadValue; } initializeStmTimerArgs_t; int InitializeStmTimer(void *arg){ initializeStmTimerArgs_t *argStruct = (initializeStmTimerArgs_t *) arg; PxUInt32_t interruptNumber = argStruct->interruptNumber; PxUInt32_t reloadValue = argStruct->reloadValue; ... } initializeStmTimerArgs_t args = { .interruptNumber = DELAY_INTERRUPT, .reloadValue = STM_RELOAD }; int retval = _PxHndcall(InitializeStmTimer, &args);