GpDma

image\BLTLRGSQ.gifBoards that Support the Function image\SETUP.gif image\SANBTN.gif

 

 

image\head10.gif Operation             Sets whether to use DMA, FIFO and BusMaster.

 

image\head10.gif Format                 

(VB.NET)

Dim Dmamode, Dmach, Ret As Integer

Ret = GpDma(Dmamode, Dmach)

 

(C)

DWORD Dmamode, Dmach, Ret;

Ret = GpDma(Dmamode, Dmach);

 

(C#)

uint Dmamode, Dmach, Ret;

Ret = gpib.Dma(Dmamode, Dmach);

 

(Python)

Dmamode, Dmach, Ret = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Ret.value = GpibPy.GpDma(Dmamode, Dmach)

 

image\head10.gif Mode                   Master mode/Slave mode

 

image\head10.gif Parameters          Dmamode      :  Use of DMA, FIFO and BusMaster (transfer mode)

0   : DMA, FIFO and BusMaster OFF

1   : DMA ON

2   : FIFO ON

3   : BusMaster ON

Dmach          :  DMA Channels

1 - 3

Ret              :  Return value

0     : Normal completion

80    : GpIni() hasn't execute

140  : Asynchronous function is executing now

210  : Cannot initialize DMA channel

255  : Parameter error

(See "Return Values" for details.)

 

image\head10.gif Notes                  For receiving by DMA, FIFO, BusMaster, use at least either one of a delimiter or EOI.