whiskers 0.4.0
RP2350 BadUSB Tool
Loading...
Searching...
No Matches
usb_mods Struct Reference

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

Detailed Description

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.

Field Documentation

◆ lang

char usb_mods::lang[2]

Language code for the USB device. Typically the default is 0x4, 0x9 for English.

◆ manu_string

char usb_mods::manu_string[32+1]

Manufacturer string. Default is "vllabs".

◆ pid

uint16_t usb_mods::pid

4 byte product id. There is no official one for whiskers so the default is just 0x0400.

◆ prod_string

char usb_mods::prod_string[32+1]

Product string. Default is "'whiskers'".

◆ serial_string

char usb_mods::serial_string[32+1]

Serial string. Default is the serial of the device if applicable.

◆ vid

uint16_t usb_mods::vid

4 byte vendor id. There is no official one for vllabs so the default is just 0xcafe.


The documentation for this struct was generated from the following file:
  • /home/zane/whiskers/code/hal/usb.h