flag to judge whether USB device is correctly connected

New to XMOS and XCore? Get started here.
TonyXiao
Active Member
Posts: 44
Joined: Fri Mar 29, 2019 3:58 am

flag to judge whether USB device is correctly connected

Postby TonyXiao » Wed Jun 03, 2020 9:44 am

Hi all

Is there a flag to judge whether the USB device is correctly connected and recognized by pc?
2 usb midi device interface implement by xmos, i want to light one led for each usb device connection.
but i don't know how to make the judgement?
TonyXiao
Active Member
Posts: 44
Joined: Fri Mar 29, 2019 3:58 am

Postby TonyXiao » Thu Jun 04, 2020 11:13 am

there should be some function of flag in the module_xud or some other libary for the usb. do someone know about it?
otherwise, maybe i should check usb enumeration process.,and confirm a usb's connection after host get the configuration descriptor.

Who is online

Users browsing this forum: No registered users and 3 guests