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: USB Interface driver matching



Alec,
All the Control driver really does is handle the interrupt pipe. You can just move that code into the Data driver and then you wouldn't need the Control driver. The only reason the Control Interface driver is there is because the USB CDC "standard" defines the interrupt pipe in a separate interface, rather silly really.


Russ
----------------------

On Oct 10, 2005, at 9:35 AM, Alec Carlson wrote:

Fernando,

I don't suppose there is any way for my Data interface driver to "manually"
(programmatically) load the Control interface driver. If I could get the
driver loaded everything would work and I wouldn't have to merge the 2
drivers into one ):


Alec

on 10/10/05 11:20 AM, Fernando Urbina at email@hidden wrote:


Drivers match per interface, not per pipe.  So, you will need to look
at both interface drivers and what they do and then synthesize a new
one that deals with both kinds of pipes.

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

On Oct 10, 2005, at 10:11 AM, Alec Carlson wrote:


I am modifying the AppleUSBCDCDriver-302.2.1 driver in order to support some
custom USB serial devices. I am actually only using the AppleUSBCDC and
AppleUSBCDCACM drivers and have deleted the AppleUSBCDCECM and AppleUSBCDCWMC
support. My modified drivers work fine for USB devices which have valid
interfaces - namely an interface for Comm-Control and another interface for
Comm-Data. However, some USB devices I have only have 1 interface and that
interface contains both the kUSBInterrupt endpoint (for control) and the
Bulk-Input and Bulk-output endpoints (for data). For these devices I have a
problem. How can I get both drivers loaded since I have separate interface
drivers where Comm-Control is in one driver and Comm-Data is in the other
driver but my USB device only has a single Data interface ? Interface
matching doesn't work since only one of the drivers will get loaded and I
need both of them loaded in order for the serial stream to work. Suggestions
?








---------------------------------------------------------------------- -
Time is Short, and the Water Rises
---------------------------------------------------------------------- -




 _______________________________________________
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


_______________________________________________ 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: USB Interface driver matching (From: Alec Carlson <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.