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

966 次查看
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 回复

759 次查看
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 项奖励
回复