|
whiskers 0.4.0
RP2350 BadUSB Tool
|
USB Modifiers. More...
#include <usb.h>
Data Fields | |
| char | lang [2] |
| char | manu_string [32+1] |
| char | prod_string [32+1] |
| char | serial_string [32+1] |
| uint16_t | vid |
| uint16_t | pid |
USB Modifiers.
This struct is used for if you want to start the USB stack with custom descriptors.
Note that the max string size is 32 bytes. Each string must be null terminated.
| char usb_mods::lang[2] |
Language code for the USB device. Typically the default is 0x4, 0x9 for English.
| char usb_mods::manu_string[32+1] |
Manufacturer string. Default is "vllabs".
| uint16_t usb_mods::pid |
4 byte product id. There is no official one for whiskers so the default is just 0x0400.
| char usb_mods::prod_string[32+1] |
Product string. Default is "'whiskers'".
| char usb_mods::serial_string[32+1] |
Serial string. Default is the serial of the device if applicable.
| uint16_t usb_mods::vid |
4 byte vendor id. There is no official one for vllabs so the default is just 0xcafe.