#================================================================
# GpibPy.py
# module file for CONTEC GPIB device
#                                                CONTEC.Co., Ltd.
#================================================================
import ctypes
import ctypes.wintypes

cgpib1_dll = ctypes.windll.LoadLibrary('apigpib1.dll')
cgpib2_dll = ctypes.windll.LoadLibrary('apigpib2.dll')
cgpib3_dll = ctypes.windll.LoadLibrary('apigpib3.dll')
cgpib4_dll = ctypes.windll.LoadLibrary('apigpib4.dll')


#----------------------------------------
# Prototype definition
#----------------------------------------
#----------------------------------------
# For driver No.1
#----------------------------------------
# C Prototype: DWORD WINAPI GpIni(void);
GpIni = cgpib1_dll.GpIni
GpIni.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpIfc(DWORD);
GpIfc = cgpib1_dll.GpIfc
GpIfc.restype = ctypes.c_ulong
GpIfc.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpRen(void);
GpRen = cgpib1_dll.GpRen
GpRen.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpResetren(void);
GpResetren = cgpib1_dll.GpResetren
GpResetren.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTalk(DWORD *, DWORD, BYTE *);
GpTalk = cgpib1_dll.GpTalk
GpTalk.restype = ctypes.c_ulong
GpTalk.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListen(DWORD *, DWORD *, BYTE *);
GpListen = cgpib1_dll.GpListen
GpListen.restype = ctypes.c_ulong
GpListen.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpPoll(DWORD *, DWORD *);
GpPoll = cgpib1_dll.GpPoll
GpPoll.restype = ctypes.c_ulong
GpPoll.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrq(DWORD);
GpSrq = cgpib1_dll.GpSrq
GpSrq.restype = ctypes.c_ulong
GpSrq.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStb(DWORD);
GpStb = cgpib1_dll.GpStb
GpStb.restype = ctypes.c_ulong
GpStb.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDelim(DWORD, DWORD);
GpDelim = cgpib1_dll.GpDelim
GpDelim.restype = ctypes.c_ulong
GpDelim.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTimeout(DWORD);
GpTimeout = cgpib1_dll.GpTimeout
GpTimeout.restype = ctypes.c_ulong
GpTimeout.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpChkstb(DWORD *, DWORD *);
GpChkstb = cgpib1_dll.GpChkstb
GpChkstb.restype = ctypes.c_ulong
GpChkstb.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpReadreg(DWORD, DWORD *);
GpReadreg = cgpib1_dll.GpReadreg
GpReadreg.restype = ctypes.c_ulong
GpReadreg.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDma(DWORD, DWORD);
GpDma = cgpib1_dll.GpDma
GpDma.restype = ctypes.c_ulong
GpDma.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExit(void);
GpExit = cgpib1_dll.GpExit
GpExit.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpComand(DWORD *);
GpComand = cgpib1_dll.GpComand
GpComand.restype = ctypes.c_ulong
GpComand.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDmainuse(void);
GpDmainuse = cgpib1_dll.GpDmainuse
GpDmainuse.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpStstop(DWORD);
GpStstop = cgpib1_dll.GpStstop
GpStstop.restype = ctypes.c_ulong
GpStstop.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDmastop(void);
GpDmastop = cgpib1_dll.GpDmastop
GpDmastop.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpPpollmode(DWORD);
GpPpollmode = cgpib1_dll.GpPpollmode
GpPpollmode.restype = ctypes.c_ulong
GpPpollmode.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStppoll(DWORD *, DWORD);
GpStppoll = cgpib1_dll.GpStppoll
GpStppoll.restype = ctypes.c_ulong
GpStppoll.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExppoll(DWORD *);
GpExppoll = cgpib1_dll.GpExppoll
GpExppoll.restype = ctypes.c_ulong
GpExppoll.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStwait(DWORD);
GpStwait = cgpib1_dll.GpStwait
GpStwait.restype = ctypes.c_ulong
GpStwait.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpWaittime(DWORD);
GpWaittime = cgpib1_dll.GpWaittime
GpWaittime.restype = ctypes.c_ulong
GpWaittime.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpReadbus(DWORD *);
GpReadbus = cgpib1_dll.GpReadbus
GpReadbus.restype = ctypes.c_ulong
GpReadbus.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSfile(DWORD *, DWORD, BYTE *);
GpSfile = cgpib1_dll.GpSfile
GpSfile.restype = ctypes.c_ulong
GpSfile.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpRfile(DWORD *, DWORD, BYTE *);
GpRfile = cgpib1_dll.GpRfile
GpRfile.restype = ctypes.c_ulong
GpRfile.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpSdc(DWORD);
GpSdc = cgpib1_dll.GpSdc
GpSdc.restype = ctypes.c_ulong
GpSdc.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDcl(void);
GpDcl = cgpib1_dll.GpDcl
GpDcl.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpGet(DWORD);
GpGet = cgpib1_dll.GpGet
GpGet.restype = ctypes.c_ulong
GpGet.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpGtl(DWORD);
GpGtl = cgpib1_dll.GpGtl
GpGtl.restype = ctypes.c_ulong
GpGtl.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpLlo(void);
GpLlo = cgpib1_dll.GpLlo
GpLlo.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTct(DWORD);
GpTct = cgpib1_dll.GpTct
GpTct.restype = ctypes.c_ulong
GpTct.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCrst(DWORD);
GpCrst = cgpib1_dll.GpCrst
GpCrst.restype = ctypes.c_ulong
GpCrst.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCopc(DWORD);
GpCopc = cgpib1_dll.GpCopc
GpCopc.restype = ctypes.c_ulong
GpCopc.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCwai(DWORD);
GpCwai = cgpib1_dll.GpCwai
GpCwai.restype = ctypes.c_ulong
GpCwai.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCcls(DWORD);
GpCcls = cgpib1_dll.GpCcls
GpCcls.restype = ctypes.c_ulong
GpCcls.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCtrg(DWORD);
GpCtrg = cgpib1_dll.GpCtrg
GpCtrg.restype = ctypes.c_ulong
GpCtrg.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCpre(DWORD, DWORD);
GpCpre = cgpib1_dll.GpCpre
GpCpre.restype = ctypes.c_ulong
GpCpre.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCese(DWORD, DWORD);
GpCese = cgpib1_dll.GpCese
GpCese.restype = ctypes.c_ulong
GpCese.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCsre(DWORD, DWORD);
GpCsre = cgpib1_dll.GpCsre
GpCsre.restype = ctypes.c_ulong
GpCsre.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpQidn(DWORD, DWORD *, BYTE *);
GpQidn = cgpib1_dll.GpQidn
GpQidn.restype = ctypes.c_ulong
GpQidn.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopt(DWORD, DWORD *, BYTE *);
GpQopt = cgpib1_dll.GpQopt
GpQopt.restype = ctypes.c_ulong
GpQopt.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpud(DWORD, DWORD *, BYTE *);
GpQpud = cgpib1_dll.GpQpud
GpQpud.restype = ctypes.c_ulong
GpQpud.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQrdt(DWORD, DWORD *, BYTE *);
GpQrdt = cgpib1_dll.GpQrdt
GpQrdt.restype = ctypes.c_ulong
GpQrdt.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQcal(DWORD, DWORD *, BYTE *);
GpQcal = cgpib1_dll.GpQcal
GpQcal.restype = ctypes.c_ulong
GpQcal.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlrn(DWORD, DWORD *, BYTE *);
GpQlrn = cgpib1_dll.GpQlrn
GpQlrn.restype = ctypes.c_ulong
GpQlrn.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQtst(DWORD, DWORD *, BYTE *);
GpQtst = cgpib1_dll.GpQtst
GpQtst.restype = ctypes.c_ulong
GpQtst.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopc(DWORD, DWORD *, BYTE *);
GpQopc = cgpib1_dll.GpQopc
GpQopc.restype = ctypes.c_ulong
GpQopc.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQemc(DWORD, DWORD *, BYTE *);
GpQemc = cgpib1_dll.GpQemc
GpQemc.restype = ctypes.c_ulong
GpQemc.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQgmc(DWORD, DWORD *, BYTE *);
GpQgmc = cgpib1_dll.GpQgmc
GpQgmc.restype = ctypes.c_ulong
GpQgmc.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlmc(DWORD, DWORD *, BYTE *);
GpQlmc = cgpib1_dll.GpQlmc
GpQlmc.restype = ctypes.c_ulong
GpQlmc.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQist(DWORD, DWORD *, BYTE *);
GpQist = cgpib1_dll.GpQist
GpQist.restype = ctypes.c_ulong
GpQist.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpre(DWORD, DWORD *, BYTE *);
GpQpre = cgpib1_dll.GpQpre
GpQpre.restype = ctypes.c_ulong
GpQpre.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQese(DWORD, DWORD *, BYTE *);
GpQese = cgpib1_dll.GpQese
GpQese.restype = ctypes.c_ulong
GpQese.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQesr(DWORD, DWORD *, BYTE *);
GpQesr = cgpib1_dll.GpQesr
GpQesr.restype = ctypes.c_ulong
GpQesr.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpsc(DWORD, DWORD *, BYTE *);
GpQpsc = cgpib1_dll.GpQpsc
GpQpsc.restype = ctypes.c_ulong
GpQpsc.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQsre(DWORD, DWORD *, BYTE *);
GpQsre = cgpib1_dll.GpQsre
GpQsre.restype = ctypes.c_ulong
GpQsre.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQstb(DWORD, DWORD *, BYTE *);
GpQstb = cgpib1_dll.GpQstb
GpQstb.restype = ctypes.c_ulong
GpQstb.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQddt(DWORD, DWORD *, BYTE *);
GpQddt = cgpib1_dll.GpQddt
GpQddt.restype = ctypes.c_ulong
GpQddt.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTaLaBit(DWORD);
GpTaLaBit = cgpib1_dll.GpTaLaBit
GpTaLaBit.restype = ctypes.c_ulong
GpTaLaBit.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpBoardsts(DWORD, DWORD *);
GpBoardsts = cgpib1_dll.GpBoardsts
GpBoardsts.restype = ctypes.c_ulong
GpBoardsts.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrqEvent(HANDLE, WORD, DWORD);
GpSrqEvent = cgpib1_dll.GpSrqEvent
GpSrqEvent.restype = ctypes.c_ulong
GpSrqEvent.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqEventEx(HANDLE, WORD, DWORD);
GpSrqEventEx = cgpib1_dll.GpSrqEventEx
GpSrqEventEx.restype = ctypes.c_ulong
GpSrqEventEx.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqOn();
GpSrqOn = cgpib1_dll.GpSrqOn
GpSrqOn.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFind(DWORD *);
GpDevFind = cgpib1_dll.GpDevFind
GpDevFind.restype = ctypes.c_ulong
GpDevFind.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSetEvent(DWORD);
GpSetEvent = cgpib1_dll.GpSetEvent
GpSetEvent.restype = ctypes.c_ulong
GpSetEvent.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventSrq(HANDLE, WORD, DWORD);
GpSetEventSrq = cgpib1_dll.GpSetEventSrq
GpSetEventSrq.restype = ctypes.c_ulong
GpSetEventSrq.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDet(HANDLE, WORD, DWORD);
GpSetEventDet = cgpib1_dll.GpSetEventDet
GpSetEventDet.restype = ctypes.c_ulong
GpSetEventDet.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDec(HANDLE, WORD, DWORD);
GpSetEventDec = cgpib1_dll.GpSetEventDec
GpSetEventDec.restype = ctypes.c_ulong
GpSetEventDec.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventIfc(HANDLE, WORD, DWORD);
GpSetEventIfc = cgpib1_dll.GpSetEventIfc
GpSetEventIfc.restype = ctypes.c_ulong
GpSetEventIfc.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpEnableNextEvent(void);
GpEnableNextEvent = cgpib1_dll.GpEnableNextEvent
GpEnableNextEvent.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpSrqEx(DWORD, DWORD, DWORD);
GpSrqEx = cgpib1_dll.GpSrqEx
GpSrqEx.restype = ctypes.c_ulong
GpSrqEx.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpUpperCode(DWORD);
GpUpperCode = cgpib1_dll.GpUpperCode
GpUpperCode.restype = ctypes.c_ulong
GpUpperCode.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettings(LPBYTE, LPBYTE, LPBYTE, DWORD);
GpCnvSettings = cgpib1_dll.GpCnvSettings
GpCnvSettings.restype = ctypes.c_ulong
GpCnvSettings.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettingsToStr(DWORD, DWORD, DWORD);
GpCnvSettingsToStr = cgpib1_dll.GpCnvSettingsToStr
GpCnvSettingsToStr.restype = ctypes.c_ulong
GpCnvSettingsToStr.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvStrToDbl(LPBYTE, double*);
GpCnvStrToDbl = cgpib1_dll.GpCnvStrToDbl
GpCnvStrToDbl.restype = ctypes.c_ulong
GpCnvStrToDbl.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvStrToDblArray(LPBYTE, double*, LPDWORD);
GpCnvStrToDblArray = cgpib1_dll.GpCnvStrToDblArray
GpCnvStrToDblArray.restype = ctypes.c_ulong
GpCnvStrToDblArray.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvStrToFlt(LPBYTE, float*);
GpCnvStrToFlt = cgpib1_dll.GpCnvStrToFlt
GpCnvStrToFlt.restype = ctypes.c_ulong
GpCnvStrToFlt.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvStrToFltArray(LPBYTE, float*, LPDWORD);
GpCnvStrToFltArray = cgpib1_dll.GpCnvStrToFltArray
GpCnvStrToFltArray.restype = ctypes.c_ulong
GpCnvStrToFltArray.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvDblToStr(LPBYTE, LPDWORD, double);
GpCnvDblToStr = cgpib1_dll.GpCnvDblToStr
GpCnvDblToStr.restype = ctypes.c_ulong
GpCnvDblToStr.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_double]

