ADLINK PCIe-7300A User Manual

Page 90

Advertising
background image

80

C/C++

Libraries

ByVal clear_fifo As Long, ByVal disable_di

As Long) As Long

C/C++ (DOS)

int _7300_DI_DMA_Start (int card_number, int

mode, U32 *buffer, U32 count, int

clear_fifo, int disable_di)

@ Argument

card_number

:The card number of the cPCI/PCI/PCIe-7300A

card.

mode

(DOS):CHAIN_DMA: chaining DMA mode. By using the

scatter-gather capability of cPCI/PCI/PCIe-7300A, the input data
is put to several 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

Advertising