Auto detect DEVICE/HOST mode

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

Auto detect DEVICE/HOST mode

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

0 件の賞賛
返信
2 返答(返信)

1,323件の閲覧回数
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,323件の閲覧回数
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 件の賞賛
返信