# C Prototype: DWORD WINAPI GpCnvDblArrayToStr(LPBYTE, LPDWORD, double*, DWORD);
GpCnvDblArrayToStr = cgpib1_dll.GpCnvDblArrayToStr
GpCnvDblArrayToStr.restype = ctypes.c_ulong
GpCnvDblArrayToStr.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvFltToStr(LPBYTE, LPDWORD, float);
GpCnvFltToStr = cgpib1_dll.GpCnvFltToStr
GpCnvFltToStr.restype = ctypes.c_ulong
GpCnvFltToStr.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_float]

# C Prototype: DWORD WINAPI GpCnvFltArrayToStr(LPBYTE, LPDWORD, float*, DWORD);
GpCnvFltArrayToStr = cgpib1_dll.GpCnvFltArrayToStr
GpCnvFltArrayToStr.restype = ctypes.c_ulong
GpCnvFltArrayToStr.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpPollEx(LPDWORD, LPDWORD, LPDWORD);
GpPollEx = cgpib1_dll.GpPollEx
GpPollEx.restype = ctypes.c_ulong
GpPollEx.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSlowMode(DWORD);
GpSlowMode = cgpib1_dll.GpSlowMode
GpSlowMode.restype = ctypes.c_ulong
GpSlowMode.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvSettings(DWORD);
GpCnvCvSettings = cgpib1_dll.GpCnvCvSettings
GpCnvCvSettings.restype = ctypes.c_ulong
GpCnvCvSettings.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvi(LPBYTE, short*);
GpCnvCvi = cgpib1_dll.GpCnvCvi
GpCnvCvi.restype = ctypes.c_ulong
GpCnvCvi.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpCnvCviArray(LPBYTE, short*, DWORD);
GpCnvCviArray = cgpib1_dll.GpCnvCviArray
GpCnvCviArray.restype = ctypes.c_ulong
GpCnvCviArray.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvs(LPBYTE, float*);
GpCnvCvs = cgpib1_dll.GpCnvCvs
GpCnvCvs.restype = ctypes.c_ulong
GpCnvCvs.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvCvsArray(LPBYTE, float*, DWORD);
GpCnvCvsArray = cgpib1_dll.GpCnvCvsArray
GpCnvCvsArray.restype = ctypes.c_ulong
GpCnvCvsArray.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvd(LPBYTE, double*);
GpCnvCvd = cgpib1_dll.GpCnvCvd
GpCnvCvd.restype = ctypes.c_ulong
GpCnvCvd.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvCvdArray(LPBYTE, double*, DWORD);
GpCnvCvdArray = cgpib1_dll.GpCnvCvdArray
GpCnvCvdArray.restype = ctypes.c_ulong
GpCnvCvdArray.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTalkEx(DWORD *, DWORD *, BYTE *);
GpTalkEx = cgpib1_dll.GpTalkEx
GpTalkEx.restype = ctypes.c_ulong
GpTalkEx.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenEx(DWORD *, DWORD *, BYTE *);
GpListenEx = cgpib1_dll.GpListenEx
GpListenEx.restype = ctypes.c_ulong
GpListenEx.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTalkAsync(DWORD *, DWORD *, BYTE *);
GpTalkAsync = cgpib1_dll.GpTalkAsync
GpTalkAsync.restype = ctypes.c_ulong
GpTalkAsync.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenAsync(DWORD *, DWORD *, BYTE *);
GpListenAsync = cgpib1_dll.GpListenAsync
GpListenAsync.restype = ctypes.c_ulong
GpListenAsync.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpCommandAsync(DWORD *);
GpCommandAsync = cgpib1_dll.GpCommandAsync
GpCommandAsync.restype = ctypes.c_ulong
GpCommandAsync.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCheckAsync(DWORD, DWORD*);
GpCheckAsync = cgpib1_dll.GpCheckAsync
GpCheckAsync.restype = ctypes.c_ulong
GpCheckAsync.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStopAsync(void);
GpStopAsync = cgpib1_dll.GpStopAsync
GpStopAsync.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFindEx(short, short, short *);
GpDevFindEx = cgpib1_dll.GpDevFindEx
GpDevFindEx.restype = ctypes.c_ulong
GpDevFindEx.argtypes = [ctypes.c_short, ctypes.c_short, ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpBoardstsEx(DWORD, DWORD, DWORD *);
GpBoardstsEx = cgpib1_dll.GpBoardstsEx
GpBoardstsEx.restype = ctypes.c_ulong
GpBoardstsEx.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSmoothMode(DWORD);
GpSmoothMode = cgpib1_dll.GpSmoothMode
GpSmoothMode.restype = ctypes.c_ulong
GpSmoothMode.argtypes = [ctypes.c_ulong]

#----------------------------------------
# For driver No.2
#----------------------------------------
# C Prototype: DWORD WINAPI GpIni2(void);
GpIni2 = cgpib2_dll.GpIni2
GpIni2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpIfc2(DWORD);
GpIfc2 = cgpib2_dll.GpIfc2
GpIfc2.restype = ctypes.c_ulong
GpIfc2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpRen2(void);
GpRen2 = cgpib2_dll.GpRen2
GpRen2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpResetren2(void);
GpResetren2 = cgpib2_dll.GpResetren2
GpResetren2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTalk2(DWORD *, DWORD, BYTE *);
GpTalk2 = cgpib2_dll.GpTalk2
GpTalk2.restype = ctypes.c_ulong
GpTalk2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListen2(DWORD *, DWORD *, BYTE *);
GpListen2 = cgpib2_dll.GpListen2
GpListen2.restype = ctypes.c_ulong
GpListen2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpPoll2(DWORD *, DWORD *);
GpPoll2 = cgpib2_dll.GpPoll2
GpPoll2.restype = ctypes.c_ulong
GpPoll2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrq2(DWORD);
GpSrq2 = cgpib2_dll.GpSrq2
GpSrq2.restype = ctypes.c_ulong
GpSrq2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStb2(DWORD);
GpStb2 = cgpib2_dll.GpStb2
GpStb2.restype = ctypes.c_ulong
GpStb2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDelim2(DWORD, DWORD);
GpDelim2 = cgpib2_dll.GpDelim2
GpDelim2.restype = ctypes.c_ulong
GpDelim2.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTimeout2(DWORD);
GpTimeout2 = cgpib2_dll.GpTimeout2
GpTimeout2.restype = ctypes.c_ulong
GpTimeout2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpChkstb2(DWORD *, DWORD *);
GpChkstb2 = cgpib2_dll.GpChkstb2
GpChkstb2.restype = ctypes.c_ulong
GpChkstb2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpReadreg2(DWORD, DWORD *);
GpReadreg2 = cgpib2_dll.GpReadreg2
GpReadreg2.restype = ctypes.c_ulong
GpReadreg2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDma2(DWORD, DWORD);
GpDma2 = cgpib2_dll.GpDma2
GpDma2.restype = ctypes.c_ulong
GpDma2.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExit2(void);
GpExit2 = cgpib2_dll.GpExit2
GpExit2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpComand2(DWORD *);
GpComand2 = cgpib2_dll.GpComand2
GpComand2.restype = ctypes.c_ulong
GpComand2.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDmainuse2(void);
GpDmainuse2 = cgpib2_dll.GpDmainuse2
GpDmainuse2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpStstop2(DWORD);
GpStstop2 = cgpib2_dll.GpStstop2
GpStstop2.restype = ctypes.c_ulong
GpStstop2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDmastop2(void);
GpDmastop2 = cgpib2_dll.GpDmastop2
GpDmastop2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpPpollmode2(DWORD);
GpPpollmode2 = cgpib2_dll.GpPpollmode2
GpPpollmode2.restype = ctypes.c_ulong
GpPpollmode2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStppoll2(DWORD *, DWORD);
GpStppoll2 = cgpib2_dll.GpStppoll2
GpStppoll2.restype = ctypes.c_ulong
GpStppoll2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExppoll2(DWORD *);
GpExppoll2 = cgpib2_dll.GpExppoll2
GpExppoll2.restype = ctypes.c_ulong
GpExppoll2.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStwait2(DWORD);
GpStwait2 = cgpib2_dll.GpStwait2
GpStwait2.restype = ctypes.c_ulong
GpStwait2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpWaittime2(DWORD);
GpWaittime2 = cgpib2_dll.GpWaittime2
GpWaittime2.restype = ctypes.c_ulong
GpWaittime2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpReadbus2(DWORD *);
GpReadbus2 = cgpib2_dll.GpReadbus2
GpReadbus2.restype = ctypes.c_ulong
GpReadbus2.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSfile2(DWORD *, DWORD, BYTE *);
GpSfile2 = cgpib2_dll.GpSfile2
GpSfile2.restype = ctypes.c_ulong
GpSfile2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpRfile2(DWORD *, DWORD, BYTE *);
GpRfile2 = cgpib2_dll.GpRfile2
GpRfile2.restype = ctypes.c_ulong
GpRfile2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpSdc2(DWORD);
GpSdc2 = cgpib2_dll.GpSdc2
GpSdc2.restype = ctypes.c_ulong
GpSdc2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDcl2(void);
GpDcl2 = cgpib2_dll.GpDcl2
GpDcl2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpGet2(DWORD);
GpGet2 = cgpib2_dll.GpGet2
GpGet2.restype = ctypes.c_ulong
GpGet2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpGtl2(DWORD);
GpGtl2 = cgpib2_dll.GpGtl2
GpGtl2.restype = ctypes.c_ulong
GpGtl2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpLlo2(void);
GpLlo2 = cgpib2_dll.GpLlo2
GpLlo2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTct2(DWORD);
GpTct2 = cgpib2_dll.GpTct2
GpTct2.restype = ctypes.c_ulong
GpTct2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCrst2(DWORD);
GpCrst2 = cgpib2_dll.GpCrst2
GpCrst2.restype = ctypes.c_ulong
GpCrst2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCopc2(DWORD);
GpCopc2 = cgpib2_dll.GpCopc2
GpCopc2.restype = ctypes.c_ulong
GpCopc2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCwai2(DWORD);
GpCwai2 = cgpib2_dll.GpCwai2
GpCwai2.restype = ctypes.c_ulong
GpCwai2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCcls2(DWORD);
GpCcls2 = cgpib2_dll.GpCcls2
GpCcls2.restype = ctypes.c_ulong
GpCcls2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCtrg2(DWORD);
GpCtrg2 = cgpib2_dll.GpCtrg2
GpCtrg2.restype = ctypes.c_ulong
GpCtrg2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCpre2(DWORD, DWORD);
GpCpre2 = cgpib2_dll.GpCpre2
GpCpre2.restype = ctypes.c_ulong
GpCpre2.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCese2(DWORD, DWORD);
GpCese2 = cgpib2_dll.GpCese2
GpCese2.restype = ctypes.c_ulong
GpCese2.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCsre2(DWORD, DWORD);
GpCsre2 = cgpib2_dll.GpCsre2
GpCsre2.restype = ctypes.c_ulong
GpCsre2.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpQidn2(DWORD, DWORD *, BYTE *);
GpQidn2 = cgpib2_dll.GpQidn2
GpQidn2.restype = ctypes.c_ulong
GpQidn2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopt2(DWORD, DWORD *, BYTE *);
GpQopt2 = cgpib2_dll.GpQopt2
GpQopt2.restype = ctypes.c_ulong
GpQopt2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpud2(DWORD, DWORD *, BYTE *);
GpQpud2 = cgpib2_dll.GpQpud2
GpQpud2.restype = ctypes.c_ulong
GpQpud2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQrdt2(DWORD, DWORD *, BYTE *);
GpQrdt2 = cgpib2_dll.GpQrdt2
GpQrdt2.restype = ctypes.c_ulong
GpQrdt2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQcal2(DWORD, DWORD *, BYTE *);
GpQcal2 = cgpib2_dll.GpQcal2
GpQcal2.restype = ctypes.c_ulong
GpQcal2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlrn2(DWORD, DWORD *, BYTE *);
GpQlrn2 = cgpib2_dll.GpQlrn2
GpQlrn2.restype = ctypes.c_ulong
GpQlrn2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQtst2(DWORD, DWORD *, BYTE *);
GpQtst2 = cgpib2_dll.GpQtst2
GpQtst2.restype = ctypes.c_ulong
GpQtst2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopc2(DWORD, DWORD *, BYTE *);
GpQopc2 = cgpib2_dll.GpQopc2
GpQopc2.restype = ctypes.c_ulong
GpQopc2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQemc2(DWORD, DWORD *, BYTE *);
GpQemc2 = cgpib2_dll.GpQemc2
GpQemc2.restype = ctypes.c_ulong
GpQemc2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQgmc2(DWORD, DWORD *, BYTE *);
GpQgmc2 = cgpib2_dll.GpQgmc2
GpQgmc2.restype = ctypes.c_ulong
GpQgmc2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlmc2(DWORD, DWORD *, BYTE *);
GpQlmc2 = cgpib2_dll.GpQlmc2
GpQlmc2.restype = ctypes.c_ulong
GpQlmc2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQist2(DWORD, DWORD *, BYTE *);
GpQist2 = cgpib2_dll.GpQist2
GpQist2.restype = ctypes.c_ulong
GpQist2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpre2(DWORD, DWORD *, BYTE *);
GpQpre2 = cgpib2_dll.GpQpre2
GpQpre2.restype = ctypes.c_ulong
GpQpre2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQese2(DWORD, DWORD *, BYTE *);
GpQese2 = cgpib2_dll.GpQese2
GpQese2.restype = ctypes.c_ulong
GpQese2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQesr2(DWORD, DWORD *, BYTE *);
GpQesr2 = cgpib2_dll.GpQesr2
GpQesr2.restype = ctypes.c_ulong
GpQesr2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpsc2(DWORD, DWORD *, BYTE *);
GpQpsc2 = cgpib2_dll.GpQpsc2
GpQpsc2.restype = ctypes.c_ulong
GpQpsc2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQsre2(DWORD, DWORD *, BYTE *);
GpQsre2 = cgpib2_dll.GpQsre2
GpQsre2.restype = ctypes.c_ulong
GpQsre2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQstb2(DWORD, DWORD *, BYTE *);
GpQstb2 = cgpib2_dll.GpQstb2
GpQstb2.restype = ctypes.c_ulong
GpQstb2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQddt2(DWORD, DWORD *, BYTE *);
GpQddt2 = cgpib2_dll.GpQddt2
GpQddt2.restype = ctypes.c_ulong
GpQddt2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTaLaBit2(DWORD);
GpTaLaBit2 = cgpib2_dll.GpTaLaBit2
GpTaLaBit2.restype = ctypes.c_ulong
GpTaLaBit2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpBoardsts2(DWORD, DWORD *);
GpBoardsts2 = cgpib2_dll.GpBoardsts2
GpBoardsts2.restype = ctypes.c_ulong
GpBoardsts2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrqEvent2(HANDLE, WORD, DWORD);
GpSrqEvent2 = cgpib2_dll.GpSrqEvent2
GpSrqEvent2.restype = ctypes.c_ulong
GpSrqEvent2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqEventEx2(HANDLE, WORD, DWORD);
GpSrqEventEx2 = cgpib2_dll.GpSrqEventEx2
GpSrqEventEx2.restype = ctypes.c_ulong
GpSrqEventEx2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqOn2();
GpSrqOn2 = cgpib2_dll.GpSrqOn2
GpSrqOn2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFind2(DWORD *);
GpDevFind2 = cgpib2_dll.GpDevFind2
GpDevFind2.restype = ctypes.c_ulong
GpDevFind2.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSetEvent2(DWORD);
GpSetEvent2 = cgpib2_dll.GpSetEvent2
GpSetEvent2.restype = ctypes.c_ulong
GpSetEvent2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventSrq2(HANDLE, WORD, DWORD);
GpSetEventSrq2 = cgpib2_dll.GpSetEventSrq2
GpSetEventSrq2.restype = ctypes.c_ulong
GpSetEventSrq2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDet2(HANDLE, WORD, DWORD);
GpSetEventDet2 = cgpib2_dll.GpSetEventDet2
GpSetEventDet2.restype = ctypes.c_ulong
GpSetEventDet2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDec2(HANDLE, WORD, DWORD);
GpSetEventDec2 = cgpib2_dll.GpSetEventDec2
GpSetEventDec2.restype = ctypes.c_ulong
GpSetEventDec2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventIfc2(HANDLE, WORD, DWORD);
GpSetEventIfc2 = cgpib2_dll.GpSetEventIfc2
GpSetEventIfc2.restype = ctypes.c_ulong
GpSetEventIfc2.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpEnableNextEvent2(void);
GpEnableNextEvent2 = cgpib2_dll.GpEnableNextEvent2
GpEnableNextEvent2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpSrqEx2(DWORD, DWORD, DWORD);
GpSrqEx2 = cgpib2_dll.GpSrqEx2
GpSrqEx2.restype = ctypes.c_ulong
GpSrqEx2.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpUpperCode2(DWORD);
GpUpperCode2 = cgpib2_dll.GpUpperCode2
GpUpperCode2.restype = ctypes.c_ulong
GpUpperCode2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettings2(LPBYTE, LPBYTE, LPBYTE, DWORD);
GpCnvSettings2 = cgpib2_dll.GpCnvSettings2
GpCnvSettings2.restype = ctypes.c_ulong
GpCnvSettings2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettingsToStr2(DWORD, DWORD, DWORD);
GpCnvSettingsToStr2 = cgpib2_dll.GpCnvSettingsToStr2
GpCnvSettingsToStr2.restype = ctypes.c_ulong
GpCnvSettingsToStr2.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvStrToDbl2(LPBYTE, double*);
GpCnvStrToDbl2 = cgpib2_dll.GpCnvStrToDbl2
GpCnvStrToDbl2.restype = ctypes.c_ulong
GpCnvStrToDbl2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvStrToDblArray2(LPBYTE, double*, LPDWORD);
GpCnvStrToDblArray2 = cgpib2_dll.GpCnvStrToDblArray2
GpCnvStrToDblArray2.restype = ctypes.c_ulong
GpCnvStrToDblArray2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvStrToFlt2(LPBYTE, float*);
GpCnvStrToFlt2 = cgpib2_dll.GpCnvStrToFlt2
GpCnvStrToFlt2.restype = ctypes.c_ulong
GpCnvStrToFlt2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvStrToFltArray2(LPBYTE, float*, LPDWORD);
GpCnvStrToFltArray2 = cgpib2_dll.GpCnvStrToFltArray2
GpCnvStrToFltArray2.restype = ctypes.c_ulong
GpCnvStrToFltArray2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvDblToStr2(LPBYTE, LPDWORD, double);
GpCnvDblToStr2 = cgpib2_dll.GpCnvDblToStr2
GpCnvDblToStr2.restype = ctypes.c_ulong
GpCnvDblToStr2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_double]

