Switch USB role

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Switch USB role

1,473 次查看
Salvatore1z
Contributor II

Hi,

I know that iMX6 has a OTG enabled USB controller and I would like to know if an API is available to change the role of the USB controller dynamically from host mode to device mode.

I expect to call this API from user space.

After calling the API I exepct the USB host stack to go down and the USB gadget stack to come up.

Thank you.

Salvatore

标签 (2)
标记 (3)
0 项奖励
回复
1 回复

874 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Salvatore,

You need to control the USB_OTG_ID pin in order to change from one to another here is another thread that you can follow regarding this topic:

How to control the USB_OTG_PWR_CTL_WAKE and USB_OTG_ID of i.MX6 in Linux BSP


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复