Skip to content

Commit

Permalink
[USB] Document composite device with IAD
Browse files Browse the repository at this point in the history
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
  • Loading branch information
forderud committed Oct 2, 2024
1 parent 7d7fb67 commit c5046c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teensy4/usb_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#define MSB(n) (((n) >> 8) & 255)

#ifdef CDC_IAD_DESCRIPTOR
// DEVICE_CLASS=0xEF, DEVICE_SUBCLASS=0x02 & DEVICE_PROTOCOL=0x01 means composite device with IAD
#ifndef DEVICE_CLASS
#define DEVICE_CLASS 0xEF
#endif
Expand Down

0 comments on commit c5046c4

Please sign in to comment.