USB Driver Toolkit - Sample Applications


The following Visual C++ samples are available:
bulkread - console app. that reads from a bulk endpoint.
bulkwrite - console app that writes to a bulk endpoint.
descriptor - console app that reads and process the device, interface, and string descriptors.
pipebulkread - console app that reads from a bulk endpoint.
Uses the pipe functions and illustrates how to have a bulk read timeout after a specified period of time.
pipebulkwrite - console app that writes to a bulk endpoint.
Uses the pipe functions and illustrates how to have a bulk write timeout after a specified period of time.
download - MFC app that uses the Cypress specific functions to download firmware to RAM and I2C.
bulkread - console app. that reads from a bulk endpoint.
The sample shows how to use the following functions:
GetDevCount()
OpenDevice()
GetDriverVersion()
GetPipeInfo()
ResetPipe()
BulkRead()
CloseDevice()
bulkwrite - console app that writes to a bulk endpoint.
The sample shows how to use the following functions:
GetDevCount()
OpenDevice()
GetDriverVersion()
GetPipeInfo()
ResetPipe()
BulkWrite()
CloseDevice()
descriptor - console app that reads and process the device, interface, and string descriptors.
The sample shows how to use the following functions:
GetDeviceDescriptor()
GetConfigDescriptor()
GetInterfaceDescriptor()
GetEndpointDescriptor()
GetStringDescriptorLength()
GetStringDescriptor()
GetDevCount()
OpenDevice()
CloseDevice()
pipebulkread - console app that reads from a bulk endpoint.
Uses the pipe functions and illustrates how to have a bulk read timeout after a specified period of time.
The sample shows how to use the following functions:
GetDevCount()
OpenDevice()
GetDriverVersion()
GetPipeInfo()
CloseDevice()
PipeOpen()
PipeReset()
PipeReadTimeout()
PipeClose()
pipebulkwrite - console app that writes to a bulk endpoint.
Uses the pipe functions and illustrates how to have a bulk write timeout after a specified period of time.
The sample shows how to use the following functions:
GetDevCount()
OpenDevice()
GetDriverVersion()
GetPipeInfo()
CloseDevice()
PipeOpen()
PipeReset()
PipeWriteTimeout()
PipeClose()
download - MFC app that uses the Cypress specific functions to download
firmware to RAM and I2C. It shows how to use the following functions:
GetDevCount()
OpenDevice()
VendorOrClassRequestOut()
EZUSBDownloadI2C()
EZUSBDownloadRAM()
CloseDevice()
This sample also shows how to use the windows API function RegisterDeviceNotification()
to detect when a USB device is detached and attached to the system.
|
|
|