Determine if a USB device matches an entry within a usbDeviceId table.
const struct usbDeviceId *UsbMatchId(
struct usbDeviceInfo * udi,
const struct usbDeviceId *id
);
struct usbDeviceId {
// how to conduct match
uint16_t match_flags;// Fields used for product-specific matches
uint16_t idVendor;
uint16_t idProduct;
uint16_t bcdDevice_lo;
uint16_t bcdDevice_hi;// Fields used for class matches
uint8_t bDeviceClass;
uint8_t bDeviceSubClass;
uint8_t bDeviceProtocol;// Fields used for interface class matches
uint8_t bInterfaceClass;
uint8_t bInterfaceSubClass;
uint8_t bInterfaceProtocol;
void * client_info; // client specific data
};
udi
id
NULL | A match was not found |
Non-NULL | A valid usbDeviceId entry. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 5.0 | intime/rt/include/usbif3.h | usbif3.h | usbif3.lib |