How to reset USB Device via MQX API

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

How to reset USB Device via MQX API

1,124 次查看
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

标记 (3)
0 项奖励
回复
1 回复

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