Home

About

Services

USB Driver Toolkit

Store

Contact

References

Links
USB Driver
DLL Functions


The following functions are exported and are linkable to a Visual C++ or any other environment, such as Visual Basic, that can use (or import) functions from a DLL.

Basic functions:

GetDriverVersion - Obtains the WDM driver version information

GetDevCount - Obtains number of devices attached.

GetDevicePath - Unlike other USB driver tools ours allows you to access your device based on the physical port that it is connected to instead of using a simple device number.  This is very important when your app. manages multiple devices.  This is accomplished using the PnP device name path. 

OpenDevice - Obtains a handle to the USB device for future functions calls.

OpenDevicePath - Opens a device using the PnP device path.

CloseDevice - Closes a handle obtained by a previous call to OpenDevice.

Port functions:

ResetParentPort - Resets the parent port of the device

GetParentPortStatus - Obtains the status of the parent port and the device.

Pipe functions:

GetPipeCount - Obtains the pipe count on the specified device.

GetPipeInfo - Obtains the pipe information for the specified pipe. The pipe information indicates direction, type (bulk, interrupt, ISO), transfer size, etc.

AbortPipe - Aborts any pending I/O operations on the specified pipe

ResetPipe - Resets a specified pipe.

Descriptor functions:

GetDeviceDescriptor - Obtains the device descriptor.

GetConfigDescriptor - Obtains the configuration descriptor.

GetInterfaceDescriptor - Obtains the interface descriptor.

GetEndpointDescriptor - Obtains the endpoint descriptor for the specified endpoint.

GetStringDescriptorLength - Returns the length of the specified string descriptor.

GetStringDescriptor - Obtains the specified string descriptor.

Read/Write functions:

InterruptRead

InterruptWrite

BulkRead

BulkWrite

Miscellaneous functions:

SelectInterface - Selects the specified interface and alternate setting.

GetLanguageIDs

GetNumberOfLanguageIDs

Vendor/Class Endpoint 0 functions:

VendorOrClassRequestOut

VendorOrClassRequestIn

Cypress EZ-USB/FX/FX2(tm) specific functions:

Run/Hold - Starts and Stops the 8051 processor.

EZUSBDownloadRam - Downloads to Cypress RAM.

EZUSBDownloadI2C - Downloads to Cypress I2C.  The example code shows how to add the needed functionality to your firmware.

Pipe I/O Functions:

PipeOpen - Opens Pipe on specified device returning handle for pipe operations.

PipeOpenPath - Opens a Pipe on a device specified by the PnP device path.

PipeClose - Given handle from prior USB_PipeOpen(), closes the pipe.

PipeWrite - WriteFile() wrapper function which supports overlapped I/O. Bulk or Interrupt is supported.

PipeRead - ReadFile() wrapper function which supports overlapped I/O. Bulk or Interrupt is supported.

PipeWriteTimeout - WriteFile() wrapper function with timeout. Bulk or Interrupt is supported.

PipeReadTimeout - ReadFile() wrapper function with timeout. Bulk or Interrupt is supported.

PipeAbort - Aborts any pending I/O operations on the pipe.

PipeReset - Resets the pipe.

| HOME | ABOUT | SERVICES | USB DRIVER TOOLKIT | STORE | CONTACT | REFERENCES | LINKS |