Intel LPCI-7200S manual 5.18 7200DIDMAStatus, clearfifo, @ Return Code, @ Description, @ Syntax

Models: LPCI-7200S

1 71
Download 71 pages 46.71 Kb
Page 58
Image 58
clear_fifo:

clear_fifo:

0:retain the FIFO data

1:clear FIFO data before perform digital input disable_di:

0:digital input operation still active after DMA transfer complete

1:disable digital input operation immediately when DMA transfer complete

@Return Code

ERR_NoError

ERR_BoardNoInit

ERR_InvalidDIOMode

ERR_InvalidDIOCnt

ERR_NotDWordAlign

ERR_DMATransferNotAllowed

5.18 _7200_DI_DMA_Status

@ Description

Since the _7200_DI_DMA_Start function is executed in background, users can issue this function to check its operation status. This function only works when double-buffer mode is set as disable.

@ Syntax

Visual C++ (Windows 95)

int W_7200_DI_DMA_Status (U8 *status, U32 *count)

Visual Basic (Windows 95)

W_7200_AD_Status (status As Byte, count As Long ) As Long

C/C++ (DOS)

int _7200_AD_DMA_Status (U8 *status, U32 *count)

@ Argument

status:status of the DMA data transfer

0:DI_DMA_STOP: DMA is completed

1:DI_DMA_RUN: DMA is not completed

count: the numbers of DI data which has been transferred.

@ Return Code

ERR_NoError

50 C/C++ Libraries

Page 58
Image 58
Intel LPCI-7200S 5.18 7200DIDMAStatus, clearfifo, @ Return Code, @ Description, @ Syntax, Visual C++ Windows, C/C++ Dos