<?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>topic Re: LPC Open HID Generic Example in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579363#M20018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lucio Silveira on Tue Jun 03 06:19:02 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for answering. I've already done it. I Know there's something more to do like changing something in the endpoint descriptor and change the "IN" and "OUT" report handler but I don't know how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:18:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:18:23Z</dc:date>
    <item>
      <title>LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579361#M20016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lucio Silveira on Mon Jun 02 12:10:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone. I've tested the usbd_lib_hid_generic from the lpcopen v2.10 to the LPC1769 microcontroller. The examples worked so far, but I'm only enable to send only a single byte report at a time. Could someone help me by saying what I need to change in this project to implement a 64 bytes report comunication from host to device and device to host ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579361#M20016</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579362#M20017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mch0 on Tue Jun 03 05:07:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you will want to change at least these definitions in hid_desc.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define HID_INPUT_REPORT_BYTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/* size of report in Bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define HID_OUTPUT_REPORT_BYTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/* size of report in Bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define HID_FEATURE_REPORT_BYTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/* size of report in Bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579362#M20017</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579363#M20018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lucio Silveira on Tue Jun 03 06:19:02 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for answering. I've already done it. I Know there's something more to do like changing something in the endpoint descriptor and change the "IN" and "OUT" report handler but I don't know how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579363#M20018</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579364#M20019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mch0 on Tue Jun 03 07:50:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, indeed, I forgot about the EP size. That's why I said "at least", I didn't compile and test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will use hid_generic with 64 Bytes report size later myself, that's why I'm interested and I have done this on a different platform in the past.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the EP size is defined also in hid_desc.c, this is the relevant part of the descriptor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_DESC_SIZE,/* bLength */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_DESCRIPTOR_TYPE,/* bDescriptorType */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HID_EP_IN,/* bEndpointAddress */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_TYPE_INTERRUPT,/* bmAttributes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WBVAL(0x0004),/* wMaxPacketSize */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x08,/* 16ms */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* bInterval */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Endpoint, HID Interrupt Out */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_DESC_SIZE,/* bLength */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_DESCRIPTOR_TYPE,/* bDescriptorType */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HID_EP_OUT,/* bEndpointAddress */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_ENDPOINT_TYPE_INTERRUPT,/* bmAttributes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WBVAL(0x0004),/* wMaxPacketSize */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See if a change of&amp;nbsp; the two WBVAL(0x0004) to WBVAL(64) do the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably even better, change&amp;nbsp; the first to WBVAL(HID_INPUT_REPORT_BYTES) and the second one to WBVAL(HID_OUTPUT_REPORT_BYTES).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature reports are handled by EP0, but&amp;nbsp; would assume that the driver splits a 64 byte transfer as required by USB_MAX_PACKET0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But since I did neither an actual test nor look into the source code yet, this is an assumption right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope these changes suffice, because later I'll have to get the same setup running for me, too ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579364#M20019</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579365#M20020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lucio Silveira on Tue Jun 03 08:13:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank's Mike. I'll test and let you know about the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579365#M20020</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open HID Generic Example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579366#M20021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lucio Silveira on Wed Jun 04 03:24:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mike. I did what you suggested and everything worked just fine. Now I'm able to write and read 64 bytes at a time. Thanks! &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-HID-Generic-Example/m-p/579366#M20021</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:25Z</dc:date>
    </item>
  </channel>
</rss>

