Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 5th, 2012  |  syntax: None  |  size: 0.18 KB  |  views: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. struct usb_ctrlrequest c;
  2. c.bRequestType = USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE;
  3. c.bRequest = USB_REQ_SET_ADDRESS;
  4. c.wValue = <addr>;
  5. c.wIndex = 0;
  6. c.wLength = 0;