Re: USB Function Driver in 5.0
From: Ajay (ajaykuee_at_gmail.com)
Date: 10/21/04
- Next message: Sujith: "Retail/Debug"
- Previous message: Frank Vicious: "Playing Sound on Pocket PC 2002"
- In reply to: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Next in thread: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Reply: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Messages sorted by: [ date ] [ thread ]
Date: 20 Oct 2004 22:02:52 -0700
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: Sujith: "Retail/Debug"
- Previous message: Frank Vicious: "Playing Sound on Pocket PC 2002"
- In reply to: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Next in thread: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Reply: David Liao \(MS\): "Re: USB Function Driver in 5.0"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|