QlightRead Project  1.23

/home/ron/Desktop/Downloads/project/QlightRead_hw/Descriptors.h

Go to the documentation of this file.
00001 
00037 #ifndef _DESCRIPTORS_H_
00038 #define _DESCRIPTORS_H_
00039 
00040 
00041 /*
00042  * --------------------------------------------------------------- includes --
00043  */
00044         #include <avr/pgmspace.h>
00045         #include <LUFA/Drivers/USB/USB.h>
00046 
00047 
00048 /*
00049  * --------------------------------------------------------------- defines --
00050  */
00052         #define DATAINEP                   3
00053 
00055         #define DATAOUTEP                   4
00056 
00058         #define DATAINSIZE                16
00059         #define DATAOUTSIZE                16
00060 
00061 /*
00062  * -------------------------------------------------------------- type Defines --
00063  */
00064         typedef struct
00065         {
00066                 USB_Descriptor_Configuration_Header_t    Config;
00067                 USB_Descriptor_Interface_t               CDC_DCI_Interface;
00068                 USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;
00069                 USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;
00070         } USB_Descriptor_Configuration_t;
00071 
00072 /*
00073  * -------------------------------------------------------------- functions --
00074  */
00075 
00076         uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
00077                                             const uint8_t wIndex,
00078                                             const void** const DescriptorAddress)
00079                                             ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
00080 
00081 #endif
00082 
 All Data Structures Files Functions Variables Defines