Switch USB role

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

Switch USB role

1,584件の閲覧回数
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)
0 件の賞賛
返信
1 返信

985件の閲覧回数
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 件の賞賛
返信