Add missing doxygen group terminator to the new CompilerSpecific.h header file.
[pub/USBasp.git] / Projects / TempDataLogger / Descriptors.h
1 /*
2 LUFA Library
3 Copyright (C) Dean Camera, 2011.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.lufa-lib.org
7 */
8
9 #ifndef _DESCRIPTORS_H_
10 #define _DESCRIPTORS_H_
11
12 /* Includes: */
13 #include <avr/pgmspace.h>
14
15 #include <LUFA/Drivers/USB/USB.h>
16
17 #include "TempDataLogger.h"
18
19 /* Macros: */
20 /** Endpoint number of the Mass Storage device-to-host data IN endpoint. */
21 #define MASS_STORAGE_IN_EPNUM 3
22
23 /** Endpoint number of the Mass Storage host-to-device data OUT endpoint. */
24 #define MASS_STORAGE_OUT_EPNUM 4
25
26 /** Size in bytes of the Mass Storage data endpoints. */
27 #define MASS_STORAGE_IO_EPSIZE 64
28
29 /** Endpoint number of the Generic HID reporting IN endpoint. */
30 #define GENERIC_IN_EPNUM 1
31
32 /** Size in bytes of the Generic HID reporting endpoint. */
33 #define GENERIC_EPSIZE 16
34
35 /** Size in bytes of the Generic HID reports (including report ID byte). */
36 #define GENERIC_REPORT_SIZE sizeof(Device_Report_t)
37
38 /* Type Defines: */
39 /** Type define for the device configuration descriptor structure. This must be defined in the
40 * application code, as the configuration descriptor contains several sub-descriptors which
41 * vary between devices, and which describe the device's usage to the host.
42 */
43 typedef struct
44 {
45 USB_Descriptor_Configuration_Header_t Config;
46
47 // Mass Storage Interface
48 USB_Descriptor_Interface_t MS_Interface;
49 USB_Descriptor_Endpoint_t MS_DataInEndpoint;
50 USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
51
52 // Settings Management Generic HID Interface
53 USB_Descriptor_Interface_t HID_Interface;
54 USB_HID_Descriptor_HID_t HID_GenericHID;
55 USB_Descriptor_Endpoint_t HID_ReportINEndpoint;
56 } USB_Descriptor_Configuration_t;
57
58 /* Function Prototypes: */
59 uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
60 const uint8_t wIndex,
61 const void** const DescriptorAddress)
62 ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
63
64 #endif
65