IsaInterrupt (STRUCT) ¶ TYPE IsaInterrupt : STRUCT <category>Isa interrupt</category> <description><p> ISA specific interrupt description </p></description> InOut: Name Type Comment ulBusNumber UDINT <element name=”ulBusNumber” type=”IN”>Unused on the ISA bus</element> ulDevciceNumber UDINT <element name=”ulDevciceNumber” type=”IN”>Unused on the ISA bus</element> ulFunctionNumber UDINT <element name=”ulFunctionNumber” type=”IN”>Unused on the ISA bus</element> ulIntLine UDINT <element name=”ulIntLine” type=”IN”>Unused on the ISA bus</element>
PciInterrupt (STRUCT) ¶ TYPE PciInterrupt : STRUCT <category>Pci interrupt</category> <description><p> PCI specific interrupt description </p></description> InOut: Name Type Comment ulBusNumber UDINT <element name=”ulBusNumber” type=”IN”>Bus number on the PCI bus</element> ulDevciceNumber UDINT <element name=”ulDevciceNumber” type=”IN”>Device number on the PCI bus</element> ulFunctionNumber UDINT <element name=”ulFunctionNumber” type=”IN”>Function number on the PCI bus. Is used for different functions on the same device.</element> ulIntLine UDINT <element name=”ulIntLine” type=”IN”>Interrupt line on the PCI bus.</element>
SYS_INT_DESCRIPTION (STRUCT) ¶ TYPE SYS_INT_DESCRIPTION : STRUCT <category>Interrupt description</category> <description><p>Optional description for an interrupt</p></description> InOut: Name Type Comment BusType UDINT <param name=”BusType”>Bus type (architecture specific). See “BusTypes” for details.</param> InterruptMode UDINT <param name=”InterruptMode”>Interrupt mode</param> busSpecific BusSpecific <param name=”busSpecific”>Pci bus specific definitions</param>
SysIntClose (FUN) ¶ FUNCTION SysIntClose : RTS_IEC_RESULT <description>Close an interrupt</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysIntClose RTS_IEC_RESULT Input hInt RTS_IEC_HANDLE <param name=”hInt” type=”IN”>Handle to interrupt returned by SysIntOpen.</param>
SysIntDisable (FUN) ¶ FUNCTION SysIntDisable : RTS_IEC_RESULT <description>Function to disable an interrupt. By use of this function the interrupt specified by its handle gets deactivated (masked).</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysIntDisable RTS_IEC_RESULT Input hInt RTS_IEC_HANDLE <param name=”hInt” type=”IN”>Handle to interrupt returned by SysIntOpen.</param>
SysIntDisableAll (FUN) ¶ FUNCTION SysIntDisableAll : RTS_IEC_RESULT <description>Function to disable all interrupts. By use of this functions all interrupts are deactivated (masked). A call of SysIntDisableAll has to be succeeded by a call to SysIntEnableAll!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysIntDisableAll RTS_IEC_RESULT Input pulParam POINTER TO __UXINT <param name=”pulParam” type=”IN”>Parameter for the target to return the actual masled interrupts to use after in SysIntEnableAll().</param>
SysIntEnable (FUN) ¶ FUNCTION SysIntEnable : RTS_IEC_RESULT <description>Function to enable an interrupt. By use of this function the interrupt specified by its handle is activated.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysIntEnable RTS_IEC_RESULT Input hInt RTS_IEC_HANDLE <param name=”hInt” type=”IN”>Handle to interrupt returned by SysIntOpen.</param>
SysIntEnableAll (FUN) ¶ FUNCTION SysIntEnableAll : RTS_IEC_RESULT A call to this function will be done after a call of function SysIntDisableAll and will restore the situation preceding the execution of SysIntDisableAll. That means, all interrupts, having been activated before the call to SysIntDisableAll are activated again. <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysIntEnableAll RTS_IEC_RESULT Input pulParam POINTER TO __UXINT <param name=”pulParam” type=”IN”>Parameter for the target with the masked interrupts that must are deactivated by the previous call to SysIntDisableAll().</param>
SysIntLevel (FUN) ¶ FUNCTION SysIntLevel : RTS_IEC_RESULT <description> This function checks if the processor is actually executing an ISR. This information is necessary, as some functions of an operating system must not be called within the interrupt level. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library): <ul> <li>ERR_OK: We are still in an interrupt handler</li> <li>ERR_FAILED: not in interrupt context</li> </ul> </p></result> InOut: Scope Name Type Return SysIntLevel RTS_IEC_RESULT
SysIntOpenByName (FUN) ¶ FUNCTION SysIntOpenByName : RTS_IEC_HANDLE <description>Open a valid interrupt specified by name</description> <result><p>RESULT: Handle to the interrupt or RTS_INVALID_HANDLE if failed.</p></result> InOut: Scope Name Type Comment Return SysIntOpenByName RTS_IEC_HANDLE Input pszIntName STRING <param name=”pszIntName” type=”IN”>Interrupt name defined in the settings component</param> Result POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>