Re: USB Function Driver in 5.0
From: David Liao \(MS\) (davli_at_online.microsoft.com)
Date: 10/21/04
- Next message: Valter Minute: "Re: Windows CE or Windows XPE for image processing"
- Previous message: JutaeKim: "Re: How can I get the caret pos which is in other application?"
- In reply to: Ajay: "Re: USB Function Driver in 5.0"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 21 Oct 2004 09:35:45 -0700
I believe you has have Bulk In and Bulk Out in order to make USB function
serial to work.
The Interrupt endpoint is optional.
"Ajay" <ajaykuee@gmail.com> wrote in message
news:1098334972.783200.208250@c13g2000cwb.googlegroups.com...
> Hi David,
>
> Thanks a lot for your reply !
> I hv one more doubt. The endpoints details provided in USB serial
> client driver has
> BULK IN ,BULK OUT and INTERRUPT IN endpoints (written below) for both
> high speed and full speed.
> I am supporting only Interrupt In (EP2) and Interrupt out (EP4)
> endpoints in my USB Fn driver.
>
> Now what all i need to do to make it compatible with MS provided serial
> client driver?
> OR I must use BULK IN and BULK OUT endpoints only in my USB Fn driver?
>
>
> static UFN_ENDPOINT g_HighSpeedEndpoints[] = {
> {
> sizeof(UFN_ENDPOINT),
> {
> sizeof(USB_ENDPOINT_DESCRIPTOR),// bLength
> USB_ENDPOINT_DESCRIPTOR_TYPE, // bDescriptorType
> BULK_IN_ENDPOINT_ADDRESS, // bEndpointAddress
> (endpoint 1, in)
> USB_ENDPOINT_TYPE_BULK, // bmAttributes
> HIGH_SPEED_BULK_PACKET_SIZES, // wMaxPacketSize
> 0x00 // bInterval (interrupt
> only)
> },
> NULL
> },
> {
> sizeof(UFN_ENDPOINT),
> {
> sizeof(USB_ENDPOINT_DESCRIPTOR),// bLength
> USB_ENDPOINT_DESCRIPTOR_TYPE, // bDescriptorType
> BULK_OUT_ENDPOINT_ADDRESS, // bEndpointAddress
> (endpoint 2, out)
> USB_ENDPOINT_TYPE_BULK, // bmAttributes
> HIGH_SPEED_BULK_PACKET_SIZES, // wMaxPacketSize
> 0x00 // bInterval (interrupt
> only)
> },
> NULL
> },
> {
> sizeof(UFN_ENDPOINT),
> {
> sizeof(USB_ENDPOINT_DESCRIPTOR),// bLength
> USB_ENDPOINT_DESCRIPTOR_TYPE, // bDescriptorType
> INTERRUPT_IN_ENDPOINT_ADDRESS, // bEndpointAddress
> (endpoint 2, out)
> USB_ENDPOINT_TYPE_INTERRUPT, // bmAttributes
> MAX_INTERRUPT_ENDPOINT_PACKET_SIZE, // wMaxPacketSize
> 0xc // bInterval (interrupt
> only)
> },
> NULL
> }
> };
>
> With Regards,
> Ajay
>
- Next message: Valter Minute: "Re: Windows CE or Windows XPE for image processing"
- Previous message: JutaeKim: "Re: How can I get the caret pos which is in other application?"
- In reply to: Ajay: "Re: USB Function Driver in 5.0"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|