beautypg.com

ADLINK cPCI-7300 User Manual

Page 67

background image

C/C++ Libraries

59

@ Return Code

NoError
PCICardNumErr
PCICardNotInit
DMATransferNotAllowed
InvalidDIOCount
BufNotDWordAlign
DMADscrBadAlign

5.15 _7300_DI_DMA_Status

@ Description

Since the _7300_DI_DMA_Start function is executed in background, you
can issue this function to check its operation status.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_DI_DMA_Status (int card_number, int *status)

Visual Basic (Windows 95)

W_7300_DI_DMA_Status (ByVal card_number As Long, status As Long)

As Long

C/C++ (DOS)

int _7300_DI_DMA_Status (int card_number, int *status)

@ Argument

card_number:

The card number of the PCI-7300A card.

status:

status of the DMA data transfer

0 (DMA_DONE): DMA is completed

1 (DMA_CONTINUE): DMA is not completed

@ Return Code

ERR_NoError
PCICardNumErr
PCICardNotInit

5.16 _7300_DI_DMA_Abort

@ Description

This function is used to stop the DMA DI operation. After executing this
function, the DMA transfer operation is stopped.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_DI_DMA_Abort (int card_number)

Visual Basic (Windows 95)

W_7300_DI_DMA_Abort (ByVal card_number As Long ) As Long

C/C++ (DOS)