1 #include "descriptors.h"
2 #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_abstract_ctrl_mgmnt_func_descriptor abstract_ctrl;
29 struct usb_cdc_union_func_descriptor union_descr;
30 struct usb_cdc_call_mgmnt_func_descriptor call_mgmt;
32 struct usb_st_endpoint_descriptor ep_notification;
34 struct usb_st_interface_descriptor data;
35 struct usb_st_endpoint_descriptor ep_in;
36 struct usb_st_endpoint_descriptor ep_out;
37 } BYTE_ALIGNED configuration_block =
41 sizeof(configuration_block.configuration),
43 sizeof(configuration_block),
51 sizeof(configuration_block.comm),
57 ABSTRACT_CONTROL_MODEL,
62 sizeof(configuration_block.header),
64 CDC_FUNC_DESCR_HEADER,
68 sizeof(configuration_block.abstract_ctrl),
70 CDC_FUNC_DESCR_ABSTRACT_CTRL_MGMNT,
74 sizeof(configuration_block.union_descr),
81 sizeof(configuration_block.call_mgmt),
83 CDC_FUNC_DESCR_CALL_MGMNT,
88 sizeof(configuration_block.ep_notification),
96 sizeof(configuration_block.data),
103 TRANSPARENT_PROTOCOL,
107 sizeof(configuration_block.ep_in),
115 sizeof(configuration_block.ep_out),
125 const struct usb_st_configuration_descriptor const *configuration_head =
126 (
struct usb_st_configuration_descriptor const*)&configuration_block;