Is multi-function OTG possible using Freescale USB stack?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is multi-function OTG possible using Freescale USB stack?

957件の閲覧回数
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)
  • USB

1 返信

830件の閲覧回数
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