Lines Matching refs:sample_usbd

24 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()
146 err = usbd_register_all_classes(&sample_usbd, USBD_SPEED_FS, 1); in sample_usbd_setup_device()
153 sample_fix_code_triple(&sample_usbd, USBD_SPEED_FS); in sample_usbd_setup_device()
157 err = usbd_msg_register_cb(&sample_usbd, msg_cb); in sample_usbd_setup_device()
166 (void)usbd_device_set_bcd_usb(&sample_usbd, USBD_SPEED_FS, 0x0201); in sample_usbd_setup_device()
167 (void)usbd_device_set_bcd_usb(&sample_usbd, USBD_SPEED_HS, 0x0201); in sample_usbd_setup_device()
169 err = usbd_add_descriptor(&sample_usbd, &sample_usbext); in sample_usbd_setup_device()
176 return &sample_usbd; in sample_usbd_setup_device()
188 err = usbd_init(&sample_usbd); in sample_usbd_init_device()
195 return &sample_usbd; in sample_usbd_init_device()