ADLINK PCI-8144 User Manual

Page 59

Advertising
background image

Operation Theory

49

The steps for using interrupts:

1. Set interrupt sources for Motion or GPIO interrupts.

_8144_set_motion_interrupt_facor(AXIS0, 0x01);

// Axis0 stop

_8144_set_gpio_interrupt_factor(CARD0, 0x01);

// DI0 falling edge

2. Using wait function to wait the specified interrupt

_8144_wait_single_motion_interrupt(AXIS0, 0x01,

1000);

// Wait 1000ms for normally stop interrupt

_8144_wait_single_gpio_interrupt(CARD0, 0x01,

1000)

// Wait 1000ms for DI0 falling edge

interrupt

3. Disable interrupt sources

_8144_set_motion_interrupt_facor(AXIS0, 0x0);

_8144_set_gpio_interrupt_factor(CARD0, 0x0);

Advertising