PxToStop()
Stop timeout (task service).
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxToStop (PxPe_t ToId); - ARGUMENTS
|
- RETURN VALUES
-
-
PXROS error code
-
- ERROR CODES
-
PXERR_REQUEST_ILLEGALThe caller is not the requester of the
ToIdobjectPXERR_TO_ILLTOToIdis not a valid timeout object - DESCRIPTION
-
PxToStopstops the timeout associated withToId. This function can only be called from a task (not from a handler).
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
ToIdmust be a valid PXROS-HR timeout object created with aPxToRequestcall (V). The validity ofToIdmay also be checked by thePxToIsValidmacro (F).
-
- After call
-
-
The function returns
PXERR_NOERRORif the timeout could be stopped. 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 = PxToStop(ToId); if (Err != PXERR_NOERROR) { // Report error }