Description of device descriptor that the driver can handle. More...
Public Attributes | |
uint8 | dev_class |
The supported device classes. | |
uint8 | dev_protocol |
The supported device protocols. | |
uint8 | dev_subclass |
The supported device subclasses. | |
uint16 | product |
The supported device products. | |
uint16 | vendor |
The supported device vendor. | |
Description of device descriptor that the driver can handle.
Support descriptors can be used to match any form of class, subclass or protocol, or they can be used to match a vendor and/or product. If any field has the value 0
, it is treated as a wildcard.
For example, if you want to watch for all the hubs, which have a device class of 0x09
, you would pass this descriptor:
See usb_module_info::register_driver() for more information on how to use this object.