1 #include "descriptors.h"
2 #include <cdc-acm/cdc.h>
3 #include <contiki-conf.h>
6 const struct usb_st_device_descriptor device_descriptor =
8 sizeof(
struct usb_st_device_descriptor),
24 const struct configuration_st {
25 struct usb_st_configuration_descriptor configuration;
26 struct usb_st_interface_descriptor comm;
27 struct usb_cdc_header_func_descriptor header;
28 struct usb_cdc_union_func_descriptor union_descr;
29 struct usb_cdc_ethernet_func_descriptor ethernet;
31 struct usb_st_endpoint_descriptor ep_notification;
33 struct usb_st_interface_descriptor data;
34 struct usb_st_endpoint_descriptor ep_in;
35 struct usb_st_endpoint_descriptor ep_out;
36 } BYTE_ALIGNED configuration_block =
40 sizeof(configuration_block.configuration),
42 sizeof(configuration_block),
50 sizeof(configuration_block.comm),
56 ETHERNET_NETWORKING_CONTROL_MODEL,
61 sizeof(configuration_block.header),
63 CDC_FUNC_DESCR_HEADER,
67 sizeof(configuration_block.union_descr),
74 sizeof(configuration_block.ethernet),
76 CDC_FUNC_DESCR_ETHERNET,
79 UIP_CONF_BUFFER_SIZE - UIP_CONF_LLH_LEN + 14,
84 sizeof(configuration_block.ep_notification),
92 sizeof(configuration_block.data),
103 sizeof(configuration_block.ep_in),
111 sizeof(configuration_block.ep_out),
121 const struct usb_st_configuration_descriptor const *configuration_head =
122 (
struct usb_st_configuration_descriptor const*)&configuration_block;