Can you switch between USB device and USB OtG in MQX?

Latest reply on Feb 19, 2014 by CarlosCasillas

Using a Kinetis K60 Tower Board.

Need the ability to know when a device (such as a USB Stick) is plugged in or if a host PC is plugged in.

In the first case, the K60 acts as a OtG Host.  In the second, it's a HID or CDC device.

It needs to determine this automatically and invoke the appropriate tasks.

Can this be done with MQX?