# C Prototype: DWORD WINAPI GpCnvDblArrayToStr2(LPBYTE, LPDWORD, double*, DWORD);
GpCnvDblArrayToStr2 = cgpib2_dll.GpCnvDblArrayToStr2
GpCnvDblArrayToStr2.restype = ctypes.c_ulong
GpCnvDblArrayToStr2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvFltToStr2(LPBYTE, LPDWORD, float);
GpCnvFltToStr2 = cgpib2_dll.GpCnvFltToStr2
GpCnvFltToStr2.restype = ctypes.c_ulong
GpCnvFltToStr2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_float]

# C Prototype: DWORD WINAPI GpCnvFltArrayToStr2(LPBYTE, LPDWORD, float*, DWORD);
GpCnvFltArrayToStr2 = cgpib2_dll.GpCnvFltArrayToStr2
GpCnvFltArrayToStr2.restype = ctypes.c_ulong
GpCnvFltArrayToStr2.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpPollEx2(LPDWORD, LPDWORD, LPDWORD);
GpPollEx2 = cgpib2_dll.GpPollEx2
GpPollEx2.restype = ctypes.c_ulong
GpPollEx2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSlowMode2(DWORD);
GpSlowMode2 = cgpib2_dll.GpSlowMode2
GpSlowMode2.restype = ctypes.c_ulong
GpSlowMode2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvSettings2(DWORD);
GpCnvCvSettings2 = cgpib2_dll.GpCnvCvSettings2
GpCnvCvSettings2.restype = ctypes.c_ulong
GpCnvCvSettings2.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvi2(LPBYTE, short*);
GpCnvCvi2 = cgpib2_dll.GpCnvCvi2
GpCnvCvi2.restype = ctypes.c_ulong
GpCnvCvi2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpCnvCviArray2(LPBYTE, short*, DWORD);
GpCnvCviArray2 = cgpib2_dll.GpCnvCviArray2
GpCnvCviArray2.restype = ctypes.c_ulong
GpCnvCviArray2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvs2(LPBYTE, float*);
GpCnvCvs2 = cgpib2_dll.GpCnvCvs2
GpCnvCvs2.restype = ctypes.c_ulong
GpCnvCvs2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvCvsArray2(LPBYTE, float*, DWORD);
GpCnvCvsArray2 = cgpib2_dll.GpCnvCvsArray2
GpCnvCvsArray2.restype = ctypes.c_ulong
GpCnvCvsArray2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvd2(LPBYTE, double*);
GpCnvCvd2 = cgpib2_dll.GpCnvCvd2
GpCnvCvd2.restype = ctypes.c_ulong
GpCnvCvd2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvCvdArray2(LPBYTE, double*, DWORD);
GpCnvCvdArray2 = cgpib2_dll.GpCnvCvdArray2
GpCnvCvdArray2.restype = ctypes.c_ulong
GpCnvCvdArray2.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTalkEx2(DWORD *, DWORD *, BYTE *);
GpTalkEx2 = cgpib2_dll.GpTalkEx2
GpTalkEx2.restype = ctypes.c_ulong
GpTalkEx2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenEx2(DWORD *, DWORD *, BYTE *);
GpListenEx2 = cgpib2_dll.GpListenEx2
GpListenEx2.restype = ctypes.c_ulong
GpListenEx2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTalkAsync2(DWORD *, DWORD *, BYTE *);
GpTalkAsync2 = cgpib2_dll.GpTalkAsync2
GpTalkAsync2.restype = ctypes.c_ulong
GpTalkAsync2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenAsync2(DWORD *, DWORD *, BYTE *);
GpListenAsync2 = cgpib2_dll.GpListenAsync2
GpListenAsync2.restype = ctypes.c_ulong
GpListenAsync2.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpCommandAsync2(DWORD *);
GpCommandAsync2 = cgpib2_dll.GpCommandAsync2
GpCommandAsync2.restype = ctypes.c_ulong
GpCommandAsync2.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCheckAsync2(DWORD, DWORD*);
GpCheckAsync2 = cgpib2_dll.GpCheckAsync2
GpCheckAsync2.restype = ctypes.c_ulong
GpCheckAsync2.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStopAsync2(void);
GpStopAsync2 = cgpib2_dll.GpStopAsync2
GpStopAsync2.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFindEx2(short, short, short *);
GpDevFindEx2 = cgpib2_dll.GpDevFindEx2
GpDevFindEx2.restype = ctypes.c_ulong
GpDevFindEx2.argtypes = [ctypes.c_short, ctypes.c_short, ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpBoardstsEx(DWORD, DWORD, DWORD *);
GpBoardstsEx2 = cgpib2_dll.GpBoardstsEx2
GpBoardstsEx2.restype = ctypes.c_ulong
GpBoardstsEx2.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSmoothMode2(DWORD);
GpSmoothMode2 = cgpib2_dll.GpSmoothMode2
GpSmoothMode2.restype = ctypes.c_ulong
GpSmoothMode2.argtypes = [ctypes.c_ulong]

#----------------------------------------
# For driver No.3
#----------------------------------------
# C Prototype: DWORD WINAPI GpIni3(void);
GpIni3 = cgpib3_dll.GpIni3
GpIni3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpIfc3(DWORD);
GpIfc3 = cgpib3_dll.GpIfc3
GpIfc3.restype = ctypes.c_ulong
GpIfc3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpRen3(void);
GpRen3 = cgpib3_dll.GpRen3
GpRen3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpResetren3(void);
GpResetren3 = cgpib3_dll.GpResetren3
GpResetren3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTalk3(DWORD *, DWORD, BYTE *);
GpTalk3 = cgpib3_dll.GpTalk3
GpTalk3.restype = ctypes.c_ulong
GpTalk3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListen3(DWORD *, DWORD *, BYTE *);
GpListen3 = cgpib3_dll.GpListen3
GpListen3.restype = ctypes.c_ulong
GpListen3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpPoll3(DWORD *, DWORD *);
GpPoll3 = cgpib3_dll.GpPoll3
GpPoll3.restype = ctypes.c_ulong
GpPoll3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrq3(DWORD);
GpSrq3 = cgpib3_dll.GpSrq3
GpSrq3.restype = ctypes.c_ulong
GpSrq3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStb3(DWORD);
GpStb3 = cgpib3_dll.GpStb3
GpStb3.restype = ctypes.c_ulong
GpStb3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDelim3(DWORD, DWORD);
GpDelim3 = cgpib3_dll.GpDelim3
GpDelim3.restype = ctypes.c_ulong
GpDelim3.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTimeout3(DWORD);
GpTimeout3 = cgpib3_dll.GpTimeout3
GpTimeout3.restype = ctypes.c_ulong
GpTimeout3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpChkstb3(DWORD *, DWORD *);
GpChkstb3 = cgpib3_dll.GpChkstb3
GpChkstb3.restype = ctypes.c_ulong
GpChkstb3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpReadreg3(DWORD, DWORD *);
GpReadreg3 = cgpib3_dll.GpReadreg3
GpReadreg3.restype = ctypes.c_ulong
GpReadreg3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDma3(DWORD, DWORD);
GpDma3 = cgpib3_dll.GpDma3
GpDma3.restype = ctypes.c_ulong
GpDma3.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExit3(void);
GpExit3 = cgpib3_dll.GpExit3
GpExit3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpComand3(DWORD *);
GpComand3 = cgpib3_dll.GpComand3
GpComand3.restype = ctypes.c_ulong
GpComand3.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDmainuse3(void);
GpDmainuse3 = cgpib3_dll.GpDmainuse3
GpDmainuse3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpStstop3(DWORD);
GpStstop3 = cgpib3_dll.GpStstop3
GpStstop3.restype = ctypes.c_ulong
GpStstop3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDmastop3(void);
GpDmastop3 = cgpib3_dll.GpDmastop3
GpDmastop3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpPpollmode3(DWORD);
GpPpollmode3 = cgpib3_dll.GpPpollmode3
GpPpollmode3.restype = ctypes.c_ulong
GpPpollmode3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStppoll3(DWORD *, DWORD);
GpStppoll3 = cgpib3_dll.GpStppoll3
GpStppoll3.restype = ctypes.c_ulong
GpStppoll3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExppoll3(DWORD *);
GpExppoll3 = cgpib3_dll.GpExppoll3
GpExppoll3.restype = ctypes.c_ulong
GpExppoll3.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStwait3(DWORD);
GpStwait3 = cgpib3_dll.GpStwait3
GpStwait3.restype = ctypes.c_ulong
GpStwait3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpWaittime3(DWORD);
GpWaittime3 = cgpib3_dll.GpWaittime3
GpWaittime3.restype = ctypes.c_ulong
GpWaittime3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpReadbus3(DWORD *);
GpReadbus3 = cgpib3_dll.GpReadbus3
GpReadbus3.restype = ctypes.c_ulong
GpReadbus3.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSfile3(DWORD *, DWORD, BYTE *);
GpSfile3 = cgpib3_dll.GpSfile3
GpSfile3.restype = ctypes.c_ulong
GpSfile3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpRfile3(DWORD *, DWORD, BYTE *);
GpRfile3 = cgpib3_dll.GpRfile3
GpRfile3.restype = ctypes.c_ulong
GpRfile3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpSdc3(DWORD);
GpSdc3 = cgpib3_dll.GpSdc3
GpSdc3.restype = ctypes.c_ulong
GpSdc3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDcl3(void);
GpDcl3 = cgpib3_dll.GpDcl3
GpDcl3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpGet3(DWORD);
GpGet3 = cgpib3_dll.GpGet3
GpGet3.restype = ctypes.c_ulong
GpGet3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpGtl3(DWORD);
GpGtl3 = cgpib3_dll.GpGtl3
GpGtl3.restype = ctypes.c_ulong
GpGtl3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpLlo3(void);
GpLlo3 = cgpib3_dll.GpLlo3
GpLlo3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTct3(DWORD);
GpTct3 = cgpib3_dll.GpTct3
GpTct3.restype = ctypes.c_ulong
GpTct3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCrst3(DWORD);
GpCrst3 = cgpib3_dll.GpCrst3
GpCrst3.restype = ctypes.c_ulong
GpCrst3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCopc3(DWORD);
GpCopc3 = cgpib3_dll.GpCopc3
GpCopc3.restype = ctypes.c_ulong
GpCopc3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCwai3(DWORD);
GpCwai3 = cgpib3_dll.GpCwai3
GpCwai3.restype = ctypes.c_ulong
GpCwai3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCcls3(DWORD);
GpCcls3 = cgpib3_dll.GpCcls3
GpCcls3.restype = ctypes.c_ulong
GpCcls3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCtrg3(DWORD);
GpCtrg3 = cgpib3_dll.GpCtrg3
GpCtrg3.restype = ctypes.c_ulong
GpCtrg3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCpre3(DWORD, DWORD);
GpCpre3 = cgpib3_dll.GpCpre3
GpCpre3.restype = ctypes.c_ulong
GpCpre3.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCese3(DWORD, DWORD);
GpCese3 = cgpib3_dll.GpCese3
GpCese3.restype = ctypes.c_ulong
GpCese3.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCsre3(DWORD, DWORD);
GpCsre3 = cgpib3_dll.GpCsre3
GpCsre3.restype = ctypes.c_ulong
GpCsre3.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpQidn3(DWORD, DWORD *, BYTE *);
GpQidn3 = cgpib3_dll.GpQidn3
GpQidn3.restype = ctypes.c_ulong
GpQidn3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopt3(DWORD, DWORD *, BYTE *);
GpQopt3 = cgpib3_dll.GpQopt3
GpQopt3.restype = ctypes.c_ulong
GpQopt3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpud3(DWORD, DWORD *, BYTE *);
GpQpud3 = cgpib3_dll.GpQpud3
GpQpud3.restype = ctypes.c_ulong
GpQpud3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQrdt3(DWORD, DWORD *, BYTE *);
GpQrdt3 = cgpib3_dll.GpQrdt3
GpQrdt3.restype = ctypes.c_ulong
GpQrdt3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQcal3(DWORD, DWORD *, BYTE *);
GpQcal3 = cgpib3_dll.GpQcal3
GpQcal3.restype = ctypes.c_ulong
GpQcal3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlrn3(DWORD, DWORD *, BYTE *);
GpQlrn3 = cgpib3_dll.GpQlrn3
GpQlrn3.restype = ctypes.c_ulong
GpQlrn3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQtst3(DWORD, DWORD *, BYTE *);
GpQtst3 = cgpib3_dll.GpQtst3
GpQtst3.restype = ctypes.c_ulong
GpQtst3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopc3(DWORD, DWORD *, BYTE *);
GpQopc3 = cgpib3_dll.GpQopc3
GpQopc3.restype = ctypes.c_ulong
GpQopc3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQemc3(DWORD, DWORD *, BYTE *);
GpQemc3 = cgpib3_dll.GpQemc3
GpQemc3.restype = ctypes.c_ulong
GpQemc3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQgmc3(DWORD, DWORD *, BYTE *);
GpQgmc3 = cgpib3_dll.GpQgmc3
GpQgmc3.restype = ctypes.c_ulong
GpQgmc3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlmc3(DWORD, DWORD *, BYTE *);
GpQlmc3 = cgpib3_dll.GpQlmc3
GpQlmc3.restype = ctypes.c_ulong
GpQlmc3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQist3(DWORD, DWORD *, BYTE *);
GpQist3 = cgpib3_dll.GpQist3
GpQist3.restype = ctypes.c_ulong
GpQist3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpre3(DWORD, DWORD *, BYTE *);
GpQpre3 = cgpib3_dll.GpQpre3
GpQpre3.restype = ctypes.c_ulong
GpQpre3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQese3(DWORD, DWORD *, BYTE *);
GpQese3 = cgpib3_dll.GpQese3
GpQese3.restype = ctypes.c_ulong
GpQese3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQesr3(DWORD, DWORD *, BYTE *);
GpQesr3 = cgpib3_dll.GpQesr3
GpQesr3.restype = ctypes.c_ulong
GpQesr3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpsc3(DWORD, DWORD *, BYTE *);
GpQpsc3 = cgpib3_dll.GpQpsc3
GpQpsc3.restype = ctypes.c_ulong
GpQpsc3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQsre3(DWORD, DWORD *, BYTE *);
GpQsre3 = cgpib3_dll.GpQsre3
GpQsre3.restype = ctypes.c_ulong
GpQsre3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQstb3(DWORD, DWORD *, BYTE *);
GpQstb3 = cgpib3_dll.GpQstb3
GpQstb3.restype = ctypes.c_ulong
GpQstb3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQddt3(DWORD, DWORD *, BYTE *);
GpQddt3 = cgpib3_dll.GpQddt3
GpQddt3.restype = ctypes.c_ulong
GpQddt3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTaLaBit3(DWORD);
GpTaLaBit3 = cgpib3_dll.GpTaLaBit3
GpTaLaBit3.restype = ctypes.c_ulong
GpTaLaBit3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpBoardsts3(DWORD, DWORD *);
GpBoardsts3 = cgpib3_dll.GpBoardsts3
GpBoardsts3.restype = ctypes.c_ulong
GpBoardsts3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrqEvent3(HANDLE, WORD, DWORD);
GpSrqEvent3 = cgpib3_dll.GpSrqEvent3
GpSrqEvent3.restype = ctypes.c_ulong
GpSrqEvent3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqEventEx3(HANDLE, WORD, DWORD);
GpSrqEventEx3 = cgpib3_dll.GpSrqEventEx3
GpSrqEventEx3.restype = ctypes.c_ulong
GpSrqEventEx3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqOn3();
GpSrqOn3 = cgpib3_dll.GpSrqOn3
GpSrqOn3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFind3(DWORD *);
GpDevFind3 = cgpib3_dll.GpDevFind3
GpDevFind3.restype = ctypes.c_ulong
GpDevFind3.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSetEvent3(DWORD);
GpSetEvent3 = cgpib3_dll.GpSetEvent3
GpSetEvent3.restype = ctypes.c_ulong
GpSetEvent3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventSrq3(HANDLE, WORD, DWORD);
GpSetEventSrq3 = cgpib3_dll.GpSetEventSrq3
GpSetEventSrq3.restype = ctypes.c_ulong
GpSetEventSrq3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDet3(HANDLE, WORD, DWORD);
GpSetEventDet3 = cgpib3_dll.GpSetEventDet3
GpSetEventDet3.restype = ctypes.c_ulong
GpSetEventDet3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDec3(HANDLE, WORD, DWORD);
GpSetEventDec3 = cgpib3_dll.GpSetEventDec3
GpSetEventDec3.restype = ctypes.c_ulong
GpSetEventDec3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventIfc3(HANDLE, WORD, DWORD);
GpSetEventIfc3 = cgpib3_dll.GpSetEventIfc3
GpSetEventIfc3.restype = ctypes.c_ulong
GpSetEventIfc3.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpEnableNextEvent3(void);
GpEnableNextEvent3 = cgpib3_dll.GpEnableNextEvent3
GpEnableNextEvent3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpSrqEx3(DWORD, DWORD, DWORD);
GpSrqEx3 = cgpib3_dll.GpSrqEx3
GpSrqEx3.restype = ctypes.c_ulong
GpSrqEx3.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpUpperCode3(DWORD);
GpUpperCode3 = cgpib3_dll.GpUpperCode3
GpUpperCode3.restype = ctypes.c_ulong
GpUpperCode3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettings3(LPBYTE, LPBYTE, LPBYTE, DWORD);
GpCnvSettings3 = cgpib3_dll.GpCnvSettings3
GpCnvSettings3.restype = ctypes.c_ulong
GpCnvSettings3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettingsToStr3(DWORD, DWORD, DWORD);
GpCnvSettingsToStr3 = cgpib3_dll.GpCnvSettingsToStr3
GpCnvSettingsToStr3.restype = ctypes.c_ulong
GpCnvSettingsToStr3.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvStrToDbl3(LPBYTE, double*);
GpCnvStrToDbl3 = cgpib3_dll.GpCnvStrToDbl3
GpCnvStrToDbl3.restype = ctypes.c_ulong
GpCnvStrToDbl3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvStrToDblArray3(LPBYTE, double*, LPDWORD);
GpCnvStrToDblArray3 = cgpib3_dll.GpCnvStrToDblArray3
GpCnvStrToDblArray3.restype = ctypes.c_ulong
GpCnvStrToDblArray3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvStrToFlt3(LPBYTE, float*);
GpCnvStrToFlt3 = cgpib3_dll.GpCnvStrToFlt3
GpCnvStrToFlt3.restype = ctypes.c_ulong
GpCnvStrToFlt3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvStrToFltArray3(LPBYTE, float*, LPDWORD);
GpCnvStrToFltArray3 = cgpib3_dll.GpCnvStrToFltArray3
GpCnvStrToFltArray3.restype = ctypes.c_ulong
GpCnvStrToFltArray3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvDblToStr3(LPBYTE, LPDWORD, double);
GpCnvDblToStr3 = cgpib3_dll.GpCnvDblToStr3
GpCnvDblToStr3.restype = ctypes.c_ulong
GpCnvDblToStr3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_double]

