Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members
USB::DeviceID Class Reference
A vendor/product ID pair. More...
#include <usbpp.h>
Public Member Functions | |
DeviceID () | |
DeviceID (u_int16_t vendor, u_int16_t product) | |
Standard constructor. | |
u_int16_t | vendor (void) |
vendor number for the device | |
u_int16_t | product (void) |
product number for the device |
Detailed Description
A vendor/product ID pair.DeviceID provides a list of (vendor, product) identification pairs. It is intended for use in a list of device numbers to search for, but there is no reason why it couldn't be used for a general purpose (vendor,product) tuple if you had some reason for this.
The description for Busses::match() provides an example of how this class might be used.
- See also:
- DeviceIDList, Busses::match()
Definition at line 741 of file usbpp.h.
Constructor & Destructor Documentation
|
Standard constructor. This constructor takes (vendor, product) tuple, which are stored away.
|
Member Function Documentation
|
vendor number for the device This method returns the 16 bit vendor number. |
|
product number for the device This method returns the 16 bit product number. |
The documentation for this class was generated from the following files: