<?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>Kinetis MicrocontrollersのトピックRe: how can i read data from a usb device in k70 tower kit(TWRK70120F) and display it in a tft display</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-can-i-read-data-from-a-usb-device-in-k70-tower-kit/m-p/514554#M32533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which USB stack are you using? For example, in BareMetal USB stack 4.1.1, there are some examples for USB OTG functionality and basically, after initializing the USB module and configure it as OTG, you can use Device or Host APIs to send/receive data by calling (depending on current mode):&lt;/P&gt;&lt;P&gt;(Sending data to Host)&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14652510289249256 jive_text_macro" data-renderedposition="138_8_1192_16" jivemacro_uid="_14652510289249256" modifiedtitle="true"&gt;&lt;P&gt;USB_Class_HID_Send_Data(CONTROLLER_ID,HID_ENDPOINT,rpt_buf, KEYBOARD_BUFF_SIZE);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(Receiving data from Device)&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14652511827808204 jive_macro_code jive_text_macro" data-renderedposition="206_8_1192_16" jivemacro_uid="_14652511827808204" modifiedtitle="true"&gt;&lt;P&gt;_usb_host_recv_data(host_handle, pipe, &amp;amp;tr);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX Classic (MQX 4.2) does also have support for Host or Device and APIs are almost the same. You can consult examples on these stacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 22:17:09 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-06-06T22:17:09Z</dc:date>
    <item>
      <title>how can i read data from a usb device in k70 tower kit(TWRK70120F) and display it in a tft display</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-can-i-read-data-from-a-usb-device-in-k70-tower-kit/m-p/514553#M32532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to read&amp;nbsp; a content from a usb (otg) in twrk70f120m&lt;/P&gt;&lt;P&gt;how can i do it?i also want to display it in the tft lcd display&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 06:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-can-i-read-data-from-a-usb-device-in-k70-tower-kit/m-p/514553#M32532</guid>
      <dc:creator>sreekanthpk</dc:creator>
      <dc:date>2016-06-04T06:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can i read data from a usb device in k70 tower kit(TWRK70120F) and display it in a tft display</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-can-i-read-data-from-a-usb-device-in-k70-tower-kit/m-p/514554#M32533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which USB stack are you using? For example, in BareMetal USB stack 4.1.1, there are some examples for USB OTG functionality and basically, after initializing the USB module and configure it as OTG, you can use Device or Host APIs to send/receive data by calling (depending on current mode):&lt;/P&gt;&lt;P&gt;(Sending data to Host)&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14652510289249256 jive_text_macro" data-renderedposition="138_8_1192_16" jivemacro_uid="_14652510289249256" modifiedtitle="true"&gt;&lt;P&gt;USB_Class_HID_Send_Data(CONTROLLER_ID,HID_ENDPOINT,rpt_buf, KEYBOARD_BUFF_SIZE);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(Receiving data from Device)&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14652511827808204 jive_macro_code jive_text_macro" data-renderedposition="206_8_1192_16" jivemacro_uid="_14652511827808204" modifiedtitle="true"&gt;&lt;P&gt;_usb_host_recv_data(host_handle, pipe, &amp;amp;tr);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX Classic (MQX 4.2) does also have support for Host or Device and APIs are almost the same. You can consult examples on these stacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 22:17:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-can-i-read-data-from-a-usb-device-in-k70-tower-kit/m-p/514554#M32533</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-06-06T22:17:09Z</dc:date>
    </item>
  </channel>
</rss>

