Auto detect DEVICE/HOST mode

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by fariouche on Mon Nov 12 14:41:18 MST 2012

I'm currently using the new usblib 0.98 with an lpc1769 (lpcxpresso)

I would like to use Device and Host. Currently I've setup the controller as a CDC device and it work great.
Now, I can switch to Host mode manually (as described in the sample), but looking at the doc, I've seen that the lib can switch automatically depending on the UID pin.
How can I use this feature? If I understood correctly, EVENT_USB_UIDChange should fire up in that case.
But I doubt it works as I do not see any reference to this function in the library except in a .h file!

Thank you!