uArgument :

buf_size: Bytes to allocate. Please be careful, the unit of this argument is BYTE, not SAMPLE.

memID: If the memory allocation is successful, driver returns the ID of that memory in this argument. Use this memory ID in W_9112_AD_DMA_Start or W_9112_ContDmaStart function call. linearAddr: The linear address of the allocated DMA memory. You can use this linear address as a pointer in C/C++ to access the DMA data.

uReturn Code :

ERR_NoError

ERR_AllocDMAMemFailed

5.30 _9112_Free_DMA_Mem

uDescription

Deallocate a system DMA memory under Windows 95 environment. This function is only available in Windows 95 version.

uSyntax

Visual C++(Windows-95)

int W_9112_Free_DMA_Mem (HANDLE memID)

Visual Basic (Windows-95)

W_9112_Free_DMA_Mem (ByVal memID As Long) As Long

uArgument :

memID: The memory ID of the system DMA memory to deallocate.

uReturn Code :

ERR_NoError

5.32 _9112_Get_Sample

uDescription

For the language without pointer support such as Visual Basic, programmer can use this function to access the index-th data in DMA buffer. This function is only available in Windows 95 version.

uSyntax

Visual C++(Windows-95)

int W_9112_Get_Sample (unsigned long linearAddr, unsigned index, unsigned short *ai_data)

Visual Basic (Windows-95)

W_9112_Get_Sample (ByVal linearAddr As Long, ByVal idx As Long, ai_data As Integer) As Long

C/C++ Library 65