GpReadreg

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

 

 

image\head10.gif Operation             Reads the contents of the uPD7210C register.

 

image\head10.gif Format                 

(VB.NET)

Dim Reg, Preg, Ret As Integer

Ret = GpReadreg(Reg, Preg)

 

(C)

DWORD Reg, Preg, Ret;

Ret = GpReadreg(Reg, &Preg);

 

(C#)

uint Reg, Preg, Ret;

Ret = gpib.Readreg(Reg, out Preg);

 

(Python)

Reg, Preg, Ret = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Ret.value = GpibPy.GpReadreg(Reg, ctypes.byref(Preg))

 

image\head10.gif Mode                   Master mode/Slave mode

 

image\head10.gif Parameters          Reg          :  Register specification

0    : Data in

1    : Interrupt status 1

2    : Interrupt status 2

3    : Serial poll status

4    : Address status

5    : Command pass through

6    : Address 0

7    : Address 1

Preg         :  Register value (return value)

Ret           :  Return value

0      :  Normal completion

80    :  GpIni() hasn't execute

140  :  Asynchronous function is executing now

255  :  Parameter error

(See "Return Values" for details.)

 

image\head10.gif Notes                  This function has been superseded by GpBoardsts . New applications should use GpBoardsts. See "Contents of the uPD7210C register" for details about each register.