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: reading from an interrupt Endpoint with USB fxs



What is the size of gBuffer and why are you subtracting 1 from it? Overrun means that the device sent more data than you were expecting. The HID manager does this for you when using the HID driver. I would try reading at least maxPacketSize bytes.

--
Fernando Urbina
USB Technology Team
Apple Computer, Inc.

On Aug 10, 2005, at 7:04 AM, Anne G wrote:

I get a data overrun error. What is it? How do I figure out
what size gBuffer should be? The device puts out 8bits at a
time, one byte every 10msec.

-----------------------------------------------------------
Reference


I read how to understand the error code ox38 ox00 ox2e8 http://developer.apple.com/qa/qa2001/qa1075.html

looking up in IOreturn.h, 0x028 is data overrun
#define kIOReturnOverrun         iokit_common_err(0x2e8) //

numBytesRead = sizeof(gBuffer) - 1;
err = (*intf)->ReadPipe(intf, inPipeRef, gBuffer, &numBytesRead);
    if (err)


_______________________________________________ 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: reading from an interrupt Endpoint with USB fxs (From: Anne G <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.