# C Prototype: DWORD WINAPI GpCnvDblArrayToStr3(LPBYTE, LPDWORD, double*, DWORD);
GpCnvDblArrayToStr3 = cgpib3_dll.GpCnvDblArrayToStr3
GpCnvDblArrayToStr3.restype = ctypes.c_ulong
GpCnvDblArrayToStr3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvFltToStr3(LPBYTE, LPDWORD, float);
GpCnvFltToStr3 = cgpib3_dll.GpCnvFltToStr3
GpCnvFltToStr3.restype = ctypes.c_ulong
GpCnvFltToStr3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_float]

# C Prototype: DWORD WINAPI GpCnvFltArrayToStr3(LPBYTE, LPDWORD, float*, DWORD);
GpCnvFltArrayToStr3 = cgpib3_dll.GpCnvFltArrayToStr3
GpCnvFltArrayToStr3.restype = ctypes.c_ulong
GpCnvFltArrayToStr3.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpPollEx3(LPDWORD, LPDWORD, LPDWORD);
GpPollEx3 = cgpib3_dll.GpPollEx3
GpPollEx3.restype = ctypes.c_ulong
GpPollEx3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSlowMode3(DWORD);
GpSlowMode3 = cgpib3_dll.GpSlowMode3
GpSlowMode3.restype = ctypes.c_ulong
GpSlowMode3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvSettings3(DWORD);
GpCnvCvSettings3 = cgpib3_dll.GpCnvCvSettings3
GpCnvCvSettings3.restype = ctypes.c_ulong
GpCnvCvSettings3.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvi3(LPBYTE, short*);
GpCnvCvi3 = cgpib3_dll.GpCnvCvi3
GpCnvCvi3.restype = ctypes.c_ulong
GpCnvCvi3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpCnvCviArray3(LPBYTE, short*, DWORD);
GpCnvCviArray3 = cgpib3_dll.GpCnvCviArray3
GpCnvCviArray3.restype = ctypes.c_ulong
GpCnvCviArray3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvs3(LPBYTE, float*);
GpCnvCvs3 = cgpib3_dll.GpCnvCvs3
GpCnvCvs3.restype = ctypes.c_ulong
GpCnvCvs3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvCvsArray3(LPBYTE, float*, DWORD);
GpCnvCvsArray3 = cgpib3_dll.GpCnvCvsArray3
GpCnvCvsArray3.restype = ctypes.c_ulong
GpCnvCvsArray3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvd3(LPBYTE, double*);
GpCnvCvd3 = cgpib3_dll.GpCnvCvd3
GpCnvCvd3.restype = ctypes.c_ulong
GpCnvCvd3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvCvdArray3(LPBYTE, double*, DWORD);
GpCnvCvdArray3 = cgpib3_dll.GpCnvCvdArray3
GpCnvCvdArray3.restype = ctypes.c_ulong
GpCnvCvdArray3.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTalkEx3(DWORD *, DWORD *, BYTE *);
GpTalkEx3 = cgpib3_dll.GpTalkEx3
GpTalkEx3.restype = ctypes.c_ulong
GpTalkEx3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenEx3(DWORD *, DWORD *, BYTE *);
GpListenEx3 = cgpib3_dll.GpListenEx3
GpListenEx3.restype = ctypes.c_ulong
GpListenEx3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTalkAsync3(DWORD *, DWORD *, BYTE *);
GpTalkAsync3 = cgpib3_dll.GpTalkAsync3
GpTalkAsync3.restype = ctypes.c_ulong
GpTalkAsync3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenAsync3(DWORD *, DWORD *, BYTE *);
GpListenAsync3 = cgpib3_dll.GpListenAsync3
GpListenAsync3.restype = ctypes.c_ulong
GpListenAsync3.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpCommandAsync3(DWORD *);
GpCommandAsync3 = cgpib3_dll.GpCommandAsync3
GpCommandAsync3.restype = ctypes.c_ulong
GpCommandAsync3.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCheckAsync3(DWORD, DWORD*);
GpCheckAsync3 = cgpib3_dll.GpCheckAsync3
GpCheckAsync3.restype = ctypes.c_ulong
GpCheckAsync3.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStopAsync3(void);
GpStopAsync3 = cgpib3_dll.GpStopAsync3
GpStopAsync3.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFindEx3(short, short, short *);
GpDevFindEx3 = cgpib3_dll.GpDevFindEx3
GpDevFindEx3.restype = ctypes.c_ulong
GpDevFindEx3.argtypes = [ctypes.c_short, ctypes.c_short, ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpBoardstsEx(DWORD, DWORD, DWORD *);
GpBoardstsEx3 = cgpib3_dll.GpBoardstsEx3
GpBoardstsEx3.restype = ctypes.c_ulong
GpBoardstsEx3.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSmoothMode3(DWORD);
GpSmoothMode3 = cgpib3_dll.GpSmoothMode3
GpSmoothMode3.restype = ctypes.c_ulong
GpSmoothMode3.argtypes = [ctypes.c_ulong]

#----------------------------------------
# For driver No.4
#----------------------------------------
# C Prototype: DWORD WINAPI GpIni4(void);
GpIni4 = cgpib4_dll.GpIni4
GpIni4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpIfc4(DWORD);
GpIfc4 = cgpib4_dll.GpIfc4
GpIfc4.restype = ctypes.c_ulong
GpIfc4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpRen4(void);
GpRen4 = cgpib4_dll.GpRen4
GpRen4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpResetren4(void);
GpResetren4 = cgpib4_dll.GpResetren4
GpResetren4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTalk4(DWORD *, DWORD, BYTE *);
GpTalk4 = cgpib4_dll.GpTalk4
GpTalk4.restype = ctypes.c_ulong
GpTalk4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListen4(DWORD *, DWORD *, BYTE *);
GpListen4 = cgpib4_dll.GpListen4
GpListen4.restype = ctypes.c_ulong
GpListen4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpPoll4(DWORD *, DWORD *);
GpPoll4 = cgpib4_dll.GpPoll4
GpPoll4.restype = ctypes.c_ulong
GpPoll4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrq4(DWORD);
GpSrq4 = cgpib4_dll.GpSrq4
GpSrq4.restype = ctypes.c_ulong
GpSrq4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStb4(DWORD);
GpStb4 = cgpib4_dll.GpStb4
GpStb4.restype = ctypes.c_ulong
GpStb4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDelim4(DWORD, DWORD);
GpDelim4 = cgpib4_dll.GpDelim4
GpDelim4.restype = ctypes.c_ulong
GpDelim4.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTimeout4(DWORD);
GpTimeout4 = cgpib4_dll.GpTimeout4
GpTimeout4.restype = ctypes.c_ulong
GpTimeout4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpChkstb4(DWORD *, DWORD *);
GpChkstb4 = cgpib4_dll.GpChkstb4
GpChkstb4.restype = ctypes.c_ulong
GpChkstb4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpReadreg4(DWORD, DWORD *);
GpReadreg4 = cgpib4_dll.GpReadreg4
GpReadreg4.restype = ctypes.c_ulong
GpReadreg4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDma4(DWORD, DWORD);
GpDma4 = cgpib4_dll.GpDma4
GpDma4.restype = ctypes.c_ulong
GpDma4.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExit4(void);
GpExit4 = cgpib4_dll.GpExit4
GpExit4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpComand4(DWORD *);
GpComand4 = cgpib4_dll.GpComand4
GpComand4.restype = ctypes.c_ulong
GpComand4.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpDmainuse4(void);
GpDmainuse4 = cgpib4_dll.GpDmainuse4
GpDmainuse4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpStstop4(DWORD);
GpStstop4 = cgpib4_dll.GpStstop4
GpStstop4.restype = ctypes.c_ulong
GpStstop4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDmastop4(void);
GpDmastop4 = cgpib4_dll.GpDmastop4
GpDmastop4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpPpollmode4(DWORD);
GpPpollmode4 = cgpib4_dll.GpPpollmode4
GpPpollmode4.restype = ctypes.c_ulong
GpPpollmode4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpStppoll4(DWORD *, DWORD);
GpStppoll4 = cgpib4_dll.GpStppoll4
GpStppoll4.restype = ctypes.c_ulong
GpStppoll4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpExppoll4(DWORD *);
GpExppoll4 = cgpib4_dll.GpExppoll4
GpExppoll4.restype = ctypes.c_ulong
GpExppoll4.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStwait4(DWORD);
GpStwait4 = cgpib4_dll.GpStwait4
GpStwait4.restype = ctypes.c_ulong
GpStwait4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpWaittime4(DWORD);
GpWaittime4 = cgpib4_dll.GpWaittime4
GpWaittime4.restype = ctypes.c_ulong
GpWaittime4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpReadbus4(DWORD *);
GpReadbus4 = cgpib4_dll.GpReadbus4
GpReadbus4.restype = ctypes.c_ulong
GpReadbus4.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSfile4(DWORD *, DWORD, BYTE *);
GpSfile4 = cgpib4_dll.GpSfile4
GpSfile4.restype = ctypes.c_ulong
GpSfile4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpRfile4(DWORD *, DWORD, BYTE *);
GpRfile4 = cgpib4_dll.GpRfile4
GpRfile4.restype = ctypes.c_ulong
GpRfile4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.c_ulong, ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpSdc4(DWORD);
GpSdc4 = cgpib4_dll.GpSdc4
GpSdc4.restype = ctypes.c_ulong
GpSdc4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpDcl4(void);
GpDcl4 = cgpib4_dll.GpDcl4
GpDcl4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpGet4(DWORD);
GpGet4 = cgpib4_dll.GpGet4
GpGet4.restype = ctypes.c_ulong
GpGet4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpGtl4(DWORD);
GpGtl4 = cgpib4_dll.GpGtl4
GpGtl4.restype = ctypes.c_ulong
GpGtl4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpLlo4(void);
GpLlo4 = cgpib4_dll.GpLlo4
GpLlo4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpTct4(DWORD);
GpTct4 = cgpib4_dll.GpTct4
GpTct4.restype = ctypes.c_ulong
GpTct4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCrst4(DWORD);
GpCrst4 = cgpib4_dll.GpCrst4
GpCrst4.restype = ctypes.c_ulong
GpCrst4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCopc4(DWORD);
GpCopc4 = cgpib4_dll.GpCopc4
GpCopc4.restype = ctypes.c_ulong
GpCopc4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCwai4(DWORD);
GpCwai4 = cgpib4_dll.GpCwai4
GpCwai4.restype = ctypes.c_ulong
GpCwai4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCcls4(DWORD);
GpCcls4 = cgpib4_dll.GpCcls4
GpCcls4.restype = ctypes.c_ulong
GpCcls4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCtrg4(DWORD);
GpCtrg4 = cgpib4_dll.GpCtrg4
GpCtrg4.restype = ctypes.c_ulong
GpCtrg4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCpre4(DWORD, DWORD);
GpCpre4 = cgpib4_dll.GpCpre4
GpCpre4.restype = ctypes.c_ulong
GpCpre4.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCese4(DWORD, DWORD);
GpCese4 = cgpib4_dll.GpCese4
GpCese4.restype = ctypes.c_ulong
GpCese4.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCsre4(DWORD, DWORD);
GpCsre4 = cgpib4_dll.GpCsre4
GpCsre4.restype = ctypes.c_ulong
GpCsre4.argtypes = [ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpQidn4(DWORD, DWORD *, BYTE *);
GpQidn4 = cgpib4_dll.GpQidn4
GpQidn4.restype = ctypes.c_ulong
GpQidn4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopt4(DWORD, DWORD *, BYTE *);
GpQopt4 = cgpib4_dll.GpQopt4
GpQopt4.restype = ctypes.c_ulong
GpQopt4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpud4(DWORD, DWORD *, BYTE *);
GpQpud4 = cgpib4_dll.GpQpud4
GpQpud4.restype = ctypes.c_ulong
GpQpud4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQrdt4(DWORD, DWORD *, BYTE *);
GpQrdt4 = cgpib4_dll.GpQrdt4
GpQrdt4.restype = ctypes.c_ulong
GpQrdt4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQcal4(DWORD, DWORD *, BYTE *);
GpQcal4 = cgpib4_dll.GpQcal4
GpQcal4.restype = ctypes.c_ulong
GpQcal4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlrn4(DWORD, DWORD *, BYTE *);
GpQlrn4 = cgpib4_dll.GpQlrn4
GpQlrn4.restype = ctypes.c_ulong
GpQlrn4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQtst4(DWORD, DWORD *, BYTE *);
GpQtst4 = cgpib4_dll.GpQtst4
GpQtst4.restype = ctypes.c_ulong
GpQtst4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQopc4(DWORD, DWORD *, BYTE *);
GpQopc4 = cgpib4_dll.GpQopc4
GpQopc4.restype = ctypes.c_ulong
GpQopc4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQemc4(DWORD, DWORD *, BYTE *);
GpQemc4 = cgpib4_dll.GpQemc4
GpQemc4.restype = ctypes.c_ulong
GpQemc4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQgmc4(DWORD, DWORD *, BYTE *);
GpQgmc4 = cgpib4_dll.GpQgmc4
GpQgmc4.restype = ctypes.c_ulong
GpQgmc4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQlmc4(DWORD, DWORD *, BYTE *);
GpQlmc4 = cgpib4_dll.GpQlmc4
GpQlmc4.restype = ctypes.c_ulong
GpQlmc4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQist4(DWORD, DWORD *, BYTE *);
GpQist4 = cgpib4_dll.GpQist4
GpQist4.restype = ctypes.c_ulong
GpQist4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpre4(DWORD, DWORD *, BYTE *);
GpQpre4 = cgpib4_dll.GpQpre4
GpQpre4.restype = ctypes.c_ulong
GpQpre4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQese4(DWORD, DWORD *, BYTE *);
GpQese4 = cgpib4_dll.GpQese4
GpQese4.restype = ctypes.c_ulong
GpQese4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQesr4(DWORD, DWORD *, BYTE *);
GpQesr4 = cgpib4_dll.GpQesr4
GpQesr4.restype = ctypes.c_ulong
GpQesr4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQpsc4(DWORD, DWORD *, BYTE *);
GpQpsc4 = cgpib4_dll.GpQpsc4
GpQpsc4.restype = ctypes.c_ulong
GpQpsc4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQsre4(DWORD, DWORD *, BYTE *);
GpQsre4 = cgpib4_dll.GpQsre4
GpQsre4.restype = ctypes.c_ulong
GpQsre4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQstb4(DWORD, DWORD *, BYTE *);
GpQstb4 = cgpib4_dll.GpQstb4
GpQstb4.restype = ctypes.c_ulong
GpQstb4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpQddt4(DWORD, DWORD *, BYTE *);
GpQddt4 = cgpib4_dll.GpQddt4
GpQddt4.restype = ctypes.c_ulong
GpQddt4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTaLaBit4(DWORD);
GpTaLaBit4 = cgpib4_dll.GpTaLaBit4
GpTaLaBit4.restype = ctypes.c_ulong
GpTaLaBit4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpBoardsts4(DWORD, DWORD *);
GpBoardsts4 = cgpib4_dll.GpBoardsts4
GpBoardsts4.restype = ctypes.c_ulong
GpBoardsts4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSrqEvent4(HANDLE, WORD, DWORD);
GpSrqEvent4 = cgpib4_dll.GpSrqEvent4
GpSrqEvent4.restype = ctypes.c_ulong
GpSrqEvent4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqEventEx4(HANDLE, WORD, DWORD);
GpSrqEventEx4 = cgpib4_dll.GpSrqEventEx4
GpSrqEventEx4.restype = ctypes.c_ulong
GpSrqEventEx4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSrqOn4();
GpSrqOn4 = cgpib4_dll.GpSrqOn4
GpSrqOn4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFind4(DWORD *);
GpDevFind4 = cgpib4_dll.GpDevFind4
GpDevFind4.restype = ctypes.c_ulong
GpDevFind4.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSetEvent4(DWORD);
GpSetEvent4 = cgpib4_dll.GpSetEvent4
GpSetEvent4.restype = ctypes.c_ulong
GpSetEvent4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventSrq4(HANDLE, WORD, DWORD);
GpSetEventSrq4 = cgpib4_dll.GpSetEventSrq4
GpSetEventSrq4.restype = ctypes.c_ulong
GpSetEventSrq4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDet4(HANDLE, WORD, DWORD);
GpSetEventDet4 = cgpib4_dll.GpSetEventDet4
GpSetEventDet4.restype = ctypes.c_ulong
GpSetEventDet4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventDec4(HANDLE, WORD, DWORD);
GpSetEventDec4 = cgpib4_dll.GpSetEventDec4
GpSetEventDec4.restype = ctypes.c_ulong
GpSetEventDec4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpSetEventIfc4(HANDLE, WORD, DWORD);
GpSetEventIfc4 = cgpib4_dll.GpSetEventIfc4
GpSetEventIfc4.restype = ctypes.c_ulong
GpSetEventIfc4.argtypes = [ctypes.wintypes.HANDLE, ctypes.c_ushort, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpEnableNextEvent4(void);
GpEnableNextEvent4 = cgpib4_dll.GpEnableNextEvent4
GpEnableNextEvent4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpSrqEx4(DWORD, DWORD, DWORD);
GpSrqEx4 = cgpib4_dll.GpSrqEx4
GpSrqEx4.restype = ctypes.c_ulong
GpSrqEx4.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpUpperCode4(DWORD);
GpUpperCode4 = cgpib4_dll.GpUpperCode4
GpUpperCode4.restype = ctypes.c_ulong
GpUpperCode4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettings4(LPBYTE, LPBYTE, LPBYTE, DWORD);
GpCnvSettings4 = cgpib4_dll.GpCnvSettings4
GpCnvSettings4.restype = ctypes.c_ulong
GpCnvSettings4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ubyte), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvSettingsToStr4(DWORD, DWORD, DWORD);
GpCnvSettingsToStr4 = cgpib4_dll.GpCnvSettingsToStr4
GpCnvSettingsToStr4.restype = ctypes.c_ulong
GpCnvSettingsToStr4.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvStrToDbl4(LPBYTE, double*);
GpCnvStrToDbl4 = cgpib4_dll.GpCnvStrToDbl4
GpCnvStrToDbl4.restype = ctypes.c_ulong
GpCnvStrToDbl4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvStrToDblArray4(LPBYTE, double*, LPDWORD);
GpCnvStrToDblArray4 = cgpib4_dll.GpCnvStrToDblArray4
GpCnvStrToDblArray4.restype = ctypes.c_ulong
GpCnvStrToDblArray4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvStrToFlt4(LPBYTE, float*);
GpCnvStrToFlt4 = cgpib4_dll.GpCnvStrToFlt4
GpCnvStrToFlt4.restype = ctypes.c_ulong
GpCnvStrToFlt4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvStrToFltArray4(LPBYTE, float*, LPDWORD);
GpCnvStrToFltArray4 = cgpib4_dll.GpCnvStrToFltArray4
GpCnvStrToFltArray4.restype = ctypes.c_ulong
GpCnvStrToFltArray4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_float), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCnvDblToStr4(LPBYTE, LPDWORD, double);
GpCnvDblToStr4 = cgpib4_dll.GpCnvDblToStr4
GpCnvDblToStr4.restype = ctypes.c_ulong
GpCnvDblToStr4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_double]

