14 interrupt control – ADLINK PCI-8154 User Manual
Page 193

Function Library
183
6.14 Interrupt Control
@ Name
_8154_int_control
– Enable/Disable INT service
_8154_set_motion_int_factor
– Set the factors of motion
related interrupts
_8154_wait_error_interrupt
– Wait error related interrupts
_8154_wait_motion_interrupt
– Wait motion related inter-
rupts
@ Description
_8154_int_control
:
This function is used to enable the Windows interrupt event to
host PC.
_8154_set_motion_int_factor
:
This function allows users to select motion related factors to ini-
tiate the event int. The error can never be masked once the
interrupt service is turned on by _8154_int_control().
Once the Interrupt function is enabled, you can use
_8154_wait_motion_interrupt
() to wait event.
_8154_wait_error_interrupt
:
When user enabled the Interrupt function by
_8154_int_control
(). He could use this function to wait the
error interrupts. Please refer to the operation theory section 4.8
_8154_wait_motion_interrupt
:
When user enabled the Interrupt function by
_8154_int_control
() and set the interrupt factors by
_8154_set_motion_int_factor
(). User could use this
function to wait the specific interrupt. When this function was
running, the process would never stop until evens were trig-
gered or the function was time out.