Can one reinitialize a function of USB composite device?

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

Can one reinitialize a function of USB composite device?

611 次查看
niepiekm
Contributor I

Hi,

I'm working on a UBS composite device, which consists of USB-CDC and USB-MTP functions. In one of the use cases, I'd like to be able to reinitialize MTP functionality without breaking USB-CDC communication. Using the following sequence works for MTP, but breaks CDC.

```
USB_DeviceStop();
USB_DeviceSetIsr(false);
MtpReinit();
USB_DeviceSetIsr(true);
USB_DeviceRun();

```
 
Regards,
Marek
标记 (2)
0 项奖励
回复
1 回复

596 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Marek,

With reinitialization, you mean to restart the process of enumeration and identification? If so, is not possible to reinitialize the USB-MTP without breaking the communication with the USB-CDC. 

Regards,
Victor 

0 项奖励
回复