Loading...
Searching...
No Matches
Public Attributes | List of all members
usb_support_descriptor Struct Reference

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.
 

Detailed Description

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:

usb_support_descriptor hub_devs = { 9, 0, 0, 0, 0 };
Description of device descriptor that the driver can handle.
Definition: USB3.h:39

See usb_module_info::register_driver() for more information on how to use this object.