Intel cPCI-7200 User Manual

Page 62

Advertising
background image

54

C/C++ Libraries

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

Advertising