Identity and power settings

USB Library ›› Device ›› Settings reference ››
… visits
Parent Previous Next

Set these values to describe your actual product and power arrangement. Windows may still use its own adapter, COM-port or network names.


Descriptor text accepts up to 126 printable ASCII characters without double quotes. Some fields have shorter limits.

Setting

Meaning and generic default

USB_VID

Vendor identifier, 0–65535; placeholder $04D8. Use an identifier appropriate for your device.

USB_PID

Product identifier, 0–65535; placeholder $000A. Identifies the product within its VID.

USB_BCD_DEVICE

Device revision, 0.00–99.99; default 1.00. This is your product revision.

USB_BCD_USB

USB specification advertised by this stack: 2.00, encoded $0200. Full-speed operation is 12 Mbit/s.

USB_LANGID

Language identifier for the descriptor strings; default $0409, English (United States). Select a language or its numeric identifier. Does not translate text.

USB_MANUFACTURER

Manufacturer string; default Manufacturer.

USB_PRODUCT

Product string; default Positron USB Device.

USB_USE_SERIAL

Advertise the serial string; default on. Required for MSC.

USB_SERIAL

Per-device identity string; generic default 000001. MSC requires 12–126 uppercase hexadecimal characters, 0–9 and A–F, with a unique final 12 characters per physical device.

USB_CONFIG_NAME

Name of the USB configuration; default Default.

USB_INTERFACE_NAME

Interface description; default Data.

USB_SELF_POWERED

Advertise the board's self-powered capability; default off. Match the actual power design.

USB_MAX_POWER_MA

Maximum USB bus draw: even values 0–500 mA; default 100. This declaration does not regulate current.

USB_REMOTE_WAKEUP

Advertise/request remote-wake support; default off. Requires host permission and the continuous millisecond USB_Tick() handling described in Start and service USB. Browser mode requires off.

USB_VBUS_SENSE

Enable active-high cable-power sensing; default off. Requires a suitable board circuit and the pin below.

USB_VBUS_PIN

Sense input, such as PORTA.0; configure direction and digital mode yourself. PIC18/PIC16 bit numbers are 0–7, PIC24/dsPIC 0–15, on an actually available port. Default text is a placeholder, not a wiring assignment.

See also

Created with the Personal Edition of HelpNDoc: Create cross-platform Qt Help files