ADLINK PCM-9112+ User Manual

Page 82

Advertising
background image

74

C/C++ Library

5.30 _9112_Free_DMA_Mem

@ Description

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

@ Syntax

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

@ Argument:

memID: The memory ID of the system DMA memory to

deallocate.

@ Return Code:

ERR_NoError

5.31 _9112_Get_Sample

@ Description

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

@ Syntax

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

@ Argument:

linearAddr: The linear address of the allocated DMA

memory.

index: The index of the sample to retrieve. The first

sample is with index 0.

ai_data:

Returns the sample retrieved.

@ Return Code:

ERR_NoError

Advertising