SysIntRegister (FUN)

FUNCTION SysIntRegister : RTS_IEC_RESULT

<description>Function to register an interrupt handler. By use of this function an interrupt handler (Interrupt Service Routine, ISR) for the interrupt specified by its handle gets registered. During registration, the start address of the function to be executed in case of the associated interrupt request is filled into the vector table on the target.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysIntRegister

RTS_IEC_RESULT

Input

hInt

RTS_IEC_HANDLE

<param name=”hInt” type=”IN”>Handle to interrupt returned by SysIntOpen.</param>

pCallback

POINTER TO BYTE

<param name=”pCallback” type=”IN”>Interrupt handler. Callback layout:<br />

FUNCTION IntHandler : RTS_IEC_RESULT<br />

VAR_INPUT<br />

ulAdditionalInfo : UDINT;<br />

END_VAR

</param>

ulAdditionalInfo

__UXINT

<param name=”ulAdditionalInfo” type=”IN”>Info value that is transmitted to the interrupt handler</param>