CALIBRE
If you are using Visual Basic copy the file UCA93LV.BAS into the directory containing your project and add the file UCA93LV.BAS to your project:
The following functions are implemented in the windows libraries:-
Public Declare Function Setup% Lib "USBDLL_XP.dll" (ByVal OwnAddress%, ByVal Sclk%, ByVal BusVoltage%, ByVal PullUpsOn%, ByVal SlaveBlockTimeout%)
Public Declare Function SendAddress% Lib "USBDLL_XP.dll" (ByVal SlaveAddress%, ByVal setnack%) Public Declare Function Restart% Lib "USBDLL_XP.dll" (ByVal SlaveAddress%, ByVal setnack%) Public Declare Function WriteByte% Lib "USBDLL_XP" (ByVal wrdata%)
Public Declare Function ReadByte% Lib "USBDLL_XP.dll" (ByVal setnack%) Public Declare Function SendStop% Lib "USBDLL_XP.dll" ()
Public Declare Function GetStatus% Lib "USBDLL_XP.dll" ()
Public Declare Function Recover% Lib "USBDLL_XP.dll" () Public Declare Function SlaveLastByte% Lib "USBDLL_XP.dll" () Public Declare Function DLLVersion% Lib "USBDLL_XP.dll" ()
Public Declare Function SetBlockData% Lib "USBDLL_XP.dll" (ByVal DataVal%) Public Declare Function GetBlockData% Lib "USBDLL_XP.dll" ()
Public Declare Function BlockSlaveTransmitter% Lib "USBDLL_XP.dll" (ByVal TimeOut%) Public Declare Function BlockSlaveTransmitterStatus% Lib "USBDLL_XP.dll" ()
Public Declare Function BlockSlaveReceiver% Lib "USBDLL_XP.dll" (ByVal NoBytesToTransmit%, ByVal TimeOut%)
Public Declare Function BlockSlaveReceiverStatus% Lib "USBDLL_XP.dll" ()
NOTE A type is defined in UCA93LV.BAS to help passing parameters to the DLL, if you do not wish to use this local variables MUST be declared as static
Issue 1.0 | Page 6 |
01/07/03 |
|