umsh_bsp_nrf52840/usb.rs
1//! The identity a board's application image presents on USB.
2
3/// What the application image puts in its USB device descriptor.
4///
5/// `vid` and `pid` are the board vendor's own application IDs: the pair the
6/// vendor's stock firmware reports. Never the bootloader's pair, which the
7/// web flasher uses to recognize update mode, and never a pair in a
8/// namespace the project does not control. See "Adding a board" in
9/// `docs/firmware-architecture.md`.
10pub struct UsbIdentity {
11 pub vid: u16,
12 pub pid: u16,
13 pub product: &'static str,
14 pub serial_number: &'static str,
15}