beautypg.com

13 interrupt control – ADLINK PCI-8158 User Manual

Page 185

background image

Function Library

175

6.13 Interrupt Control

@Name

_8158_int_control – Enable/Disable INT service

_8158_set_motion_int_factor – Set the factors of motion

related interrupts

_8158_wait_error_interrupt – Wait error related interrupts

_8158_wait_motion_interrupt – Wait motion related inter-

rupts

@ Description

_8158_int_control:

This function is used to enable the Windows interrupt event to
host PC.

_8158_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 _8158_int_control(). Once the
Interrupt function is enabled, you can use
_8158_wait_motion_interrupt() to wait event.

_8158_wait_error_interrupt:

When user enabled the Interrupt function by
_8158_int_control(). He could use this function to wait the error
interrupts. Please refer to the operation theory section 4.8

_8158_wait_motion_interrupt:

When user enabled the Interrupt function by
_8158_int_control() and set the interrupt factors by
_8158_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 triggered or the
function was time out.