Argument, Return code, Argument @ return code – ADLINK PCI-7300A User Manual
Page 87

C/C++ Libraries
75
@ Argument
card_number:The card number of the PCI-7300A card.
mode (DOS):CHAIN_DMA: chaining DMA mode. By using the
scatter-gather capability of PCI-7300A, the input data is put to sev-
eral buffers which chained together.
NON_CHAIN_DMA: The input data is stored in a block of
contiguous memory.
memID (Win-95): the memory ID of the allocated system DMA
memory. In Windows 95 environment, before calling
W_7300_DI_DMA_Start, W_7300_Alloc_DMA_Mem must be
called to allocate a DMA memory. W_7300_Alloc_DMA_Mem will
return a memory ID for identifying the allocated DMA memory, as
well as the linear address of the DMA memory for user to access
the data.
buffer (DOS):With non-chaining mode, this is the start address of
the memory buffer to store the DI data. With chaining-mode (scat-
ter-gather), this is the address (pointer) of first DMA descriptor
node.
**With non-chaining mode, this memory should be double-
word alignment. With chaining-mode, this address should be
16-byte alignment. Also the pointer of all DMA descriptor
nodes should be 16-byte alignment.
count:With non-chaining mode, this is the number of digital input
to transfer. The unit is double-word (4-byte). The value of count
can not exceed 2^21 (about 2 million). With chaining mode, please
set this argument to 0. The number of digital input is determined
by the information in DMA descriptor nodes.
clear_fifo:0: retain the FIFO data
1: clear FIFO data before perform digital input
disable_di:0: digital input operation still active after DMA trans-
fer complete
1: disable digital input operation immediately when DMA
transfer complete
@ Return Code
NoError
PCICardNumErr