# C Prototype: DWORD WINAPI GpCnvDblArrayToStr4(LPBYTE, LPDWORD, double*, DWORD);
GpCnvDblArrayToStr4 = cgpib4_dll.GpCnvDblArrayToStr4
GpCnvDblArrayToStr4.restype = ctypes.c_ulong
GpCnvDblArrayToStr4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvFltToStr4(LPBYTE, LPDWORD, float);
GpCnvFltToStr4 = cgpib4_dll.GpCnvFltToStr4
GpCnvFltToStr4.restype = ctypes.c_ulong
GpCnvFltToStr4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.c_float]

# C Prototype: DWORD WINAPI GpCnvFltArrayToStr4(LPBYTE, LPDWORD, float*, DWORD);
GpCnvFltArrayToStr4 = cgpib4_dll.GpCnvFltArrayToStr4
GpCnvFltArrayToStr4.restype = ctypes.c_ulong
GpCnvFltArrayToStr4.argtypes = [ctypes.POINTER(ctypes.c_ubyte), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpPollEx4(LPDWORD, LPDWORD, LPDWORD);
GpPollEx4 = cgpib4_dll.GpPollEx4
GpPollEx4.restype = ctypes.c_ulong
GpPollEx4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSlowMode4(DWORD);
GpSlowMode4 = cgpib4_dll.GpSlowMode4
GpSlowMode4.restype = ctypes.c_ulong
GpSlowMode4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvSettings4(DWORD);
GpCnvCvSettings4 = cgpib4_dll.GpCnvCvSettings4
GpCnvCvSettings4.restype = ctypes.c_ulong
GpCnvCvSettings4.argtypes = [ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvi4(LPBYTE, short*);
GpCnvCvi4 = cgpib4_dll.GpCnvCvi4
GpCnvCvi4.restype = ctypes.c_ulong
GpCnvCvi4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpCnvCviArray4(LPBYTE, short*, DWORD);
GpCnvCviArray4 = cgpib4_dll.GpCnvCviArray4
GpCnvCviArray4.restype = ctypes.c_ulong
GpCnvCviArray4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_short), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvs4(LPBYTE, float*);
GpCnvCvs4 = cgpib4_dll.GpCnvCvs4
GpCnvCvs4.restype = ctypes.c_ulong
GpCnvCvs4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float)]

