beautypg.com

ADLINK cPCI-7300 User Manual

Page 63

background image

C/C++ Libraries

55

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_AUX_DO_Channel (int card_number, int do_ch_no, int

do_data)

Visual Basic (Windows 95)

W_7300_AUX_DO_Channel (ByVal card_number As Long, ByVal do_ch_no

As Long, ByVal do_data As Long) As Long

C/C++ (DOS)

int _7300_AUX_DO_Channel (int card_number, int do_ch_no, int

do_data)

@ Argument

card_number:

The card number of the PCI-7300A card.

do_ch_no:

the DO channel number, the value has to be set
within 0 and 3.

do_data:

either 0 (OFF) or 1 (ON).

@ Return Code

NoError
PCICardNumErr
PCICardNotInit
InvalidDIOChNum
InvalidDOData

5.12 _7300_Alloc_DMA_Mem

@ Description

Contact Windows 95 system to allocate a memory for DMA transfer. This
function is only available in Windows 95 version.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_Alloc_DMA_Mem (U32 buf_size, HANDLE *memID, U32

*linearAddr)

Visual Basic (Windows 95)

W_7300_Alloc_DMA_Mem (ByVal buf_size As Long, memID As Long,

linearAddr As Long) As Long

@ Argument

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_7300_DI_DMA_Start or

W_7300_DO_DMA_Start 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 (read/write) the DMA data.