Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinUSB, how to get the lengh of cached data in bulk in pipe

16 views
Skip to first unread message

Dean

unread,
Aug 17, 2009, 9:34:01 PM8/17/09
to
How to get how many bytes are cached in a bulk in pipe when using WinUSB?

I have a C# Winform application using WinUSB host API to communicate with a
USB device. If I call WinUsb_ReadPipe(IntPtr InterfaceHandle, Byte PipeID,
ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr
Overlapped), the value of LengthTransferred is the cached data in bulk in
pipe. But doing this way, also flush the cached data. Anyone know a way to do
it withoud flush the cached data?

Thanks.

sfloydtn

unread,
Dec 8, 2009, 4:35:02 PM12/8/09
to
Excellent question. I have the same one. Have you found any way to determine
number of bytes to be read?

Steve

0 new messages