Skip to content

Commit 7bbeb41

Browse files
committed
[USB] Document composite device with IAD
Document that DEVICE_CLASS=0xEF, DEVICE_SUBCLASS=0x02 & DEVICE_PROTOCOL=0x01 is used to encode a composite device with IAD, since this is not obvious from reading the code. Documentation: https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-interface-association-descriptor
1 parent f11c80a commit 7bbeb41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

teensy4/usb_desc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
#define MSB(n) (((n) >> 8) & 255)
7474

7575
#ifdef CDC_IAD_DESCRIPTOR
76+
// DEVICE_CLASS=0xEF, DEVICE_SUBCLASS=0x02 & DEVICE_PROTOCOL=0x01 means composite device with IAD
7677
#ifndef DEVICE_CLASS
7778
#define DEVICE_CLASS 0xEF
7879
#endif

0 commit comments

Comments
 (0)