Which event will occur if the usb device is disconnected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Which event will occur if the usb device is disconnected

465 Views
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
Labels (1)
0 Kudos
1 Reply

415 Views
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 Kudos