Hi Manu,
> Hello,
>
> I want return from de ReadPipe function the size of data read.
> How can i do ?
I don't know much about KEXTs, but from Userspace, there are
ReadPipe(),
ReadPipeAsync(),
ReadPipeAsyncTO(),
which take as one parameter the address of an integer wherin the size of
transferred data will be storred after completion. (See <IOUSBLib.h>)
If you provide a callback function to use the asyncronous calls, these
callback function will also receive the amount of transferred bytes as
argument when the read call completes.
Or are you talking about OS9?
Then after the
USBBulkRead()
call completes, read the
usbActCount
field of your ParameterBlock.
hth,
Dirk Stegemann
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.