How do I interrupt on USB disconnect on iMX6SL (in Device mode)

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

How do I interrupt on USB disconnect on iMX6SL (in Device mode)

711件の閲覧回数
nathanpalmer
Contributor IV

I have an iMX6SL based system that is configured as a USB device.  I would like to interrupt when the user disconnects my device from a host PC.  I assume that the USB OTG PHY peripheral can do this, but I don't see how to configure it to do this.

Right now I am interrupting on a bus reset, which happens when the device is disconnected, but it could happen at other times to, I suspect.

Thanks

ラベル(2)
タグ(3)
0 件の賞賛
返信
1 返信

520件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Nathan

seems one can use bit PCI "Port Change Detect Interrupt Enable"

register USBC_n_USBINTR. For Linux it may be useful to look

at sect.34.3.3 "WakeUp Events Supported by USB"

included in i.MX_6Dual6Quad_Linux_Reference_Manual.pdf

L3.0.35_4.1.0_LINUX_DOCS

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信