7200_Alloc_Dma_Mem - ADLINK Technology cPCI-7200 User Manual

Nudaq/nuipc 12mb/s high speed digital input/ output card
Hide thumbs Also See for cPCI-7200:
Table of Contents

Advertisement

5.13 _7200_Alloc_DMA_Mem

@ Description
Contact Windows 95/98 system to allocate a block of contiguous memory for
single-buffered DMA transfer. This function is only available in Windows
95/98 version.
@ Syntax
Visual C++ (Windows 95)
int W_7200_Alloc_DMA_Mem (U32 *buff, U32 *handle, U32
buf_size, U32 *actual_size)
Visual Basic (Windows 95)
W_7200_Alloc_DMA_Mem (buff As Long, handle As Long, ByVal
buf_size As Long, actual_size As Long ) As Long
@ Argument
buff : The start address of the user buffer for DMA data transfer. This
buffer will be attached to the DMA memory allocated by this function. When
using
this
W_7200_DI_DMA_Start function, DI data will be copied to this buffer.
When
using
W_7200_DO_DMA_Start function, the data stored in this buffer will be the
DO data.
handle:
Use this handle in _7200_DI_DMA_Start or _7200_DO_DMA_Start.
buf_size:
is BYTE, not SAMPLE.
actual_size: The actual size system allocate for DMA memory. The unit is
BYTE. If system is not able to get a block of contiguous memory of specified
buf_size, it will allocate a block of memory as large as it can. In this case, this
function returns ERR_SmallerDMAMemAllocated, and actual_size denotes
the actual size of allocated memory.
@ Return Code
ERR_NoError
ERR_SmallerDMAMemAllocated
38 C/C++ Libraries
DMA
memory
this
DMA
The handle of system DMA memory returned from system.
Bytes to allocate. Please be careful, the unit of this parameter
handle
memory
handle
as
an
argument
as
an
argument
of
of

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the cPCI-7200 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Pci-7200

Table of Contents