3 * - By John Hodge (thePowersGang)
6 * - USB Device Information Functions (helpers for drivers)
10 #include "usb_lowlevel.h"
13 Uint32 USB_GetInterfaceClass(tUSBInterface *Dev)
15 return ((Uint32)Dev->IfaceDesc.InterfaceClass << 16)
16 |((Uint32)Dev->IfaceDesc.InterfaceSubClass << 8)
17 |((Uint32)Dev->IfaceDesc.InterfaceProtocol << 0);
20 void USB_GetDeviceVendor(tUSBInterface *Dev, Uint16 *VendorID, Uint16 *DeviceID)
22 *VendorID = LittleEndian16( Dev->Dev->DevDesc.VendorID );
23 *DeviceID = LittleEndian16( Dev->Dev->DevDesc.DeviceID );
25 char *USB_GetSerialNumber(tUSBInterface *Dev)
27 return USB_int_GetDeviceString(Dev->Dev, 0, Dev->Dev->DevDesc.SerialNumberStr);