ADLINK PCI-8124-C User Manual

Page 50

Advertising
background image

40

Operation Theory

Steps:

1. Enable the interrupt factors that you want to be wait.

“_8124_get_int_factor”

2. Using wait function to wait the specified interrupt.

“_8124_wait_single_int”

3. In the end of interrupt process, you should disable the

interrupt service.

“_8124_get_int_factor”

Example:

_8124_set_int_factor( CardId, Channel, 0x4); //

FIFO empty

…(FIFO operation)…

// wait FIFO empty interrupt

// FactorBitNum = 2

// 10 seconds time-out

_8124_wait_single_int( CardId, Channel, 2, 10000

);

_8124_set_int_factor( CardId, Channel, 0 )//

Disable the interrupt service.

Advertising