Option Strict Off
Option Explicit On
Module DLL_decl
	'// Administration
	
    Public Declare Function RQ_PCIEnumerate Lib "rq.dll" (ByRef numberOfCards As Integer, ByVal ntype As Integer) As Integer
    Public Declare Function RQ_InitialiseNonSequenced Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Function RQ_Uninitialise Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Function RQ_GetIsInitialised Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Sub RQ_GetErrorDetail Lib "rq.dll" (ByVal cardIndex As Integer, ByRef pcode As Integer, ByRef poop As Integer)
    Public Declare Function RQ_GetLastError Lib "rq.dll" (ByVal card As Integer) As Integer
    Public Declare Function RQ_SetSamplingFrequency Lib "rq.dll" (ByVal cardIndex As Integer, ByVal frequency As Integer) As Integer
    Public Declare Function RQ_GetAScan Lib "rq.dll" (ByVal cardIndex As Integer, ByRef pData As Short, ByVal bufBytes As Integer, ByVal aScanIndex As Integer, ByVal bScanIndex As Integer) As Integer
    Public Declare Function RQ_SetSystemDDR0 Lib "rq.dll" (ByVal cardIndex As Integer, ByVal directionBits As Integer) As Integer
    Public Declare Function RQ_SetSystemDDR1 Lib "rq.dll" (ByVal cardIndex As Integer, ByVal directionBits As Integer) As Integer
    Public Declare Function RQ_SetRectifierMode Lib "rq.dll" (ByVal cardIndex As Integer, ByVal RQ_Rectification As Integer) As Integer
    Public Declare Function RQ_SetStartDelay Lib "rq.dll" (ByVal cardIndex As Integer, ByVal startDelay As Integer) As Integer
    Public Declare Function RQ_SetNumberOfSamples Lib "rq.dll" (ByVal cardIndex As Integer, ByVal numberOfSamples As Integer) As Integer
    Public Declare Function RQ_SetForceAScanTrigger Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Function RQ_SetForceBScanTrigger Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Function RQ_SetRequestEarlySampleData Lib "rq.dll" (ByVal cardIndex As Integer) As Integer
    Public Declare Function RQ_SetTCGTriggerEvent Lib "rq.dll" (ByVal cardIndex As Integer, ByVal RQ_TCGTriggerEvent As Integer) As Integer
    Public Declare Function RQ_SetTCGEnable Lib "rq.dll" (ByVal cardIndex As Integer, ByVal isEnabled As Integer) As Integer
    Public Declare Function RQ_SetNumberOfAScansPerBScan Lib "rq.dll" (ByVal cardIndex As Integer, ByVal numberOfScans As Integer) As Integer
    Public Declare Function RQ_SetTCGValues Lib "rq.dll" (ByVal cardIndex As Integer, ByRef TCGCurve As Integer, ByVal numberOfValues As Integer) As Integer
    Public Declare Function RQ_SetInputCoupling Lib "rq.dll" (ByVal cardIndex As Integer, ByVal inputCoupling As Integer) As Integer
    Public Declare Function RQ_SetInputImpedance Lib "rq.dll" (ByVal cardIndex As Integer, ByVal inputImpedance As Integer) As Integer
    Public Declare Function RQ_SetAnalogueInput Lib "rq.dll" (ByVal cardIndex As Integer, ByVal analogueInput As Integer) As Integer
    Public Declare Function RQ_SetAnalogueInputRange Lib "rq.dll" (ByVal cardIndex As Integer, ByVal analogueRange As Integer) As Integer
    Public Declare Function RQ_SetTriggerSelect Lib "rq.dll" (ByVal cardIndex As Integer, ByVal triggerSelect As Integer) As Integer
    Public Declare Function RQ_SetTransducerPulseWidth Lib "rq.dll" (ByVal cardIndex As Integer, ByVal pulseWidth As Integer) As Integer
    Public Declare Function RQ_SetRepetitionRate Lib "rq.dll" (ByVal cardIndex As Integer, ByVal repetitionRate As Integer) As Integer
    Public Declare Function RQ_SetSensorArrayApertureSize Lib "rq.dll" (ByVal cardIndex As Integer, ByVal apertureSize As Integer) As Integer
    Public Declare Function RQ_SetDIBoardState Lib "rq.dll" (ByVal cardIndex As Integer, ByVal isOn As Integer) As Integer
End Module