Which event will occur if the usb device is disconnected

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

Which event will occur if the usb device is disconnected

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

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