Home
last modified time | relevance | path

Searched refs:sample_usbd (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/samples/subsys/usb/common/
Dsample_usbd_init.c24 USBD_DEVICE_DEFINE(sample_usbd,
94 err = usbd_add_descriptor(&sample_usbd, &sample_lang); in sample_usbd_setup_device()
100 err = usbd_add_descriptor(&sample_usbd, &sample_mfr); in sample_usbd_setup_device()
106 err = usbd_add_descriptor(&sample_usbd, &sample_product); in sample_usbd_setup_device()
112 err = usbd_add_descriptor(&sample_usbd, &sample_sn); in sample_usbd_setup_device()
119 if (usbd_caps_speed(&sample_usbd) == USBD_SPEED_HS) { in sample_usbd_setup_device()
120 err = usbd_add_configuration(&sample_usbd, USBD_SPEED_HS, in sample_usbd_setup_device()
127 err = usbd_register_all_classes(&sample_usbd, USBD_SPEED_HS, 1); in sample_usbd_setup_device()
133 sample_fix_code_triple(&sample_usbd, USBD_SPEED_HS); in sample_usbd_setup_device()
137 err = usbd_add_configuration(&sample_usbd, USBD_SPEED_FS, in sample_usbd_setup_device()
[all …]
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dmain.c47 struct usbd_context *sample_usbd; in main() local
50 sample_usbd = sample_usbd_setup_device(msg_cb); in main()
51 if (sample_usbd == NULL) { in main()
56 ret = usbd_add_descriptor(sample_usbd, &bos_vreq_msosv2); in main()
62 ret = usbd_add_descriptor(sample_usbd, &bos_vreq_webusb); in main()
68 ret = usbd_init(sample_usbd); in main()
74 if (!usbd_can_detect_vbus(sample_usbd)) { in main()
75 ret = usbd_enable(sample_usbd); in main()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dusb.c16 static struct usbd_context *sample_usbd; variable
22 sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()
23 if (sample_usbd == NULL) { in enable_usb_device_next()
27 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/net/zperf/src/
Dmain.c24 static struct usbd_context *sample_usbd; variable
30 sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()
31 if (sample_usbd == NULL) { in enable_usb_device_next()
35 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/subsys/usb/console/src/
Dmain.c19 static struct usbd_context *sample_usbd; variable
25 sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()
26 if (sample_usbd == NULL) { in enable_usb_device_next()
30 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/bluetooth/hci_usb/src/
Dmain.c17 struct usbd_context *sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next() local
19 if (sample_usbd == NULL) { in enable_usb_device_next()
24 return usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/subsys/usb/cdc_acm/src/
Dmain.c52 static struct usbd_context *sample_usbd; variable
91 sample_usbd = sample_usbd_init_device(sample_msg_cb); in enable_usb_device_next()
92 if (sample_usbd == NULL) { in enable_usb_device_next()
97 if (!usbd_can_detect_vbus(sample_usbd)) { in enable_usb_device_next()
98 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/subsys/usb/hid-mouse/src/
Dmain.c105 struct usbd_context *sample_usbd; in enable_usb_device_next() local
108 sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()
109 if (sample_usbd == NULL) { in enable_usb_device_next()
114 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/subsys/usb/mass/src/
Dmain.c45 static struct usbd_context *sample_usbd; variable
63 sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()
64 if (sample_usbd == NULL) { in enable_usb_device_next()
69 err = usbd_enable(sample_usbd); in enable_usb_device_next()
/Zephyr-latest/samples/subsys/usb/hid-keyboard/src/
Dmain.c174 struct usbd_context *sample_usbd; in main() local
209 sample_usbd = sample_usbd_init_device(msg_cb); in main()
210 if (sample_usbd == NULL) { in main()
215 if (!usbd_can_detect_vbus(sample_usbd)) { in main()
217 ret = usbd_enable(sample_usbd); in main()
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dmain.c259 struct usbd_context *sample_usbd; in main() local
289 sample_usbd = sample_usbd_init_device(NULL); in main()
290 if (sample_usbd == NULL) { in main()
294 ret = usbd_enable(sample_usbd); in main()
/Zephyr-latest/samples/subsys/usb/hid-keyboard/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/hid-mouse/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/webusb-next/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/bluetooth/hci_usb/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/cdc_acm/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/console/
DKconfig7 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/
DKconfig17 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/net/zperf/
DKconfig28 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/
Dmain.c522 struct usbd_context *sample_usbd; in main() local
559 sample_usbd = sample_usbd_init_device(NULL); in main()
560 if (sample_usbd == NULL) { in main()
564 ret = usbd_enable(sample_usbd); in main()
/Zephyr-latest/samples/subsys/usb/mass/
DKconfig75 source "samples/subsys/usb/common/Kconfig.sample_usbd"
/Zephyr-latest/samples/net/sockets/echo_server/
DKconfig111 source "samples/subsys/usb/common/Kconfig.sample_usbd"