# C Prototype: DWORD WINAPI GpCnvCvsArray4(LPBYTE, float*, DWORD);
GpCnvCvsArray4 = cgpib4_dll.GpCnvCvsArray4
GpCnvCvsArray4.restype = ctypes.c_ulong
GpCnvCvsArray4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_float), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpCnvCvd4(LPBYTE, double*);
GpCnvCvd4 = cgpib4_dll.GpCnvCvd4
GpCnvCvd4.restype = ctypes.c_ulong
GpCnvCvd4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double)]

# C Prototype: DWORD WINAPI GpCnvCvdArray4(LPBYTE, double*, DWORD);
GpCnvCvdArray4 = cgpib4_dll.GpCnvCvdArray4
GpCnvCvdArray4.restype = ctypes.c_ulong
GpCnvCvdArray4.argtypes = [ctypes.POINTER(ctypes.c_byte), ctypes.POINTER(ctypes.c_double), ctypes.c_ulong]

# C Prototype: DWORD WINAPI GpTalkEx4(DWORD *, DWORD *, BYTE *);
GpTalkEx4 = cgpib4_dll.GpTalkEx4
GpTalkEx4.restype = ctypes.c_ulong
GpTalkEx4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenEx4(DWORD *, DWORD *, BYTE *);
GpListenEx4 = cgpib4_dll.GpListenEx4
GpListenEx4.restype = ctypes.c_ulong
GpListenEx4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpTalkAsync4(DWORD *, DWORD *, BYTE *);
GpTalkAsync4 = cgpib4_dll.GpTalkAsync4
GpTalkAsync4.restype = ctypes.c_ulong
GpTalkAsync4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpListenAsync4(DWORD *, DWORD *, BYTE *);
GpListenAsync4 = cgpib4_dll.GpListenAsync4
GpListenAsync4.restype = ctypes.c_ulong
GpListenAsync4.argtypes = [ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ubyte)]

