36 #ifndef _DESCRIPTORS_H_
37 #define _DESCRIPTORS_H_
40 #include <avr/pgmspace.h>
42 #include <LUFA/Drivers/USB/USB.h>
46 #define CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 2)
49 #define CDC_TX_EPADDR (ENDPOINT_DIR_IN | 3)
52 #define CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 4)
55 #define CDC_NOTIFICATION_EPSIZE 8
58 #define CDC_TXRX_EPSIZE 16
67 USB_Descriptor_Configuration_Header_t Config;
70 USB_Descriptor_Interface_t CDC_CCI_Interface;
71 USB_CDC_Descriptor_FunctionalHeader_t CDC_Functional_Header;
72 USB_CDC_Descriptor_FunctionalACM_t CDC_Functional_ACM;
73 USB_CDC_Descriptor_FunctionalUnion_t CDC_Functional_Union;
74 USB_Descriptor_Endpoint_t CDC_NotificationEndpoint;
77 USB_Descriptor_Interface_t CDC_DCI_Interface;
78 USB_Descriptor_Endpoint_t CDC_DataOutEndpoint;
79 USB_Descriptor_Endpoint_t CDC_DataInEndpoint;
85 const void**
const DescriptorAddress)
86 ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);