- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- access9,10窗体(国外英文资料).doc
- Access复习题小全(国外英文资料).doc
- access中sql语句添加修改删除字段(国外英文资料).doc
- A)对长度为n的有序链表进行查找,最坏情况下需要的比较次数为n(国外英文资料).doc
- access报表(国外英文资料).doc
- Access数据库存储上限(国外英文资料).doc
- Access数据库表的数据类型(国外英文资料).doc
- Access终考试题及答案(国外英文资料).doc
- ad7705源程序(国外英文资料).doc
- ADSL用户轻松提高迅雷下载速度(国外英文资料).doc
- 重庆市两江新区2025届中考历史模拟试题含解析.doc
- 2025届山西省晋南地区中考生物模拟预测题含解析.doc
- 山东省临沂市沂水县2025届中考历史模试卷含解析.doc
- 浙江省杭州市周浦中学2025届中考生物模拟预测题含解析.doc
- 江苏省盐城射阳县联考2025届中考五模历史试题含解析.doc
- 2025届江苏省南师附中集团达标名校十校联考最后历史试题含解析.doc
- 甘肃泾川县2025届中考历史押题试卷含解析.doc
- 山东省潍坊市寒亭区市级名校2025届中考一模化学试题含解析.doc
- 2025届辽宁省葫芦岛市名校中考历史押题卷含解析.doc
- 2025届四川省师大一中学中考历史对点突破模拟试卷含解析.doc
文档评论(0)