Is multi-function OTG possible using Freescale USB stack?

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

Is multi-function OTG possible using Freescale USB stack?

509 次查看
chrisxl
Contributor II

I'm developing a new Kinetis-based product which will include a USB OTG port.  I would like to support both the MSD (device) and printer (host) classes. The idea is to have the product support the MSD class on startup, then allow the user to switch between the MSD and printer classes through a configuration menu.  I assume that this would require re-initializing the USB stack and providing two sets of descriptors and callback functions.  Would the Freescale USB stack support this operation?

标签 (1)
1 回复

382 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Chris,

USB Stack doeas support this operation, unfortunately there is not an example as the one that you need. You can use as a base one of the OTG examples in USB Stack C:\Freescale\Freescale USB Stack v4.1.1\Source\OTG\examples\msd.

In this example you will need to replace the MSD host for printer Host. USB OTG already consider both stacks, it is a single software layer, therefore you dont need two stacks (host and device).

Regards,

Carlos