Intel LPCI-7200S manual 5.25 7200DODMAStatus, C/C++ Dos, @ Argument, @ Return Code, @ Description

Models: LPCI-7200S

1 71
Download 71 pages 46.71 Kb
Page 62
Image 62
5.25 _7200_DO_DMA_Status

C/C++ (DOS)

int _7200_DO_DMA_Start (U8 mode, U32 count, U32 *do_buffer, Boolean repeat)

@ Argument

mode: Digital output trigger modes DO_MODE_0: Internal timer pacer (TIME 1)

DO_MODE_1: Internal timer pacer with O_REQ enable

DO_MODE_2: O_REQ & I_REQ handshaking

count: the sample number of digital output data (in samples, not in bytes)

handle (Win 95): the handle of system DMA memory. In Windows 95, before calling W_7200_DO_DMA_Start, W_7200_Alloc_DMA_Mem must be called to allocate a contiguous DMA memory and get the handle of it. Also W_7200_Alloc_DMA_Mem will attach a buffer to DMA memory. The DO data is stored in the buffer attached to this handle.

do_buffer (DOS): the start address of the memory buffer to store the DO data.

** This memory should be double-word alignment

repeat: The digital output will be continuous or only one shot. CONTINUOUS: digital output will be continuous until

_7200_DO_DMA_STOP is called. ONE_SHOT : digital output only one-shot.

@ Return Code

ERR_NoError

ERR_InvalidDIMode

ERR_InvalidBoardNumber

ERR_BoardNoInit

ERR_InvalidDIOCnt

ERR_NotDWordAlign

ERR_DMATransferNotAllowed

5.25 _7200_DO_DMA_Status

@ Description

Since the _7200_DO_DMA_Start function is executed in background, users can issue the function _7200_DO_DMA_Status to check its operation status.

@ Syntax

Visual C++ (Windows 95)

int W_7200_DO_DMA_Status (U8 *status, U32 * count)

Visual Basic (Windows 95)

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

54 C/C++ Libraries

Page 62
Image 62
Intel LPCI-7200S 5.25 7200DODMAStatus, C/C++ Dos, @ Argument, @ Return Code, @ Description, @ Syntax, Visual C++ Windows