Is multi-function OTG possible using Freescale USB stack?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is multi-function OTG possible using Freescale USB stack?

613 Views
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?

Labels (1)
1 Reply

486 Views
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