<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>怎么使用52840的ep0端口获取pc端的数据</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51298/52840-ep0-pc</link><description>SDK版本：15.2.0 
 工程例子：usbd 
 目的：使用52840 usb ep0端口与pc端进行通信。pc端为host，52840为Device。 
 pc端使用libusb驱动，自定义通信协议。在usbd_event_handler函数里面通过setup.bmRequest值来判断读写方向。 
 的判断为pc端接收数据的时候，直接调用 
 respond_setup_data( p_setup, get_descriptor_report_interface_0, p_setup-&amp;gt;wLength</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2019 01:17:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51298/52840-ep0-pc" /><item><title>RE: 怎么使用52840的ep0端口获取pc端的数据</title><link>https://devzone.nordicsemi.com/thread/205722?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 01:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f552aa45-1f0c-4f72-b49a-6610b397a4b9</guid><dc:creator>lyi</dc:creator><description>&lt;p&gt;ok thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 怎么使用52840的ep0端口获取pc端的数据</title><link>https://devzone.nordicsemi.com/thread/205525?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 10:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacde0aa-d47a-4590-9bba-49e6f2755315</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This forum is only in English, so please use English to explain your issue to have any chance of getting a proper reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>