aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/builder.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2022-08-22 10:36:33 +0200
committerUlf Lilleengen <[email protected]>2022-08-22 16:37:35 +0200
commit3e155d2ec366379584bf7ba4a447109555aa0d77 (patch)
treee1a6a8340354ea67316697bf737bd08ec0ab7d00 /embassy-usb/src/builder.rs
parent5fddff849eea74fb240147432a1739ae1759cb6c (diff)
nRF documentation warning fixes
Diffstat (limited to 'embassy-usb/src/builder.rs')
-rw-r--r--embassy-usb/src/builder.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs
index 1ca24cc08..6be88bc76 100644
--- a/embassy-usb/src/builder.rs
+++ b/embassy-usb/src/builder.rs
@@ -10,6 +10,7 @@ use crate::{Interface, STRING_INDEX_CUSTOM_START};
10#[derive(Debug, Copy, Clone)] 10#[derive(Debug, Copy, Clone)]
11#[cfg_attr(feature = "defmt", derive(defmt::Format))] 11#[cfg_attr(feature = "defmt", derive(defmt::Format))]
12#[non_exhaustive] 12#[non_exhaustive]
13/// Configuration used when creating [UsbDevice].
13pub struct Config<'a> { 14pub struct Config<'a> {
14 pub(crate) vendor_id: u16, 15 pub(crate) vendor_id: u16,
15 pub(crate) product_id: u16, 16 pub(crate) product_id: u16,
@@ -96,6 +97,7 @@ pub struct Config<'a> {
96} 97}
97 98
98impl<'a> Config<'a> { 99impl<'a> Config<'a> {
100 /// Create default configuration with the provided vid and pid values.
99 pub fn new(vid: u16, pid: u16) -> Self { 101 pub fn new(vid: u16, pid: u16) -> Self {
100 Self { 102 Self {
101 device_class: 0x00, 103 device_class: 0x00,