27 _7300_set_sample – ADLINK PCIe-7300A User Manual

Page 106

Advertising
background image

96

C/C++

Libraries

5.27 _7300_Set_Sample

@ Description

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

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_Set_Sample (U32 linearAddr, U32 index,

U32 data_value, U32 portWidth)

Visual Basic (Windows 95)

W_7300_Get_Sample (ByVal linearAddr As Long,

ByVal index As Long, ByVal data_value As

Long, ByVal portWidth As Long) As Long

@ Argument

linearAddr

:The linear address of the allocated DMA memory.

index

: The position the data is written to. The first sample is with

index 0.

dataValue

: The data to put to output buffer. The data width is dif-

ferent with the different portWidth value.

portWidth

: The port width of the digital output port. The possible

values are 8, 16, or 32.

@ Return Code

NoError

Advertising