# C Prototype: DWORD WINAPI GpCommandAsync4(DWORD *);
GpCommandAsync4 = cgpib4_dll.GpCommandAsync4
GpCommandAsync4.restype = ctypes.c_ulong
GpCommandAsync4.argtypes = [ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpCheckAsync4(DWORD, DWORD*);
GpCheckAsync4 = cgpib4_dll.GpCheckAsync4
GpCheckAsync4.restype = ctypes.c_ulong
GpCheckAsync4.argtypes = [ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpStopAsync4(void);
GpStopAsync4 = cgpib4_dll.GpStopAsync4
GpStopAsync4.restype = ctypes.c_ulong

# C Prototype: DWORD WINAPI GpDevFindEx4(short, short, short *);
GpDevFindEx4 = cgpib4_dll.GpDevFindEx4
GpDevFindEx4.restype = ctypes.c_ulong
GpDevFindEx4.argtypes = [ctypes.c_short, ctypes.c_short, ctypes.POINTER(ctypes.c_short)]

# C Prototype: DWORD WINAPI GpBoardstsEx(DWORD, DWORD, DWORD *);
GpBoardstsEx4 = cgpib4_dll.GpBoardstsEx4
GpBoardstsEx4.restype = ctypes.c_ulong
GpBoardstsEx4.argtypes = [ctypes.c_ulong, ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong)]

# C Prototype: DWORD WINAPI GpSmoothMode4(DWORD);
GpSmoothMode4 = cgpib4_dll.GpSmoothMode4
GpSmoothMode4.restype = ctypes.c_ulong
GpSmoothMode4.argtypes = [ctypes.c_ulong]