| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Dear all,
Thank you Mr. Mark Cookson for your responce. Actually my device has MaxPacketSize of
300 Bytes in Alternate Setting 3 which start streaming out data when this alternate setting has been set.
>From your reply It is pretty clear that bytes per frame must be set Max Packet size of the opened Isoc Pipe.
what should be the typical number of frames that the USBIsocRead call must be active? Does this number
of frames depends on any factor or can we make the IsocRead for any number of frames? Does it required
to wait for 1msec after the USBIsocRead?
Thanks and Regards,
Sivaram Prasad
----- Original Message -----
From: Mark Cookson <mailto:email@hidden>
To: Nakkala Sivaram Prasad <mailto:email@hidden> ; usb <mailto:email@hidden>
Sent: Tuesday, February 22, 2005 11:02 PM
Subject: Re: How to handle USB Isochronous data Transfer?
For isoc reads, you specify the maximum amount of data you want per frame, and how many frames you want to read. You give a buffer, and a memory descriptor for that buffer, along with the list of frames and bytes per frame to read, and IOUSBFamily does the rest.
If you don’t know how many bytes will come each frame (which it sounds like you don’t), then you have to pick some upper maximum (preferably other than 1023, but that is the maximum isoc frame size in USB 1.1). Remember that IOUSBFamily puts the data where it would have gone if the full amount had been transferred in the frame before. So, if you ask for 1023 bytes, but only get 100, the next block of data will be put at offset 1024 in your buffer, not 101, so you’ll have to coalesce the data together, if that’s important, because there will be lots of gaps with garbage in your buffer.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden This email sent to email@hidden
| References: | |
| >Re: How to handle USB Isochronous data Transfer? (From: Nakkala Sivaram Prasad <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.