Hi, I wonder what is the best way to get a byte count on the IN transaction?
For control read transfer using USBHostIssueDeviceRequest() also,
it's the same application interface as other transfer type, bulk, interrupt and isoc.
This routine returns TRUE, when a transfer finishes on the target endpoint.
At this time, the transferred data size is returned at the last parameter, *byteCount.
BOOL USBHostTransferIsComplete( BYTE deviceAddress, BYTE endpoint, BYTE *errorCode, DWORD *byteCount );
When transfer completes, the eventHandler on the TPL is called with EVENT_TRANSFER.
At this point, data->dataCount holds the transferred size.
BOOL your_Event_Handler( BYTE address, USB_EVENT event, void *data, DWORD size )
case EVENT_TRANSFER: // A USB transfer has completed
#if defined( USB_ENABLE_TRANSFER_EVENT )
transferred_size = ((HOST_TRANSFER_DATA *)data)->dataCount;