Which event will occur if the usb device is disconnected

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

Which event will occur if the usb device is disconnected

892件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cgha on Tue Nov 06 02:03:37 MST 2012
I want to set an endpoint to see if the device is disconnect correctly from the LPC1768 usb host. Thanks!

ChrisChen
ラベル(1)
0 件の賞賛
返信
1 返信

842件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Daniel Widyanto on Wed Nov 07 23:05:28 MST 2012
Refer to ftp://ftp.compaq.com/pub/supportinformation/papers/hcir1_0a.pdf for OHCI / LPC17xx USB host registers documentation

To cut short: HcInterruptStatus, bit RootHubStatusChange will be set. Then in HcRhPortStatus, bit ConnectStatusChange will be updated for connect / disconnect event. Note that suspend / remote wake-up may also affect RootHubStatusChange  status as well.

Refer to USB Host Lite - LPC17xx implementation for detecting the connection / disconnect event (http://www.lpcware.com/content/nxpfile/usbhostlite-lpc17xx)




0 件の賞賛
返信