Auto detect DEVICE/HOST mode

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

Auto detect DEVICE/HOST mode

1,334 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fariouche on Mon Nov 12 14:41:18 MST 2012
Hi,

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!

Fariouche
标签 (1)
0 项奖励
回复
2 回复数

1,325 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nxpUSBlib team on Mon Nov 26 10:15:04 MST 2012
Yes the UID is an input to an external OTG PHY that you would need to add to your design.

A much simpler and cheaper method would be to use a GPIO input.
0 项奖励
回复

1,325 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fariouche on Fri Nov 16 14:13:08 MST 2012
I got the answer: This is an OTG feature.
I have to found an other way I think :)
0 项奖励
回复