Re: USB Function Driver in 5.0

From: David Liao \(MS\) (davli_at_online.microsoft.com)
Date: 10/21/04


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
>



Relevant Pages

  • Re: USB Function Driver in 5.0
    ... The endpoints details provided in USB serial ... client driver has ... BULK IN,BULK OUT and INTERRUPT IN endpoints for both ...
    (microsoft.public.windowsce.embedded)
  • Re: CE 5.0 EHCI driver fails on BULK IN transfer
    ... Try to add the "PhysicalPageSize" registry value for USB: ... I am working on a USB client driver for a Custom mass storage ... On debug i found that the client driver is issuing a BULK IN ... request to smaller chunk say 4K/8K and send to the EHCI driver? ...
    (microsoft.public.windowsce.embedded)
  • Re: Polling Thread, Where to locate?
    ... an Interrupt endpoint may be more suitable if latency ... Do keep in mind that maximum data throughput is lower on ... interrupt than bulk, ... Over USB 2.0 hi-speed bulk endpoints, the max data rate that I ...
    (microsoft.public.development.device.drivers)
  • Re: HID Multitouch Digitiazer driver samples
    ... I'm don't use bulk, because, somehow, the results are not so pleasing, maybe ... With my best regards, ... Suppose that I want to use USB isoc transfers, ... How is isoch traffic implemented on a serial communication? ...
    (microsoft.public.development.device.drivers)
  • Re: [KMDF USB] Who is responsible for zero-length packet termination of bulk write?
    ... For a bulk write, there is no defined method of indicating the end of a USB ... Failing reset, ... certification as I am failing many of the 2C tests (reset, ...
    (microsoft.public.development.device.drivers)