How do I tell if my device has been enumerated via USB? There is a few cryptic header entries about status, but nothing on how to use 'em.
I am using the XUD library.
Thank you,
-Erik
XUD - enumerated?
-
- Member
- Posts: 12
- Joined: Thu Aug 18, 2011 9:51 pm
-
- XCore Expert
- Posts: 844
- Joined: Sun Jul 11, 2010 1:31 am
Your device is operational if it has received a standard device
"set configuration" setup (and acked it), and the last such
set config number is not zero.
In the HID example code, this is stored in the current_config
variable in the endpoint0 function.
"set configuration" setup (and acked it), and the last such
set config number is not zero.
In the HID example code, this is stored in the current_config
variable in the endpoint0 function.
-
- XCore Expert
- Posts: 972
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
+1 for this.segher wrote:Your device is operational if it has received a standard device
"set configuration" setup (and acked it), and the last such
set config number is not zero.
In the HID example code, this is stored in the current_config
variable in the endpoint0 function.
You should get this status in the endpoint 0 code, not directly from the XUD library.