9812_ad_dma_status – ADLINK PCI-9810 User Manual

Page 66

Advertising
background image

54

Function Reference

_9812_AD_DMA_Status

Description

Since _9812_AD_DMA_Start is executed in the background, the
function _9812_AD_DMA_Status can be used to check its opera-
tion status.

Syntax

C/C++ (DOS)

int _9812_AD_DMA_Status(int card_number, int

*count, int *status, U32 *start_idx)

C/C++ (Windows 95)

int W_9812_AD_DMA_Status(int card_number, int

*count, int *status, U32 *start_idx)

Visual Basic (Windows 95)

W_9812_AD_DMA_Status (ByVal card_number As Long,

count As Long, status As Long, start_idx As

Long) As Long

Argument(s)

card_number Card number of the selected card.

count

Current amount of DMA transferred data.

status

DMA data transfer status. Valid values:

start_idx

The index where the data starts from is in the user’s
buffer. For example, the sequence of read data is:

buff[start_idx], buff[start_idx+1], _,

buff[0], buff[1],_.,buff[start_idx-1].

Return Code(s)

PCICardNumErr

PCICardNotInit

NoError

0

DMA_done

1

DMA_continue

2

DMA_wait_trig

3

DMA_wait_delay

Advertising
This manual is related to the following products: