| description:
The user does not have to care about the complicated USB bus protocol,
but can directly work with USB2.0 bus. USB2sdll is merged into the development
environment and the user can access his hardware
using the functions of USB2sdll.
The Software of the interface module is written automatically
by USB2sdll to the controller, so that the newest update of the software
is always installed in the interface module (hardware).
You can start developing usb2.0 hardware at now!
Functions of the DLL:
SetCallBack
SetDefaultGpifParams
StartStream
StopStream
SetLicense
StreamActive
LostPacketCount
StreamDevPresent
SetGpifParams
SetGpifParamsFromFile
SetSlaveFifoParams
SetPortDir
SetPortState
GetPortState
I2cTransfer
SpiTransfer
in Detail are:
function SetCallBack(CallBack : TUsbDataCallbackProc) : Boolean; stdcall;
function SetDefaultGpifParams(MHz48 : Boolean; Divider : Byte; BitWidth
: Byte) : Boolean; stdcall;
function StartStream(PcToDevice : Boolean) : Boolean; stdcall;
function StopStream : Boolean; stdcall;
function SetLicense(Filename : PChar) : Boolean; stdcall
function StreamActive : Boolean; stdcall;
function LostPacketCount : DWord; stdcall;
function StreamDevPresent : Boolean; stdcall;
function SetGpifParams(pWaveData, pInitData : Pointer; IfConfig : Byte;
BitWidth : Byte) : Boolean; stdcall;
function SetGpifParamsFromFile(Filename : PChar; BitWidth : Byte) : Boolean;
stdcall;
function SetSlaveFifoParams(SyncFifo : Boolean; IfClkMode : Byte; BitWidth
: Byte) : Boolean; stdcall;
function SetPortDir(PortNum, PortDir : Byte) : Boolean; stdcall;
function SetPortState(PortNum, PortState : Byte) : Boolean; stdcall;
function GetPortState(PortNum: Byte; Var PortState : Byte) : Boolean;
stdcall;
function I2cTransfer(SlaveAddr : Byte; WriteLen, ReadLen : DWord; pWriteData,
pReadData : pByte) : Boolean; stdcall;
function SpiTransfer(LsbFirst : Boolean; SPIMode : Byte; Speed : Byte;
PWrite, PRead : pByte; Len : Word) : Boolean; stdcall;
|