SysTaskGetContext (FUN)

FUNCTION SysTaskGetContext : RTS_IEC_RESULT

<description>Get the current register context of the task. Task must be in suspended mode!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysTaskGetContext

RTS_IEC_RESULT

Input

hTask

RTS_IEC_HANDLE

<param name=”hTask” type=”IN”>Handle to task</param>

pContext

POINTER TO RegContext

<param name=”pContext” type=”OUT”>Pointer to context</param>