
'
' Posiflex USB PD DLL v1.00
' 93.3.1
'

'----------------------------------------------------------------------------
'For Visual Basic programs:

Public Declare Function OpenUSBpd _
	Lib "usbpd.dll" _
	() _
As Long
' must be called before calling other functions
' return 0 on success

Public Declare Function CloseUSBpd _
	Lib "usbpd.dll" _
	() _
As Long
' call this function before exiting your program
' return 0 on success

Public Declare Function WritePD _
	Lib "usbpd.dll" _
	(ByVal data As String, ByVal length as Long) _
As Long
' return 0 on sending commands successfully

Public Declare Function PdState _
	Lib "usbpd.dll" _
	()
As Long
' return the line display status
' return 0 on being ready
'

/* --------------------------------------------------------------------------
For C++ programs:

 Should use __stdcall compiler option.
*/

