Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OSX] Get size of ReadPipe



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.

References: 
 >[OSX] Get size of ReadPipe (From: Manu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.