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



I am still trying to get data from my device.
I came back to my attempt to use readpipe in the
usbsimpleexample project, in dealwithpipes function.

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)
        {
            printf("Unable to perform read %2x %4x
%4x\n",err_get_system(err),err_get_sub(err),err_get_code(err));
        }
for (i = 0; i < numBytesRead; i++)
            gBuffer[i] = ~gBuffer[i];
printf("Read %s (%ld bytes) from endpoint\n", gBuffer, numBytesRead);




 _______________________________________________
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: 
 >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.