<?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のトピックCan we call USBD_API-&amp;gt;hw-&amp;gt;WriteEP from outside EPHandler?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903672#M36244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the HID generic sample code the call that sends input report through interrupt pipe&lt;/P&gt;&lt;P&gt;(USBD_API-&amp;gt;hw-&amp;gt;WriteEP(hUsb, pHidCtrl-&amp;gt;epin_adr, inbuffer, 64)) is inside EPHandler.&lt;/P&gt;&lt;P&gt;Suppose we have an input report we want to send through interrupt pipe can we call this function (WriteEP) from outside the EPHandler? The parameter &amp;nbsp;pHidCtrl, hUSB are from&amp;nbsp; EPHandler .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Apr 2019 15:51:33 GMT</pubDate>
    <dc:creator>ssudhir</dc:creator>
    <dc:date>2019-04-19T15:51:33Z</dc:date>
    <item>
      <title>Can we call USBD_API-&gt;hw-&gt;WriteEP from outside EPHandler?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903672#M36244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the HID generic sample code the call that sends input report through interrupt pipe&lt;/P&gt;&lt;P&gt;(USBD_API-&amp;gt;hw-&amp;gt;WriteEP(hUsb, pHidCtrl-&amp;gt;epin_adr, inbuffer, 64)) is inside EPHandler.&lt;/P&gt;&lt;P&gt;Suppose we have an input report we want to send through interrupt pipe can we call this function (WriteEP) from outside the EPHandler? The parameter &amp;nbsp;pHidCtrl, hUSB are from&amp;nbsp; EPHandler .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 15:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903672#M36244</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-04-19T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call USBD_API-&gt;hw-&gt;WriteEP from outside EPHandler?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903673#M36245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="335754" data-username="ssudhir@predig.com" href="https://community.nxp.com/people/ssudhir@predig.com"&gt;S S&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1） Suppose we have an input report we want to send through interrupt pipe can we call this function (WriteEP) from outside the EPHandler?&lt;BR /&gt;-- Yes, It's Okay.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 01:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903673#M36245</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-22T01:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call USBD_API-&gt;hw-&gt;WriteEP from outside EPHandler?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903674#M36246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response TIC.&lt;/P&gt;&lt;P&gt;What about  parameter passing ? Parameters pHidCtrl, hUSB are from&lt;/P&gt;&lt;P&gt;EPHandler.   Atleast hUSB is a global variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 12:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903674#M36246</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-04-22T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call USBD_API-&gt;hw-&gt;WriteEP from outside EPHandler?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903675#M36247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="335754" data-objecttype="3" href="https://community.nxp.com/people/ssudhir@predig.com" rel="nofollow noopener noreferrer" target="_blank"&gt;S S&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;To provide the fastest possible support, I'd like to suggest that you can refer to the USB ROM examples in the LPCOpen library, for instance, there's the code of the hid_mouse demo which is from the &lt;A href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" rel="nofollow noopener noreferrer" target="_blank"&gt;lpcopen_3_01_keil_iar_mcb_4357&lt;/A&gt;.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Mouse tasks */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Mouse_Tasks&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* check device is configured before sending report. */&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;USB_IsConfigured&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hUsb&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tx_busy &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   &lt;SPAN class="comment token"&gt;/* update report based on board state */&lt;/SPAN&gt;
   &lt;SPAN class="token function"&gt;Mouse_UpdateReport&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="comment token"&gt;/* send report data */&lt;/SPAN&gt;
   g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tx_busy &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
   USBD_API&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;hw&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteEP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hUsb&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; HID_EP_IN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;report&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MOUSE_REPORT_SIZE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* reset busy flag if we get disconnected. */&lt;/SPAN&gt;
  g_mouse&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tx_busy &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 06:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903675#M36247</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-23T06:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call USBD_API-&gt;hw-&gt;WriteEP from outside EPHandler?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903676#M36248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:30:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-we-call-USBD-API-gt-hw-gt-WriteEP-from-outside-EPHandler/m-p/903676#M36248</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-04-25T12:30:24Z</dc:date>
    </item>
  </channel>
</rss>

