How to reset USB Device via MQX API

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset USB Device via MQX API

317 Views
petermai
Contributor I

Hello,

is there a way in case of a timeout to completely reset the usb device stack?

->  It should provoke the  USB device to reenumeration.

Meaning USB_DEV_EVENT_BUS_RESET followed by USB_DEV_EVENT_CONFIG_CHANGED and USB_DEV_EVENT_ENUM_COMPLETE

I need this for a reset after a timeout.

Thank you very much

Tags (3)
0 Kudos
1 Reply

149 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Peter Mai

We have no API to reset USB device, because USB BUS is lead by USB host.  Why you need to reset USB device?

If you need to re-enumeration the USB device, I would suggest you try USB_DeviceStop and USB_DeviceRun.


Have a great day,
Daniel

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

0 Kudos