Lecture 3 Agenda
USB Requests
Enumeration
Every USB request and required response
Returned Descriptors
Hands-On
BULK OUCRIPT0R
SET_DESCRIPT0R
GET_C0NFIG
SET_CONFIG
GET_INTERFACE
SET_INTERFACE
SYNC_FRAME
01
03
05
06
07
08
09
0A
0B
STALL
other
bRequest
X
0
1
X
X
X
X
X
X
0
0
X
X
X
X
X
X
1
1
X
X
X
X
X
X
1
0
X
X
X
X
X
03
DEVICE
CONFIGURATION
STRING
01
02
0B
GET_REPORT
GET_IDLE
GET_PROTOCOL
SET_REPORT
SET_IDLE
SET_PROTOCOL
01
02
03
09
0A
STALL
other
23
HID
REPORT
PHYSICAL
21
22
STALL
other
wValueH
Interface 0
alt setting 0
Interface 0
alt setting 1
Interface 0
alt setting 2
Interface 1
alt setting 0
USB Device Structure
Configuration 0
EP0
EP0
EP1
EP2
EP3
EP8 (64)
EP0
EP1
EP2
EP3
EP8 (256)
EP0
EP0
EP0
EP1
EP2
EP3
EP8 (64)
EP0
EP1
EP2
EP3
EP8 (256)
EP0
Device
Interface 0
alt setting 0
Interface 0
alt setting 1
Interface 0
alt setting 2
Interface 1
alt setting 0
USB Requests
Configuration 1
EP0
EP0
EP1
EP2
EP3
EP8 (64)
EP0
EP1
EP2
EP3
EP8 (256)
EP0
EP0
EP0
EP1
EP2
EP3
EP8 (64)
EP0
EP1
EP2
EP3
EP8 (256)
EP0
Device
Get_Descriptor—DEVICE
Set_Address
Set_Feature—RWU
Get_Status--RWU
Get_Descriptor--CONFIG
Get_Configuration
Set_Configuration
Get_Interface (AS)
Set_Interface (AS)
Set_Feature—STALL
Get_Status (stall)
Initial Requests:Enumeration
Descriptors returned by the
device in response to the requests
are shown
with this shading
(Ref: TRM Chapter 5)
Device requests are shown
with this shading
(Ref: TRM Chapter 7)
Enumeration, Step by Step
Get_Descriptor--the hard way
Get_Descriptor—using EZ-USB Setup Data PointerRef: TRM Chapter 7
Get_Descriptor, Device
Device Descriptor
Set_Address
Get_Descriptor, Configuration
Configuration Descriptor
Configuration
Endpoint
Interface
Endpoint
Endpoint
Endpoint
Interface
Endpoint
Endpoint
Endpoint
Interface
Endpoint
Endpoint
Configuration Descriptor Length
Driver
cypress-usb教程第3讲 来自淘豆网www.taodocs.com转载请标明出处.