Bulk stream support in WinUSB

301 Views Asked by At

I'm using WinUSB to access the USB device and using bulk transfers for my application. When I provide stream number greater than 0 in the firmware and try bulk transfer from the desktop application, it is either giving error 31 or 433. I wanted to understand is there any way to tell the host controller that stream should be used or any other configuration that I have to do before using WinUsb_WritePipe function for bulk transfer.

I'm using WinUsb_WritePipe function for the transfer. Not sure if I have to use any other functions or initializations to use streams from WinUsb. I'm calling WinUsb_WritePipe as shown below. WinUsb_WritePipe(handle, bulkOutPipe, writeBuffer, bulkOutTransferSize, &transferredLength, overlapped) here handle is WinUsb handle bulkOutPipe is pipe ID writeBuffer is the buffer containing data bulkOutTransferSize is the size of the buffer transferredLength is a pointer which gives the number of bytes transferred overlapped is the object of structure LPOVERLAPPED

0

There are 0 best solutions below