A USB endpoint has 4 types: control, interrupt, bulk, ISOCHRONOUS.
struct usb_host_endpoint contains struct usb_endpoint_descriptor, which contains: bEndpointAddress( IN, OUT),bmAttributes
(endpoint type),wMaxPacketSize, bInterval (in my subsequent I plan to use an endpoint of this to tell camera take an image!)
A USB interface has several endpoints, is a logic connection. One USB driver only has one USB interface.
A USB configuration has multiple USB interfaces.
USB mouse example: http://hi.baidu.com/obeyrules/blog/item/a01e85816a8a279bf603a6c0.html
How to write Linux USB device driver article: http://www.linuxjournal.com/article/4786
0 comments:
Post a Comment