In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
344 bytes added ,  18:42, 12 April 2015
→‎0x11 - UhsQueryInterfaces(): Located a USB spec interface descriptor in the "interface profile"
Line 30: Line 30:  
     uint8_t if_protocol;      /* Interface protocol */  
 
     uint8_t if_protocol;      /* Interface protocol */  
 
} UhsInterfaceFilter;
 
} UhsInterfaceFilter;
 +
 +
/* USB interface descriptor */
 +
typedef struct
 +
{
 +
    uint8_t bLength;
 +
    uint8_t bDescriptorType;
 +
    uint8_t bInterfaceNumber;
 +
    uint8_t bAlternateSetting;
 +
    uint8_t bNumEndpoints;
 +
    uint8_t bInterfaceClass;
 +
    uint8_t bInterfaceSubClass;
 +
    uint8_t bInterfaceProtocol;
 +
    uint8_t iInterface;
 +
} UhsInterfaceDescriptor;
    
/* Output buffer */
 
/* Output buffer */
Line 37: Line 51:  
     char unknown4[0x30 - 0x4];
 
     char unknown4[0x30 - 0x4];
 
     uint16_t vid, pid;
 
     uint16_t vid, pid;
     char unknown34[0x48 - 0x34];
+
     char unknown34[0x43 - 0x34];
     uint8_t class;
+
     UhsInterfaceDescriptor if_desc;
     char unknown49[0x16c - 0x49];
+
     char unknown49[0x16c - 0x4c];
} UhsInterfaceDescriptor;
+
} UhsInterfaceProfile;
 
</syntaxhighlight>
 
</syntaxhighlight>
203

edits

Navigation menu