- suspend. : receive suspend command, INT。
處理 : 設mode register,suspend 1-0 - REQUESTPROC
處理host送來的request.. - CONTROLOUTDON
依照該ENDPOINT狀太,設定endpoint register的stall bit. - bulk_out
處理CBW command
- STANDARD
- CLASS
- VENDOR
Standard 的request 用一個index來選取以下服務:
沒有implement的就用StallEP0
- GetStatus
- ClearFeature
- StallEP0
- SetFeature
- StallEP0
- SetAddress
- GetDescriptor
- StallEP0
- GetConfiguration
- SetConfiguration
- GetInterface
- SetInterface
- StallEP0
- Reserved
Request type, and Request index 是在 USB 的SETUP封包中。
SETUP 封包的內容是:
struct _device_request{.當USB插入host後,host會送這個OUT Token (封包的一種),給device的ENDPOINT0。
char bmRequestType;
char bRequest;
unsigned short wValue;
unsigned short wIndex;
unsigned short wLength;
} DEVICE_REQUEST;
Device
沒有留言:
張貼留言