W_9812_alloc_dma_mem – ADLINK PCI-9810 User Manual
Page 72

60
Function Reference
W_9812_Alloc_DMA_Mem
Description
Tells the Windows 95 system to allocate a block of contiguous
memory for DMA transfer. This function is available only for Win-
dows 95.
Syntax
C/C++
int W_9812_Alloc_DMA_Mem (U32 buf_size, HANDLE
*memID, U32 *linearAddr)
Visual Basic
W_9812_Alloc_DMA_Mem (ByVal buf_size As Long,
memID As Long, linearAddr As Long) As Long
Argument(s)
buf_size
Bytes to allocate. Note thay the unit of this argument
is byte and not sample.
memID
If memory allocation is successful, the driver returns
the ID of that memory in this argument. You may use
this memory ID in W_9812_AD_DMA_Start function
call.
linearAddr
Linear address of the allocated DMA memory. This
linear address can be used as a pointer in C/C++ to
access DMA data.
Return Code(s)
NoError
AllocDMAMemFailed