how can i read data from a usb device in k70 tower kit(TWRK70120F) and display it in a tft display

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how can i read data from a usb device in k70 tower kit(TWRK70120F) and display it in a tft display

967件の閲覧回数
sreekanthpk
Contributor I

i need to read  a content from a usb (otg) in twrk70f120m

how can i do it?i also want to display it in the tft lcd display

please help

0 件の賞賛
返信
1 返信

760件の閲覧回数
isaacavila
NXP Employee
NXP Employee

Hello,

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):

(Sending data to Host)

USB_Class_HID_Send_Data(CONTROLLER_ID,HID_ENDPOINT,rpt_buf, KEYBOARD_BUFF_SIZE);

or

(Receiving data from Device)

_usb_host_recv_data(host_handle, pipe, &tr);

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.

Hope this helps!

Regards,

Isaac

0 件の賞賛
返信