<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックUSB probleme on function call of &amp;quot;EnableEvent&amp;quot;</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-probleme-on-function-call-of-quot-EnableEvent-quot/m-p/538135#M11611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by namorada on Fri Oct 09 08:20:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to implement a homemade USB driver in a LPC1825.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Communication happens on the endpoint 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For this, I try to initialize it like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
retour = USBD_API-&amp;gt;core-&amp;gt;RegisterEpHandler(g_hUsb, 5, EP2_Hdlr, 0);
USBD_API-&amp;gt;hw-&amp;gt;EnableEP(g_hUsb, EP2_IN);
retour = USBD_API-&amp;gt;hw-&amp;gt;EnableEvent(g_hUsb, 0x82, USB_EVT_OUT &amp;amp; USB_EVT_IN, 0x01);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fonction "EnableEvent" always return me : ERR_USBD_INVALID_REQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation about this function is really light. Any idea of why it is giving me this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did i miss something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an example of a&amp;nbsp; custom EndPoint2 initialization?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thaks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:22:28 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:22:28Z</dc:date>
    <item>
      <title>USB probleme on function call of "EnableEvent"</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-probleme-on-function-call-of-quot-EnableEvent-quot/m-p/538135#M11611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by namorada on Fri Oct 09 08:20:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to implement a homemade USB driver in a LPC1825.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Communication happens on the endpoint 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For this, I try to initialize it like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
retour = USBD_API-&amp;gt;core-&amp;gt;RegisterEpHandler(g_hUsb, 5, EP2_Hdlr, 0);
USBD_API-&amp;gt;hw-&amp;gt;EnableEP(g_hUsb, EP2_IN);
retour = USBD_API-&amp;gt;hw-&amp;gt;EnableEvent(g_hUsb, 0x82, USB_EVT_OUT &amp;amp; USB_EVT_IN, 0x01);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fonction "EnableEvent" always return me : ERR_USBD_INVALID_REQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation about this function is really light. Any idea of why it is giving me this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did i miss something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an example of a&amp;nbsp; custom EndPoint2 initialization?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thaks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-probleme-on-function-call-of-quot-EnableEvent-quot/m-p/538135#M11611</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:22:28Z</dc:date>
    </item>
  </channel>
</rss>

