Attribute VB_Name = "SDK_FUNC"
Public Declare Function spTestAllChannels Lib "SpdbUSBm.dll" (ByVal sOrderType As Integer) As Integer
Public Declare Function spSetupAllChannels Lib "SpdbUSBm.dll" () As Integer
Public Declare Function spInitAllChannels Lib "SpdbUSBm.dll" (ByVal sCCDType As Integer) As Integer
Public Declare Function spGetWLTable Lib "SpdbUSBm.dll" (WLArray As Double, ByVal sChannel As Integer) As Integer
Public Declare Function spSetIntEx Lib "SpdbUSBm.dll" (ByVal IntTime As Long, ByVal sChannel As Integer) As Integer
Public Declare Function spSetTrgEx Lib "SpdbUSBm.dll" (ByVal sTrgType As Integer, ByVal sChannel As Integer) As Integer
Public Declare Function spSetTEC Lib "SpdbUSBm.dll" (ByVal Tec As Integer, ByVal sChannel As Integer) As Integer
Public Declare Function spReadDataEx Lib "SpdbUSBm.dll" (lpArray As Long, ByVal sChannel As Integer) As Integer
Public Declare Function spSetDblIntEx Lib "SpdbUSBm.dll" (ByVal dIntTime As Double, ByVal sChannel As Integer) As Integer
Public Declare Function spReadChannelID Lib "SpdbUSBm.dll" (ByRef spNum As Integer, ByVal sChannel As Integer) As Integer
Public Declare Function spReadEEPROM Lib "SpdbUSBm.dll" (ByVal cpStr As String, ByVal sChannel As Integer) As Integer
Public Declare Function spPolyFit Lib "SpdbUSBm.dll" (X As Double, Y As Double, ByVal numPts As Integer, coefs As Double, ByVal order As Integer) As Integer
Public Declare Function spCloseAllChannels Lib "SpdbUSBm.dll" () As Integer
Public Declare Sub spPolyCalc Lib "SpdbUSBm.dll" (coefs As Double, ByVal order As Integer, ByVal X As Double, ByRef Y As Double)

Public Declare Function spSetIntMode Lib "SpdbUSBm.dll" (ByVal sReadExMode As Integer, ByVal dIntTime As Double, ByVal sChannel As Integer) As Integer
Public Declare Function spAutoDark Lib "SpdbUSBm.dll" (ByVal sAutoDark As Integer, ByVal sChannel As Integer) As Integer
Public Declare Function spGetDevIsNew Lib "SpdbUSBm.dll" (ByVal sChannel As Integer) As Integer
Public Declare Function spSetExtEdgeMode Lib "SpdbUSBm.dll" (ByVal sExtTriggerMode As Integer, ByVal sChannel As Integer) As Integer
