USB设备请求例程(国外英文资料).doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
USB设备请求例程(国外英文资料)

USB设备请求例程(国外英文资料) * In general, you first need to let the firmware understand the type of request for the USB device, so you need to declare the standard USB requests in the USB firmware program. Specific statements are as follows: * / #define SC_GET_STATUS 0X00 //3setup command: get status #define SC_CLEAR_FEATURE 0X01 //3setup command: get features #define SC_RESERVED 0X02 //3setup command: keep #define SC_SET_FEATURE 0X03 //3setup command: set properties #define SC_SET_ADDRESS 0X05 //3setup command: set the address #define SC_GET_DESCRIPTOR 0X06 //3setup command: get descriptors #define SC_SET_DESCRIPTOR 0X07 //3setup command: set descriptors #define SC_GET_CONFIGURATION 0X08 //3setup command: get configuration #define SC_SET_CONFIGURATION 0X09 //3setup command: set configuration #define SC_GET_INTERFACE 0X0A //3setup command: get the interface #define SC_SET_INTERFACE 0X0B //3setup command: set up the interface #define SC_SYNC_FRAME 0X0C //3setup command: sync frame #define SC_ANCHOR_LOAD 0XA0 //3setup command: firmware loading #define GD_DEVICE 0X01 //3 gets descriptors: device #define GD_CONFIGURATION 0X02 //3 gets descriptors: Configuration #define GD_STRING 0X03 //3 gets descriptors: strings #define GD_INTERFACE 0X04 //3 gets descriptors: Interfaces #define GD_EDNPOINT 0X05 //3 gets descriptors: endpoints #define GD_DEVICE_QUALIFIER 0X06 //3 gets descriptors: device qualification #define GD_OTHER_SPEED_CONFIGURATION 0X07 //3 gets descriptors: other configurations #define GD_INTERFACE_POWER 0X08 //3 gets descriptors: interface power #define GD_HID 0X21 //3 gets descriptors: HID #define GD_REPORT 0X22 //3 gets descriptors: Report #define GS_DEVICE 0X80 //3 gets descriptors: device #define GS_INTERFACE 0X81 //3 gets descriptors: Interfaces #define GS_ENDPOINT 0X82 //3 gets descriptors: endpoints #define, FT_DEVICE, 0X00, //3 features: Devices #define, FT_ENDPOINT, 0X02, //3 properties: endpoints / * * / request response equipment Void setupcommand (void) { Void

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档