H375做HST的程序.doc

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

:佚名 CH375 做 HOST 的程序(C51) CH375 做 HOST 的程序(C51) 文章来源:魅 点击数: 6-5-9 !收獅匕页 更新时间:200 共享某网友CH375做HOST的程序,暂时可以和slaver通讯 / ^9^ ^9^ ^9^ ^9^ ^9^ ^9^ ^9^ ^9^ ^9^ kL* ! ** USB 1. 1 Host for CH375 ** **单片机用89C51 ** viz six six six six six six six ^lz / ^|S 4、4、4、4、4、4、4、4、4、Z|% Z|% Z|% Z|% Z|% ^T / /*如果设备端不是CH37X,那么分析描述符吟 /* CH375中断为查询方式V ^include string. h #include〈stdio. h ^include intrins. h ^include reg51. h ttinclude CH375TNC. H ^define DELAY_START_value 1 A根据单片机的时钟选择延时初值*/ ^define UNKNOWX_USBJ)EVICE OxFl tfdefine USB INT RET NAK 0x2A /*,返回 NAK */ ’ typcdcf struct _USB_DEVICE_DESCRIPTOR { unsigned char bLength; unsigned char bDescriptorType; unsigned short bcdUSB; unsigned char bDeviceClass; unsigned char bDcviccSubClass; unsigned char bDeviceProtocol; unsigned char bMaxPacketSizeO; unsigned short idVendor; unsigned short idProduct; unsigned short bcdDcvice; unsigned char iManufacturer; unsigned char unsigned char unsigned char } USB DEV DESCR, iProduct; iSerialNumber; bNumConfigurations; *PUSB DEV DESCR; typedef struct _USB_CONFIG_DESCRIPTOR { unsigned char bLength; unsigned char bDescriptorType; unsigned short wTotalLength; unsigned unsigned unsigned unsigned unsigned char } USB CFG DESCR, char bNumlnterfaces; char bConfigurationvalue; char iConfiguration; char bmAttributes; MaxPower; *PUSB CFG DESCR; typedef struct _USB_TNTRRF_DRSCRTPTOR { unsigned char bLcngth; unsigned char bDescriptorType; unsigned unsigned unsigned unsigned char blnterfaceNumber; char bAlternateSetting; char bNumEndpoints; char blntcrfaccClass; unsigned char blnterfaceSubClass; unsigned char blnterfaceProtocol; unsigned char ilnterface; } USB ITF DESCR, *PUSB ITF DESCR; typedef stri unsigned unsigned unsigned unsigned unsigned ct _USB_ENDPOINT_DESCRIPTOR char bLength; char bDescriptorType; char bEndpointAddress; char bmAttributes; short wMaxPacketSize; unsigned char blnterval; } USB EXDP DESCR, *PUSB ENDP DESCR; typedef struct _USB_CONFIG_DESCRIPTOR_LONG { USB_CFG_DESCR cfg_descr; USB—ITF

文档评论(0)

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

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

1亿VIP精品文档

相关文档