Commit 9b58caef569575d664638ae50087d7850eaed17d

Authored by Rémi
1 parent 407e20c0

commit : ajout dossier compilation LUFA pour USBKEY en tant que MassStorage et Keyboard

Projet_USBKEY_MassStorageKeyboard/Config/AppConfig.h 0 → 100644
... ... @@ -0,0 +1,50 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + * \brief Application Configuration Header File
  33 + *
  34 + * This is a header file which is be used to configure some of
  35 + * the application's compile time options, as an alternative to
  36 + * specifying the compile time constants supplied through a
  37 + * makefile or build system.
  38 + *
  39 + * For information on what each token does, refer to the
  40 + * \ref Sec_Options section of the application documentation.
  41 + */
  42 +
  43 +#ifndef _APP_CONFIG_H_
  44 +#define _APP_CONFIG_H_
  45 +
  46 + #define TOTAL_LUNS 1
  47 +
  48 + #define DISK_READ_ONLY false
  49 +
  50 +#endif
... ...
Projet_USBKEY_MassStorageKeyboard/Config/LUFAConfig.h 0 → 100644
... ... @@ -0,0 +1,126 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + * \brief LUFA Library Configuration Header File
  33 + *
  34 + * This header file is used to configure LUFA's compile time options,
  35 + * as an alternative to the compile time constants supplied through
  36 + * a makefile.
  37 + *
  38 + * For information on what each token does, refer to the LUFA
  39 + * manual section "Summary of Compile Tokens".
  40 + */
  41 +
  42 +#ifndef _LUFA_CONFIG_H_
  43 +#define _LUFA_CONFIG_H_
  44 +
  45 + #if (ARCH == ARCH_AVR8)
  46 +
  47 + /* Non-USB Related Configuration Tokens: */
  48 +// #define DISABLE_TERMINAL_CODES
  49 +
  50 + /* USB Class Driver Related Tokens: */
  51 +// #define HID_HOST_BOOT_PROTOCOL_ONLY
  52 +// #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
  53 +// #define HID_USAGE_STACK_DEPTH {Insert Value Here}
  54 +// #define HID_MAX_COLLECTIONS {Insert Value Here}
  55 +// #define HID_MAX_REPORTITEMS {Insert Value Here}
  56 +// #define HID_MAX_REPORT_IDS {Insert Value Here}
  57 +// #define NO_CLASS_DRIVER_AUTOFLUSH
  58 +
  59 + /* General USB Driver Related Tokens: */
  60 +// #define ORDERED_EP_CONFIG
  61 + #define USE_STATIC_OPTIONS (USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)
  62 + #define USB_DEVICE_ONLY
  63 +// #define USB_HOST_ONLY
  64 +// #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
  65 +// #define NO_LIMITED_CONTROLLER_CONNECT
  66 +// #define NO_SOF_EVENTS
  67 +
  68 + /* USB Device Mode Driver Related Tokens: */
  69 +// #define USE_RAM_DESCRIPTORS
  70 + #define USE_FLASH_DESCRIPTORS
  71 +// #define USE_EEPROM_DESCRIPTORS
  72 +// #define NO_INTERNAL_SERIAL
  73 + #define FIXED_CONTROL_ENDPOINT_SIZE 8
  74 +// #define DEVICE_STATE_AS_GPIOR {Insert Value Here}
  75 + #define FIXED_NUM_CONFIGURATIONS 1
  76 +// #define CONTROL_ONLY_DEVICE
  77 + #define INTERRUPT_CONTROL_ENDPOINT
  78 +// #define NO_DEVICE_REMOTE_WAKEUP
  79 +// #define NO_DEVICE_SELF_POWER
  80 +
  81 + /* USB Host Mode Driver Related Tokens: */
  82 +// #define HOST_STATE_AS_GPIOR {Insert Value Here}
  83 +// #define USB_HOST_TIMEOUT_MS {Insert Value Here}
  84 +// #define HOST_DEVICE_SETTLE_DELAY_MS {Insert Value Here}
  85 +// #define NO_AUTO_VBUS_MANAGEMENT
  86 +// #define INVERTED_VBUS_ENABLE_LINE
  87 +
  88 + #elif (ARCH == ARCH_XMEGA)
  89 +
  90 + /* Non-USB Related Configuration Tokens: */
  91 +// #define DISABLE_TERMINAL_CODES
  92 +
  93 + /* USB Class Driver Related Tokens: */
  94 +// #define HID_HOST_BOOT_PROTOCOL_ONLY
  95 +// #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
  96 +// #define HID_USAGE_STACK_DEPTH {Insert Value Here}
  97 +// #define HID_MAX_COLLECTIONS {Insert Value Here}
  98 +// #define HID_MAX_REPORTITEMS {Insert Value Here}
  99 +// #define HID_MAX_REPORT_IDS {Insert Value Here}
  100 +// #define NO_CLASS_DRIVER_AUTOFLUSH
  101 +
  102 + /* General USB Driver Related Tokens: */
  103 + #define USE_STATIC_OPTIONS (USB_DEVICE_OPT_FULLSPEED | USB_OPT_RC32MCLKSRC | USB_OPT_BUSEVENT_PRIHIGH)
  104 +// #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
  105 +// #define NO_LIMITED_CONTROLLER_CONNECT
  106 +// #define NO_SOF_EVENTS
  107 +
  108 + /* USB Device Mode Driver Related Tokens: */
  109 +// #define USE_RAM_DESCRIPTORS
  110 + #define USE_FLASH_DESCRIPTORS
  111 +// #define USE_EEPROM_DESCRIPTORS
  112 +// #define NO_INTERNAL_SERIAL
  113 + #define FIXED_CONTROL_ENDPOINT_SIZE 8
  114 +// #define DEVICE_STATE_AS_GPIOR {Insert Value Here}
  115 + #define FIXED_NUM_CONFIGURATIONS 1
  116 +// #define CONTROL_ONLY_DEVICE
  117 + #define MAX_ENDPOINT_INDEX 5
  118 +// #define NO_DEVICE_REMOTE_WAKEUP
  119 +// #define NO_DEVICE_SELF_POWER
  120 +
  121 + #else
  122 +
  123 + #error Unsupported architecture for this LUFA configuration file.
  124 +
  125 + #endif
  126 +#endif
... ...
Projet_USBKEY_MassStorageKeyboard/Descriptors.c 0 → 100644
... ... @@ -0,0 +1,254 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 + Copyright 2010 Matthias Hullin (lufa [at] matthias [dot] hullin [dot] net)
  12 +
  13 + Permission to use, copy, modify, distribute, and sell this
  14 + software and its documentation for any purpose is hereby granted
  15 + without fee, provided that the above copyright notice appear in
  16 + all copies and that both that the copyright notice and this
  17 + permission notice and warranty disclaimer appear in supporting
  18 + documentation, and that the name of the author not be used in
  19 + advertising or publicity pertaining to distribution of the
  20 + software without specific, written prior permission.
  21 +
  22 + The author disclaims all warranties with regard to this
  23 + software, including all implied warranties of merchantability
  24 + and fitness. In no event shall the author be liable for any
  25 + special, indirect or consequential damages or any damages
  26 + whatsoever resulting from loss of use, data or profits, whether
  27 + in an action of contract, negligence or other tortious action,
  28 + arising out of or in connection with the use or performance of
  29 + this software.
  30 +*/
  31 +
  32 +/** \file
  33 + *
  34 + * USB Device Descriptors, for library use when in USB device mode. Descriptors are special
  35 + * computer-readable structures which the host requests upon device enumeration, to determine
  36 + * the device's capabilities and functions.
  37 + */
  38 +
  39 +#include "Descriptors.h"
  40 +
  41 +
  42 +/** HID class report descriptor. This is a special descriptor constructed with values from the
  43 + * USBIF HID class specification to describe the reports and capabilities of the HID device. This
  44 + * descriptor is parsed by the host and its contents used to determine what data (and in what encoding)
  45 + * the device will send, and what it may be sent back from the host. Refer to the HID specification for
  46 + * more details on HID report descriptors.
  47 + */
  48 +const USB_Descriptor_HIDReport_Datatype_t PROGMEM KeyboardReport[] =
  49 +{
  50 + /* Use the HID class driver's standard Keyboard report.
  51 + * Max simultaneous keys: 6
  52 + */
  53 + HID_DESCRIPTOR_KEYBOARD(6)
  54 +};
  55 +
  56 +/** Device descriptor structure. This descriptor, located in FLASH memory, describes the overall
  57 + * device characteristics, including the supported USB version, control endpoint size and the
  58 + * number of device configurations. The descriptor is read out by the USB host when the enumeration
  59 + * process begins.
  60 + */
  61 +const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
  62 +{
  63 + .Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
  64 +
  65 + .USBSpecification = VERSION_BCD(1,1,0),
  66 + .Class = USB_CSCP_NoDeviceClass,
  67 + .SubClass = USB_CSCP_NoDeviceSubclass,
  68 + .Protocol = USB_CSCP_NoDeviceProtocol,
  69 +
  70 + .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,
  71 +
  72 + .VendorID = 0x03EB,
  73 + .ProductID = 0x2061,
  74 + .ReleaseNumber = VERSION_BCD(0,0,1),
  75 +
  76 + .ManufacturerStrIndex = STRING_ID_Manufacturer,
  77 + .ProductStrIndex = STRING_ID_Product,
  78 + .SerialNumStrIndex = USE_INTERNAL_SERIAL,
  79 +
  80 + .NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS
  81 +};
  82 +
  83 +/** Configuration descriptor structure. This descriptor, located in FLASH memory, describes the usage
  84 + * of the device in one of its supported configurations, including information about any device interfaces
  85 + * and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
  86 + * a configuration so that the host may correctly communicate with the USB device.
  87 + */
  88 +const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
  89 +{
  90 + .Config =
  91 + {
  92 + .Header = {.Size = sizeof(USB_Descriptor_Configuration_Header_t), .Type = DTYPE_Configuration},
  93 +
  94 + .TotalConfigurationSize = sizeof(USB_Descriptor_Configuration_t),
  95 + .TotalInterfaces = 2,
  96 +
  97 + .ConfigurationNumber = 1,
  98 + .ConfigurationStrIndex = NO_DESCRIPTOR,
  99 +
  100 + .ConfigAttributes = USB_CONFIG_ATTR_RESERVED,
  101 +
  102 + .MaxPowerConsumption = USB_CONFIG_POWER_MA(100)
  103 + },
  104 +
  105 + .MS_Interface =
  106 + {
  107 + .Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
  108 +
  109 + .InterfaceNumber = INTERFACE_ID_MassStorage,
  110 + .AlternateSetting = 0,
  111 +
  112 + .TotalEndpoints = 2,
  113 +
  114 + .Class = MS_CSCP_MassStorageClass,
  115 + .SubClass = MS_CSCP_SCSITransparentSubclass,
  116 + .Protocol = MS_CSCP_BulkOnlyTransportProtocol,
  117 +
  118 + .InterfaceStrIndex = NO_DESCRIPTOR
  119 + },
  120 +
  121 + .MS_DataInEndpoint =
  122 + {
  123 + .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
  124 +
  125 + .EndpointAddress = MASS_STORAGE_IN_EPADDR,
  126 + .Attributes = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
  127 + .EndpointSize = MASS_STORAGE_IO_EPSIZE,
  128 + .PollingIntervalMS = 0x05
  129 + },
  130 +
  131 + .MS_DataOutEndpoint =
  132 + {
  133 + .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
  134 +
  135 + .EndpointAddress = MASS_STORAGE_OUT_EPADDR,
  136 + .Attributes = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
  137 + .EndpointSize = MASS_STORAGE_IO_EPSIZE,
  138 + .PollingIntervalMS = 0x05
  139 + },
  140 +
  141 + .HID_KeyboardInterface =
  142 + {
  143 + .Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
  144 +
  145 + .InterfaceNumber = INTERFACE_ID_Keyboard,
  146 + .AlternateSetting = 0,
  147 +
  148 + .TotalEndpoints = 1,
  149 +
  150 + .Class = HID_CSCP_HIDClass,
  151 + .SubClass = HID_CSCP_BootSubclass,
  152 + .Protocol = HID_CSCP_KeyboardBootProtocol,
  153 +
  154 + .InterfaceStrIndex = NO_DESCRIPTOR
  155 + },
  156 +
  157 + .HID_KeyboardHID =
  158 + {
  159 + .Header = {.Size = sizeof(USB_HID_Descriptor_HID_t), .Type = HID_DTYPE_HID},
  160 +
  161 + .HIDSpec = VERSION_BCD(1,1,1),
  162 + .CountryCode = 0x00,
  163 + .TotalReportDescriptors = 1,
  164 + .HIDReportType = HID_DTYPE_Report,
  165 + .HIDReportLength = sizeof(KeyboardReport)
  166 + },
  167 +
  168 + .HID_ReportINEndpoint =
  169 + {
  170 + .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
  171 +
  172 + .EndpointAddress = KEYBOARD_EPADDR,
  173 + .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
  174 + .EndpointSize = KEYBOARD_EPSIZE,
  175 + .PollingIntervalMS = 0x05
  176 + },
  177 +};
  178 +
  179 +/** Language descriptor structure. This descriptor, located in FLASH memory, is returned when the host requests
  180 + * the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
  181 + * via the language ID table available at USB.org what languages the device supports for its string descriptors.
  182 + */
  183 +const USB_Descriptor_String_t PROGMEM LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGUAGE_ID_ENG);
  184 +
  185 +/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
  186 + * form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
  187 + * Descriptor.
  188 + */
  189 +const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L"Dean Camera");
  190 +
  191 +/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
  192 + * and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
  193 + * Descriptor.
  194 + */
  195 +const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"LUFA Mass Storage and Keyboard Demo");
  196 +
  197 +/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
  198 + * documentation) by the application code so that the address and size of a requested descriptor can be given
  199 + * to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function
  200 + * is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
  201 + * USB host.
  202 + */
  203 +uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
  204 + const uint16_t wIndex,
  205 + const void** const DescriptorAddress)
  206 +{
  207 + const uint8_t DescriptorType = (wValue >> 8);
  208 + const uint8_t DescriptorNumber = (wValue & 0xFF);
  209 +
  210 + const void* Address = NULL;
  211 + uint16_t Size = NO_DESCRIPTOR;
  212 +
  213 + switch (DescriptorType)
  214 + {
  215 + case DTYPE_Device:
  216 + Address = &DeviceDescriptor;
  217 + Size = sizeof(USB_Descriptor_Device_t);
  218 + break;
  219 + case DTYPE_Configuration:
  220 + Address = &ConfigurationDescriptor;
  221 + Size = sizeof(USB_Descriptor_Configuration_t);
  222 + break;
  223 + case DTYPE_String:
  224 + switch (DescriptorNumber)
  225 + {
  226 + case STRING_ID_Language:
  227 + Address = &LanguageString;
  228 + Size = pgm_read_byte(&LanguageString.Header.Size);
  229 + break;
  230 + case STRING_ID_Manufacturer:
  231 + Address = &ManufacturerString;
  232 + Size = pgm_read_byte(&ManufacturerString.Header.Size);
  233 + break;
  234 + case STRING_ID_Product:
  235 + Address = &ProductString;
  236 + Size = pgm_read_byte(&ProductString.Header.Size);
  237 + break;
  238 + }
  239 +
  240 + break;
  241 + case HID_DTYPE_HID:
  242 + Address = &ConfigurationDescriptor.HID_KeyboardHID;
  243 + Size = sizeof(USB_HID_Descriptor_HID_t);
  244 + break;
  245 + case HID_DTYPE_Report:
  246 + Address = &KeyboardReport;
  247 + Size = sizeof(KeyboardReport);
  248 + break;
  249 + }
  250 +
  251 + *DescriptorAddress = Address;
  252 + return Size;
  253 +}
  254 +
... ...
Projet_USBKEY_MassStorageKeyboard/Descriptors.h 0 → 100644
... ... @@ -0,0 +1,111 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 + Copyright 2010 Matthias Hullin (lufa [at] matthias [dot] hullin [dot] net)
  12 +
  13 + Permission to use, copy, modify, distribute, and sell this
  14 + software and its documentation for any purpose is hereby granted
  15 + without fee, provided that the above copyright notice appear in
  16 + all copies and that both that the copyright notice and this
  17 + permission notice and warranty disclaimer appear in supporting
  18 + documentation, and that the name of the author not be used in
  19 + advertising or publicity pertaining to distribution of the
  20 + software without specific, written prior permission.
  21 +
  22 + The author disclaims all warranties with regard to this
  23 + software, including all implied warranties of merchantability
  24 + and fitness. In no event shall the author be liable for any
  25 + special, indirect or consequential damages or any damages
  26 + whatsoever resulting from loss of use, data or profits, whether
  27 + in an action of contract, negligence or other tortious action,
  28 + arising out of or in connection with the use or performance of
  29 + this software.
  30 +*/
  31 +
  32 +/** \file
  33 + *
  34 + * Header file for Descriptors.c.
  35 + */
  36 +
  37 +#ifndef _DESCRIPTORS_H_
  38 +#define _DESCRIPTORS_H_
  39 +
  40 + /* Includes: */
  41 + #include <avr/pgmspace.h>
  42 +
  43 + #include <LUFA/Drivers/USB/USB.h>
  44 +
  45 + #include "Config/AppConfig.h"
  46 +
  47 + /* Macros: */
  48 + /** Endpoint address of the Keyboard HID reporting IN endpoint. */
  49 + #define KEYBOARD_EPADDR (ENDPOINT_DIR_IN | 1)
  50 +
  51 + /** Size in bytes of the Keyboard HID reporting IN endpoint. */
  52 + #define KEYBOARD_EPSIZE 8
  53 +
  54 + /** Endpoint address of the Mass Storage device-to-host data IN endpoint. */
  55 + #define MASS_STORAGE_IN_EPADDR (ENDPOINT_DIR_IN | 3)
  56 +
  57 + /** Endpoint address of the Mass Storage host-to-device data OUT endpoint. */
  58 + #define MASS_STORAGE_OUT_EPADDR (ENDPOINT_DIR_OUT | 4)
  59 +
  60 + /** Size in bytes of the Mass Storage data endpoints. */
  61 + #define MASS_STORAGE_IO_EPSIZE 64
  62 +
  63 + /* Type Defines: */
  64 + /** Type define for the device configuration descriptor structure. This must be defined in the
  65 + * application code, as the configuration descriptor contains several sub-descriptors which
  66 + * vary between devices, and which describe the device's usage to the host.
  67 + */
  68 + typedef struct
  69 + {
  70 + USB_Descriptor_Configuration_Header_t Config;
  71 +
  72 + // Mass Storage Interface
  73 + USB_Descriptor_Interface_t MS_Interface;
  74 + USB_Descriptor_Endpoint_t MS_DataInEndpoint;
  75 + USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
  76 +
  77 + // Generic HID Interface
  78 + USB_Descriptor_Interface_t HID_KeyboardInterface;
  79 + USB_HID_Descriptor_HID_t HID_KeyboardHID;
  80 + USB_Descriptor_Endpoint_t HID_ReportINEndpoint;
  81 + } USB_Descriptor_Configuration_t;
  82 +
  83 + /** Enum for the device interface descriptor IDs within the device. Each interface descriptor
  84 + * should have a unique ID index associated with it, which can be used to refer to the
  85 + * interface from other descriptors.
  86 + */
  87 + enum InterfaceDescriptors_t
  88 + {
  89 + INTERFACE_ID_MassStorage = 0, /**< Mass storage interface descriptor ID */
  90 + INTERFACE_ID_Keyboard = 1, /**< Keyboard interface descriptor ID */
  91 + };
  92 +
  93 + /** Enum for the device string descriptor IDs within the device. Each string descriptor should
  94 + * have a unique ID index associated with it, which can be used to refer to the string from
  95 + * other descriptors.
  96 + */
  97 + enum StringDescriptors_t
  98 + {
  99 + STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
  100 + STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
  101 + STRING_ID_Product = 2, /**< Product string ID */
  102 + };
  103 +
  104 + /* Function Prototypes: */
  105 + uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
  106 + const uint16_t wIndex,
  107 + const void** const DescriptorAddress)
  108 + ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
  109 +
  110 +#endif
  111 +
... ...
Projet_USBKEY_MassStorageKeyboard/Lib/DataflashManager.c 0 → 100644
... ... @@ -0,0 +1,534 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + *
  33 + * Functions to manage the physical Dataflash media, including reading and writing of
  34 + * blocks of data. These functions are called by the SCSI layer when data must be stored
  35 + * or retrieved to/from the physical storage media. If a different media is used (such
  36 + * as a SD card or EEPROM), functions similar to these will need to be generated.
  37 + */
  38 +
  39 +#define INCLUDE_FROM_DATAFLASHMANAGER_C
  40 +#include "DataflashManager.h"
  41 +
  42 +/** Writes blocks (OS blocks, not Dataflash pages) to the storage medium, the board Dataflash IC(s), from
  43 + * the pre-selected data OUT endpoint. This routine reads in OS sized blocks from the endpoint and writes
  44 + * them to the Dataflash in Dataflash page sized blocks.
  45 + *
  46 + * \param[in] MSInterfaceInfo Pointer to a structure containing a Mass Storage Class configuration and state
  47 + * \param[in] BlockAddress Data block starting address for the write sequence
  48 + * \param[in] TotalBlocks Number of blocks of data to write
  49 + */
  50 +void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  51 + const uint32_t BlockAddress,
  52 + uint16_t TotalBlocks)
  53 +{
  54 + uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
  55 + uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
  56 + uint8_t CurrDFPageByteDiv16 = (CurrDFPageByte >> 4);
  57 + bool UsingSecondBuffer = false;
  58 +
  59 + /* Select the correct starting Dataflash IC for the block requested */
  60 + Dataflash_SelectChipFromPage(CurrDFPage);
  61 +
  62 +#if (DATAFLASH_PAGE_SIZE > VIRTUAL_MEMORY_BLOCK_SIZE)
  63 + /* Copy selected dataflash's current page contents to the Dataflash buffer */
  64 + Dataflash_SendByte(DF_CMD_MAINMEMTOBUFF1);
  65 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  66 + Dataflash_WaitWhileBusy();
  67 +#endif
  68 +
  69 + /* Send the Dataflash buffer write command */
  70 + Dataflash_SendByte(DF_CMD_BUFF1WRITE);
  71 + Dataflash_SendAddressBytes(0, CurrDFPageByte);
  72 +
  73 + /* Wait until endpoint is ready before continuing */
  74 + if (Endpoint_WaitUntilReady())
  75 + return;
  76 +
  77 + while (TotalBlocks)
  78 + {
  79 + uint8_t BytesInBlockDiv16 = 0;
  80 +
  81 + /* Write an endpoint packet sized data block to the Dataflash */
  82 + while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4))
  83 + {
  84 + /* Check if the endpoint is currently empty */
  85 + if (!(Endpoint_IsReadWriteAllowed()))
  86 + {
  87 + /* Clear the current endpoint bank */
  88 + Endpoint_ClearOUT();
  89 +
  90 + /* Wait until the host has sent another packet */
  91 + if (Endpoint_WaitUntilReady())
  92 + return;
  93 + }
  94 +
  95 + /* Check if end of Dataflash page reached */
  96 + if (CurrDFPageByteDiv16 == (DATAFLASH_PAGE_SIZE >> 4))
  97 + {
  98 + /* Write the Dataflash buffer contents back to the Dataflash page */
  99 + Dataflash_WaitWhileBusy();
  100 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2TOMAINMEMWITHERASE : DF_CMD_BUFF1TOMAINMEMWITHERASE);
  101 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  102 +
  103 + /* Reset the Dataflash buffer counter, increment the page counter */
  104 + CurrDFPageByteDiv16 = 0;
  105 + CurrDFPage++;
  106 +
  107 + /* Once all the Dataflash ICs have had their first buffers filled, switch buffers to maintain throughput */
  108 + if (Dataflash_GetSelectedChip() == DATAFLASH_CHIP_MASK(DATAFLASH_TOTALCHIPS))
  109 + UsingSecondBuffer = !(UsingSecondBuffer);
  110 +
  111 + /* Select the next Dataflash chip based on the new Dataflash page index */
  112 + Dataflash_SelectChipFromPage(CurrDFPage);
  113 +
  114 +#if (DATAFLASH_PAGE_SIZE > VIRTUAL_MEMORY_BLOCK_SIZE)
  115 + /* If less than one Dataflash page remaining, copy over the existing page to preserve trailing data */
  116 + if ((TotalBlocks * (VIRTUAL_MEMORY_BLOCK_SIZE >> 4)) < (DATAFLASH_PAGE_SIZE >> 4))
  117 + {
  118 + /* Copy selected dataflash's current page contents to the Dataflash buffer */
  119 + Dataflash_WaitWhileBusy();
  120 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_MAINMEMTOBUFF2 : DF_CMD_MAINMEMTOBUFF1);
  121 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  122 + Dataflash_WaitWhileBusy();
  123 + }
  124 +#endif
  125 +
  126 + /* Send the Dataflash buffer write command */
  127 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2WRITE : DF_CMD_BUFF1WRITE);
  128 + Dataflash_SendAddressBytes(0, 0);
  129 + }
  130 +
  131 + /* Write one 16-byte chunk of data to the Dataflash */
  132 + Dataflash_SendByte(Endpoint_Read_8());
  133 + Dataflash_SendByte(Endpoint_Read_8());
  134 + Dataflash_SendByte(Endpoint_Read_8());
  135 + Dataflash_SendByte(Endpoint_Read_8());
  136 + Dataflash_SendByte(Endpoint_Read_8());
  137 + Dataflash_SendByte(Endpoint_Read_8());
  138 + Dataflash_SendByte(Endpoint_Read_8());
  139 + Dataflash_SendByte(Endpoint_Read_8());
  140 + Dataflash_SendByte(Endpoint_Read_8());
  141 + Dataflash_SendByte(Endpoint_Read_8());
  142 + Dataflash_SendByte(Endpoint_Read_8());
  143 + Dataflash_SendByte(Endpoint_Read_8());
  144 + Dataflash_SendByte(Endpoint_Read_8());
  145 + Dataflash_SendByte(Endpoint_Read_8());
  146 + Dataflash_SendByte(Endpoint_Read_8());
  147 + Dataflash_SendByte(Endpoint_Read_8());
  148 +
  149 + /* Increment the Dataflash page 16 byte block counter */
  150 + CurrDFPageByteDiv16++;
  151 +
  152 + /* Increment the block 16 byte block counter */
  153 + BytesInBlockDiv16++;
  154 +
  155 + /* Check if the current command is being aborted by the host */
  156 + if (MSInterfaceInfo->State.IsMassStoreReset)
  157 + return;
  158 + }
  159 +
  160 + /* Decrement the blocks remaining counter */
  161 + TotalBlocks--;
  162 + }
  163 +
  164 + /* Write the Dataflash buffer contents back to the Dataflash page */
  165 + Dataflash_WaitWhileBusy();
  166 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2TOMAINMEMWITHERASE : DF_CMD_BUFF1TOMAINMEMWITHERASE);
  167 + Dataflash_SendAddressBytes(CurrDFPage, 0x00);
  168 + Dataflash_WaitWhileBusy();
  169 +
  170 + /* If the endpoint is empty, clear it ready for the next packet from the host */
  171 + if (!(Endpoint_IsReadWriteAllowed()))
  172 + Endpoint_ClearOUT();
  173 +
  174 + /* Deselect all Dataflash chips */
  175 + Dataflash_DeselectChip();
  176 +}
  177 +
  178 +/** Reads blocks (OS blocks, not Dataflash pages) from the storage medium, the board Dataflash IC(s), into
  179 + * the pre-selected data IN endpoint. This routine reads in Dataflash page sized blocks from the Dataflash
  180 + * and writes them in OS sized blocks to the endpoint.
  181 + *
  182 + * \param[in] MSInterfaceInfo Pointer to a structure containing a Mass Storage Class configuration and state
  183 + * \param[in] BlockAddress Data block starting address for the read sequence
  184 + * \param[in] TotalBlocks Number of blocks of data to read
  185 + */
  186 +void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  187 + const uint32_t BlockAddress,
  188 + uint16_t TotalBlocks)
  189 +{
  190 + uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
  191 + uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
  192 + uint8_t CurrDFPageByteDiv16 = (CurrDFPageByte >> 4);
  193 +
  194 + /* Select the correct starting Dataflash IC for the block requested */
  195 + Dataflash_SelectChipFromPage(CurrDFPage);
  196 +
  197 + /* Send the Dataflash main memory page read command */
  198 + Dataflash_SendByte(DF_CMD_MAINMEMPAGEREAD);
  199 + Dataflash_SendAddressBytes(CurrDFPage, CurrDFPageByte);
  200 + Dataflash_SendByte(0x00);
  201 + Dataflash_SendByte(0x00);
  202 + Dataflash_SendByte(0x00);
  203 + Dataflash_SendByte(0x00);
  204 +
  205 + /* Wait until endpoint is ready before continuing */
  206 + if (Endpoint_WaitUntilReady())
  207 + return;
  208 +
  209 + while (TotalBlocks)
  210 + {
  211 + uint8_t BytesInBlockDiv16 = 0;
  212 +
  213 + /* Read an endpoint packet sized data block from the Dataflash */
  214 + while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4))
  215 + {
  216 + /* Check if the endpoint is currently full */
  217 + if (!(Endpoint_IsReadWriteAllowed()))
  218 + {
  219 + /* Clear the endpoint bank to send its contents to the host */
  220 + Endpoint_ClearIN();
  221 +
  222 + /* Wait until the endpoint is ready for more data */
  223 + if (Endpoint_WaitUntilReady())
  224 + return;
  225 + }
  226 +
  227 + /* Check if end of Dataflash page reached */
  228 + if (CurrDFPageByteDiv16 == (DATAFLASH_PAGE_SIZE >> 4))
  229 + {
  230 + /* Reset the Dataflash buffer counter, increment the page counter */
  231 + CurrDFPageByteDiv16 = 0;
  232 + CurrDFPage++;
  233 +
  234 + /* Select the next Dataflash chip based on the new Dataflash page index */
  235 + Dataflash_SelectChipFromPage(CurrDFPage);
  236 +
  237 + /* Send the Dataflash main memory page read command */
  238 + Dataflash_SendByte(DF_CMD_MAINMEMPAGEREAD);
  239 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  240 + Dataflash_SendByte(0x00);
  241 + Dataflash_SendByte(0x00);
  242 + Dataflash_SendByte(0x00);
  243 + Dataflash_SendByte(0x00);
  244 + }
  245 +
  246 + /* Read one 16-byte chunk of data from the Dataflash */
  247 + Endpoint_Write_8(Dataflash_ReceiveByte());
  248 + Endpoint_Write_8(Dataflash_ReceiveByte());
  249 + Endpoint_Write_8(Dataflash_ReceiveByte());
  250 + Endpoint_Write_8(Dataflash_ReceiveByte());
  251 + Endpoint_Write_8(Dataflash_ReceiveByte());
  252 + Endpoint_Write_8(Dataflash_ReceiveByte());
  253 + Endpoint_Write_8(Dataflash_ReceiveByte());
  254 + Endpoint_Write_8(Dataflash_ReceiveByte());
  255 + Endpoint_Write_8(Dataflash_ReceiveByte());
  256 + Endpoint_Write_8(Dataflash_ReceiveByte());
  257 + Endpoint_Write_8(Dataflash_ReceiveByte());
  258 + Endpoint_Write_8(Dataflash_ReceiveByte());
  259 + Endpoint_Write_8(Dataflash_ReceiveByte());
  260 + Endpoint_Write_8(Dataflash_ReceiveByte());
  261 + Endpoint_Write_8(Dataflash_ReceiveByte());
  262 + Endpoint_Write_8(Dataflash_ReceiveByte());
  263 +
  264 + /* Increment the Dataflash page 16 byte block counter */
  265 + CurrDFPageByteDiv16++;
  266 +
  267 + /* Increment the block 16 byte block counter */
  268 + BytesInBlockDiv16++;
  269 +
  270 + /* Check if the current command is being aborted by the host */
  271 + if (MSInterfaceInfo->State.IsMassStoreReset)
  272 + return;
  273 + }
  274 +
  275 + /* Decrement the blocks remaining counter */
  276 + TotalBlocks--;
  277 + }
  278 +
  279 + /* If the endpoint is full, send its contents to the host */
  280 + if (!(Endpoint_IsReadWriteAllowed()))
  281 + Endpoint_ClearIN();
  282 +
  283 + /* Deselect all Dataflash chips */
  284 + Dataflash_DeselectChip();
  285 +}
  286 +
  287 +/** Writes blocks (OS blocks, not Dataflash pages) to the storage medium, the board Dataflash IC(s), from
  288 + * the given RAM buffer. This routine reads in OS sized blocks from the buffer and writes them to the
  289 + * Dataflash in Dataflash page sized blocks. This can be linked to FAT libraries to write files to the
  290 + * Dataflash.
  291 + *
  292 + * \param[in] BlockAddress Data block starting address for the write sequence
  293 + * \param[in] TotalBlocks Number of blocks of data to write
  294 + * \param[in] BufferPtr Pointer to the data source RAM buffer
  295 + */
  296 +void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress,
  297 + uint16_t TotalBlocks,
  298 + uint8_t* BufferPtr)
  299 +{
  300 + uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
  301 + uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
  302 + uint8_t CurrDFPageByteDiv16 = (CurrDFPageByte >> 4);
  303 + bool UsingSecondBuffer = false;
  304 +
  305 + /* Select the correct starting Dataflash IC for the block requested */
  306 + Dataflash_SelectChipFromPage(CurrDFPage);
  307 +
  308 +#if (DATAFLASH_PAGE_SIZE > VIRTUAL_MEMORY_BLOCK_SIZE)
  309 + /* Copy selected dataflash's current page contents to the Dataflash buffer */
  310 + Dataflash_SendByte(DF_CMD_MAINMEMTOBUFF1);
  311 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  312 + Dataflash_WaitWhileBusy();
  313 +#endif
  314 +
  315 + /* Send the Dataflash buffer write command */
  316 + Dataflash_SendByte(DF_CMD_BUFF1WRITE);
  317 + Dataflash_SendAddressBytes(0, CurrDFPageByte);
  318 +
  319 + while (TotalBlocks)
  320 + {
  321 + uint8_t BytesInBlockDiv16 = 0;
  322 +
  323 + /* Write an endpoint packet sized data block to the Dataflash */
  324 + while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4))
  325 + {
  326 + /* Check if end of Dataflash page reached */
  327 + if (CurrDFPageByteDiv16 == (DATAFLASH_PAGE_SIZE >> 4))
  328 + {
  329 + /* Write the Dataflash buffer contents back to the Dataflash page */
  330 + Dataflash_WaitWhileBusy();
  331 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2TOMAINMEMWITHERASE : DF_CMD_BUFF1TOMAINMEMWITHERASE);
  332 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  333 +
  334 + /* Reset the Dataflash buffer counter, increment the page counter */
  335 + CurrDFPageByteDiv16 = 0;
  336 + CurrDFPage++;
  337 +
  338 + /* Once all the Dataflash ICs have had their first buffers filled, switch buffers to maintain throughput */
  339 + if (Dataflash_GetSelectedChip() == DATAFLASH_CHIP_MASK(DATAFLASH_TOTALCHIPS))
  340 + UsingSecondBuffer = !(UsingSecondBuffer);
  341 +
  342 + /* Select the next Dataflash chip based on the new Dataflash page index */
  343 + Dataflash_SelectChipFromPage(CurrDFPage);
  344 +
  345 +#if (DATAFLASH_PAGE_SIZE > VIRTUAL_MEMORY_BLOCK_SIZE)
  346 + /* If less than one Dataflash page remaining, copy over the existing page to preserve trailing data */
  347 + if ((TotalBlocks * (VIRTUAL_MEMORY_BLOCK_SIZE >> 4)) < (DATAFLASH_PAGE_SIZE >> 4))
  348 + {
  349 + /* Copy selected dataflash's current page contents to the Dataflash buffer */
  350 + Dataflash_WaitWhileBusy();
  351 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_MAINMEMTOBUFF2 : DF_CMD_MAINMEMTOBUFF1);
  352 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  353 + Dataflash_WaitWhileBusy();
  354 + }
  355 +#endif
  356 +
  357 + /* Send the Dataflash buffer write command */
  358 + Dataflash_ToggleSelectedChipCS();
  359 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2WRITE : DF_CMD_BUFF1WRITE);
  360 + Dataflash_SendAddressBytes(0, 0);
  361 + }
  362 +
  363 + /* Write one 16-byte chunk of data to the Dataflash */
  364 + for (uint8_t ByteNum = 0; ByteNum < 16; ByteNum++)
  365 + Dataflash_SendByte(*(BufferPtr++));
  366 +
  367 + /* Increment the Dataflash page 16 byte block counter */
  368 + CurrDFPageByteDiv16++;
  369 +
  370 + /* Increment the block 16 byte block counter */
  371 + BytesInBlockDiv16++;
  372 + }
  373 +
  374 + /* Decrement the blocks remaining counter */
  375 + TotalBlocks--;
  376 + }
  377 +
  378 + /* Write the Dataflash buffer contents back to the Dataflash page */
  379 + Dataflash_WaitWhileBusy();
  380 + Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2TOMAINMEMWITHERASE : DF_CMD_BUFF1TOMAINMEMWITHERASE);
  381 + Dataflash_SendAddressBytes(CurrDFPage, 0x00);
  382 + Dataflash_WaitWhileBusy();
  383 +
  384 + /* Deselect all Dataflash chips */
  385 + Dataflash_DeselectChip();
  386 +}
  387 +
  388 +/** Reads blocks (OS blocks, not Dataflash pages) from the storage medium, the board Dataflash IC(s), into
  389 + * the preallocated RAM buffer. This routine reads in Dataflash page sized blocks from the Dataflash
  390 + * and writes them in OS sized blocks to the given buffer. This can be linked to FAT libraries to read
  391 + * the files stored on the Dataflash.
  392 + *
  393 + * \param[in] BlockAddress Data block starting address for the read sequence
  394 + * \param[in] TotalBlocks Number of blocks of data to read
  395 + * \param[out] BufferPtr Pointer to the data destination RAM buffer
  396 + */
  397 +void DataflashManager_ReadBlocks_RAM(const uint32_t BlockAddress,
  398 + uint16_t TotalBlocks,
  399 + uint8_t* BufferPtr)
  400 +{
  401 + uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
  402 + uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
  403 + uint8_t CurrDFPageByteDiv16 = (CurrDFPageByte >> 4);
  404 +
  405 + /* Select the correct starting Dataflash IC for the block requested */
  406 + Dataflash_SelectChipFromPage(CurrDFPage);
  407 +
  408 + /* Send the Dataflash main memory page read command */
  409 + Dataflash_SendByte(DF_CMD_MAINMEMPAGEREAD);
  410 + Dataflash_SendAddressBytes(CurrDFPage, CurrDFPageByte);
  411 + Dataflash_SendByte(0x00);
  412 + Dataflash_SendByte(0x00);
  413 + Dataflash_SendByte(0x00);
  414 + Dataflash_SendByte(0x00);
  415 +
  416 + while (TotalBlocks)
  417 + {
  418 + uint8_t BytesInBlockDiv16 = 0;
  419 +
  420 + /* Read an endpoint packet sized data block from the Dataflash */
  421 + while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4))
  422 + {
  423 + /* Check if end of Dataflash page reached */
  424 + if (CurrDFPageByteDiv16 == (DATAFLASH_PAGE_SIZE >> 4))
  425 + {
  426 + /* Reset the Dataflash buffer counter, increment the page counter */
  427 + CurrDFPageByteDiv16 = 0;
  428 + CurrDFPage++;
  429 +
  430 + /* Select the next Dataflash chip based on the new Dataflash page index */
  431 + Dataflash_SelectChipFromPage(CurrDFPage);
  432 +
  433 + /* Send the Dataflash main memory page read command */
  434 + Dataflash_SendByte(DF_CMD_MAINMEMPAGEREAD);
  435 + Dataflash_SendAddressBytes(CurrDFPage, 0);
  436 + Dataflash_SendByte(0x00);
  437 + Dataflash_SendByte(0x00);
  438 + Dataflash_SendByte(0x00);
  439 + Dataflash_SendByte(0x00);
  440 + }
  441 +
  442 + /* Read one 16-byte chunk of data from the Dataflash */
  443 + for (uint8_t ByteNum = 0; ByteNum < 16; ByteNum++)
  444 + *(BufferPtr++) = Dataflash_ReceiveByte();
  445 +
  446 + /* Increment the Dataflash page 16 byte block counter */
  447 + CurrDFPageByteDiv16++;
  448 +
  449 + /* Increment the block 16 byte block counter */
  450 + BytesInBlockDiv16++;
  451 + }
  452 +
  453 + /* Decrement the blocks remaining counter */
  454 + TotalBlocks--;
  455 + }
  456 +
  457 + /* Deselect all Dataflash chips */
  458 + Dataflash_DeselectChip();
  459 +}
  460 +
  461 +/** Disables the Dataflash memory write protection bits on the board Dataflash ICs, if enabled. */
  462 +void DataflashManager_ResetDataflashProtections(void)
  463 +{
  464 + /* Select first Dataflash chip, send the read status register command */
  465 + Dataflash_SelectChip(DATAFLASH_CHIP1);
  466 + Dataflash_SendByte(DF_CMD_GETSTATUS);
  467 +
  468 + /* Check if sector protection is enabled */
  469 + if (Dataflash_ReceiveByte() & DF_STATUS_SECTORPROTECTION_ON)
  470 + {
  471 + Dataflash_ToggleSelectedChipCS();
  472 +
  473 + /* Send the commands to disable sector protection */
  474 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[0]);
  475 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[1]);
  476 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[2]);
  477 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[3]);
  478 + }
  479 +
  480 + /* Select second Dataflash chip (if present on selected board), send read status register command */
  481 + #if (DATAFLASH_TOTALCHIPS == 2)
  482 + Dataflash_SelectChip(DATAFLASH_CHIP2);
  483 + Dataflash_SendByte(DF_CMD_GETSTATUS);
  484 +
  485 + /* Check if sector protection is enabled */
  486 + if (Dataflash_ReceiveByte() & DF_STATUS_SECTORPROTECTION_ON)
  487 + {
  488 + Dataflash_ToggleSelectedChipCS();
  489 +
  490 + /* Send the commands to disable sector protection */
  491 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[0]);
  492 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[1]);
  493 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[2]);
  494 + Dataflash_SendByte(DF_CMD_SECTORPROTECTIONOFF[3]);
  495 + }
  496 + #endif
  497 +
  498 + /* Deselect current Dataflash chip */
  499 + Dataflash_DeselectChip();
  500 +}
  501 +
  502 +/** Performs a simple test on the attached Dataflash IC(s) to ensure that they are working.
  503 + *
  504 + * \return Boolean \c true if all media chips are working, \c false otherwise
  505 + */
  506 +bool DataflashManager_CheckDataflashOperation(void)
  507 +{
  508 + uint8_t ReturnByte;
  509 +
  510 + /* Test first Dataflash IC is present and responding to commands */
  511 + Dataflash_SelectChip(DATAFLASH_CHIP1);
  512 + Dataflash_SendByte(DF_CMD_READMANUFACTURERDEVICEINFO);
  513 + ReturnByte = Dataflash_ReceiveByte();
  514 + Dataflash_DeselectChip();
  515 +
  516 + /* If returned data is invalid, fail the command */
  517 + if (ReturnByte != DF_MANUFACTURER_ATMEL)
  518 + return false;
  519 +
  520 + #if (DATAFLASH_TOTALCHIPS == 2)
  521 + /* Test second Dataflash IC is present and responding to commands */
  522 + Dataflash_SelectChip(DATAFLASH_CHIP2);
  523 + Dataflash_SendByte(DF_CMD_READMANUFACTURERDEVICEINFO);
  524 + ReturnByte = Dataflash_ReceiveByte();
  525 + Dataflash_DeselectChip();
  526 +
  527 + /* If returned data is invalid, fail the command */
  528 + if (ReturnByte != DF_MANUFACTURER_ATMEL)
  529 + return false;
  530 + #endif
  531 +
  532 + return true;
  533 +}
  534 +
... ...
Projet_USBKEY_MassStorageKeyboard/Lib/DataflashManager.h 0 → 100644
... ... @@ -0,0 +1,87 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + *
  33 + * Header file for DataflashManager.c.
  34 + */
  35 +
  36 +#ifndef _DATAFLASH_MANAGER_H_
  37 +#define _DATAFLASH_MANAGER_H_
  38 +
  39 + /* Includes: */
  40 + #include <avr/io.h>
  41 +
  42 + #include "../MassStorageKeyboard.h"
  43 + #include "../Descriptors.h"
  44 + #include "Config/AppConfig.h"
  45 +
  46 + #include <LUFA/Common/Common.h>
  47 + #include <LUFA/Drivers/USB/USB.h>
  48 + #include <LUFA/Drivers/Board/Dataflash.h>
  49 +
  50 + /* Preprocessor Checks: */
  51 + #if (DATAFLASH_PAGE_SIZE % 16)
  52 + #error Dataflash page size must be a multiple of 16 bytes.
  53 + #endif
  54 +
  55 + /* Defines: */
  56 + /** Total number of bytes of the storage medium, comprised of one or more Dataflash ICs. */
  57 + #define VIRTUAL_MEMORY_BYTES ((uint32_t)DATAFLASH_PAGES * DATAFLASH_PAGE_SIZE * DATAFLASH_TOTALCHIPS)
  58 +
  59 + /** Block size of the device. This is kept at 512 to remain compatible with the OS despite the underlying
  60 + * storage media (Dataflash) using a different native block size.
  61 + */
  62 + #define VIRTUAL_MEMORY_BLOCK_SIZE 512
  63 +
  64 + /** Total number of blocks of the virtual memory for reporting to the host as the device's total capacity. */
  65 + #define VIRTUAL_MEMORY_BLOCKS (VIRTUAL_MEMORY_BYTES / VIRTUAL_MEMORY_BLOCK_SIZE)
  66 +
  67 + /** Blocks in each LUN, calculated from the total capacity divided by the total number of Logical Units in the device. */
  68 + #define LUN_MEDIA_BLOCKS (VIRTUAL_MEMORY_BLOCKS / TOTAL_LUNS)
  69 +
  70 + /* Function Prototypes: */
  71 + void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  72 + const uint32_t BlockAddress,
  73 + uint16_t TotalBlocks);
  74 + void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  75 + const uint32_t BlockAddress,
  76 + uint16_t TotalBlocks);
  77 + void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress,
  78 + uint16_t TotalBlocks,
  79 + uint8_t* BufferPtr) ATTR_NON_NULL_PTR_ARG(3);
  80 + void DataflashManager_ReadBlocks_RAM(const uint32_t BlockAddress,
  81 + uint16_t TotalBlocks,
  82 + uint8_t* BufferPtr) ATTR_NON_NULL_PTR_ARG(3);
  83 + void DataflashManager_ResetDataflashProtections(void);
  84 + bool DataflashManager_CheckDataflashOperation(void);
  85 +
  86 +#endif
  87 +
... ...
Projet_USBKEY_MassStorageKeyboard/Lib/SCSI.c 0 → 100644
... ... @@ -0,0 +1,349 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + *
  33 + * SCSI command processing routines, for SCSI commands issued by the host. Mass Storage
  34 + * devices use a thin "Bulk-Only Transport" protocol for issuing commands and status information,
  35 + * which wrap around standard SCSI device commands for controlling the actual storage medium.
  36 + */
  37 +
  38 +#define INCLUDE_FROM_SCSI_C
  39 +#include "SCSI.h"
  40 +
  41 +/** Structure to hold the SCSI response data to a SCSI INQUIRY command. This gives information about the device's
  42 + * features and capabilities.
  43 + */
  44 +static const SCSI_Inquiry_Response_t InquiryData =
  45 + {
  46 + .DeviceType = DEVICE_TYPE_BLOCK,
  47 + .PeripheralQualifier = 0,
  48 +
  49 + .Removable = true,
  50 +
  51 + .Version = 0,
  52 +
  53 + .ResponseDataFormat = 2,
  54 + .NormACA = false,
  55 + .TrmTsk = false,
  56 + .AERC = false,
  57 +
  58 + .AdditionalLength = 0x1F,
  59 +
  60 + .SoftReset = false,
  61 + .CmdQue = false,
  62 + .Linked = false,
  63 + .Sync = false,
  64 + .WideBus16Bit = false,
  65 + .WideBus32Bit = false,
  66 + .RelAddr = false,
  67 +
  68 + .VendorID = "LUFA",
  69 + .ProductID = "Dataflash Disk",
  70 + .RevisionID = {'0','.','0','0'},
  71 + };
  72 +
  73 +/** Structure to hold the sense data for the last issued SCSI command, which is returned to the host after a SCSI REQUEST SENSE
  74 + * command is issued. This gives information on exactly why the last command failed to complete.
  75 + */
  76 +static SCSI_Request_Sense_Response_t SenseData =
  77 + {
  78 + .ResponseCode = 0x70,
  79 + .AdditionalLength = 0x0A,
  80 + };
  81 +
  82 +
  83 +/** Main routine to process the SCSI command located in the Command Block Wrapper read from the host. This dispatches
  84 + * to the appropriate SCSI command handling routine if the issued command is supported by the device, else it returns
  85 + * a command failure due to a ILLEGAL REQUEST.
  86 + *
  87 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  88 + *
  89 + * \return Boolean \c true if the command completed successfully, \c false otherwise
  90 + */
  91 +bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  92 +{
  93 + bool CommandSuccess = false;
  94 +
  95 + /* Run the appropriate SCSI command hander function based on the passed command */
  96 + switch (MSInterfaceInfo->State.CommandBlock.SCSICommandData[0])
  97 + {
  98 + case SCSI_CMD_INQUIRY:
  99 + CommandSuccess = SCSI_Command_Inquiry(MSInterfaceInfo);
  100 + break;
  101 + case SCSI_CMD_REQUEST_SENSE:
  102 + CommandSuccess = SCSI_Command_Request_Sense(MSInterfaceInfo);
  103 + break;
  104 + case SCSI_CMD_READ_CAPACITY_10:
  105 + CommandSuccess = SCSI_Command_Read_Capacity_10(MSInterfaceInfo);
  106 + break;
  107 + case SCSI_CMD_SEND_DIAGNOSTIC:
  108 + CommandSuccess = SCSI_Command_Send_Diagnostic(MSInterfaceInfo);
  109 + break;
  110 + case SCSI_CMD_WRITE_10:
  111 + CommandSuccess = SCSI_Command_ReadWrite_10(MSInterfaceInfo, DATA_WRITE);
  112 + break;
  113 + case SCSI_CMD_READ_10:
  114 + CommandSuccess = SCSI_Command_ReadWrite_10(MSInterfaceInfo, DATA_READ);
  115 + break;
  116 + case SCSI_CMD_MODE_SENSE_6:
  117 + CommandSuccess = SCSI_Command_ModeSense_6(MSInterfaceInfo);
  118 + break;
  119 + case SCSI_CMD_START_STOP_UNIT:
  120 + case SCSI_CMD_TEST_UNIT_READY:
  121 + case SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL:
  122 + case SCSI_CMD_VERIFY_10:
  123 + /* These commands should just succeed, no handling required */
  124 + CommandSuccess = true;
  125 + MSInterfaceInfo->State.CommandBlock.DataTransferLength = 0;
  126 + break;
  127 + default:
  128 + /* Update the SENSE key to reflect the invalid command */
  129 + SCSI_SET_SENSE(SCSI_SENSE_KEY_ILLEGAL_REQUEST,
  130 + SCSI_ASENSE_INVALID_COMMAND,
  131 + SCSI_ASENSEQ_NO_QUALIFIER);
  132 + break;
  133 + }
  134 +
  135 + /* Check if command was successfully processed */
  136 + if (CommandSuccess)
  137 + {
  138 + SCSI_SET_SENSE(SCSI_SENSE_KEY_GOOD,
  139 + SCSI_ASENSE_NO_ADDITIONAL_INFORMATION,
  140 + SCSI_ASENSEQ_NO_QUALIFIER);
  141 +
  142 + return true;
  143 + }
  144 +
  145 + return false;
  146 +}
  147 +
  148 +/** Command processing for an issued SCSI INQUIRY command. This command returns information about the device's features
  149 + * and capabilities to the host.
  150 + *
  151 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  152 + *
  153 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  154 + */
  155 +static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  156 +{
  157 + uint16_t AllocationLength = SwapEndian_16(*(uint16_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
  158 + uint16_t BytesTransferred = MIN(AllocationLength, sizeof(InquiryData));
  159 +
  160 + /* Only the standard INQUIRY data is supported, check if any optional INQUIRY bits set */
  161 + if ((MSInterfaceInfo->State.CommandBlock.SCSICommandData[1] & ((1 << 0) | (1 << 1))) ||
  162 + MSInterfaceInfo->State.CommandBlock.SCSICommandData[2])
  163 + {
  164 + /* Optional but unsupported bits set - update the SENSE key and fail the request */
  165 + SCSI_SET_SENSE(SCSI_SENSE_KEY_ILLEGAL_REQUEST,
  166 + SCSI_ASENSE_INVALID_FIELD_IN_CDB,
  167 + SCSI_ASENSEQ_NO_QUALIFIER);
  168 +
  169 + return false;
  170 + }
  171 +
  172 + Endpoint_Write_Stream_LE(&InquiryData, BytesTransferred, NULL);
  173 +
  174 + /* Pad out remaining bytes with 0x00 */
  175 + Endpoint_Null_Stream((AllocationLength - BytesTransferred), NULL);
  176 +
  177 + /* Finalize the stream transfer to send the last packet */
  178 + Endpoint_ClearIN();
  179 +
  180 + /* Succeed the command and update the bytes transferred counter */
  181 + MSInterfaceInfo->State.CommandBlock.DataTransferLength -= BytesTransferred;
  182 +
  183 + return true;
  184 +}
  185 +
  186 +/** Command processing for an issued SCSI REQUEST SENSE command. This command returns information about the last issued command,
  187 + * including the error code and additional error information so that the host can determine why a command failed to complete.
  188 + *
  189 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  190 + *
  191 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  192 + */
  193 +static bool SCSI_Command_Request_Sense(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  194 +{
  195 + uint8_t AllocationLength = MSInterfaceInfo->State.CommandBlock.SCSICommandData[4];
  196 + uint8_t BytesTransferred = MIN(AllocationLength, sizeof(SenseData));
  197 +
  198 + Endpoint_Write_Stream_LE(&SenseData, BytesTransferred, NULL);
  199 + Endpoint_Null_Stream((AllocationLength - BytesTransferred), NULL);
  200 + Endpoint_ClearIN();
  201 +
  202 + /* Succeed the command and update the bytes transferred counter */
  203 + MSInterfaceInfo->State.CommandBlock.DataTransferLength -= BytesTransferred;
  204 +
  205 + return true;
  206 +}
  207 +
  208 +/** Command processing for an issued SCSI READ CAPACITY (10) command. This command returns information about the device's capacity
  209 + * on the selected Logical Unit (drive), as a number of OS-sized blocks.
  210 + *
  211 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  212 + *
  213 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  214 + */
  215 +static bool SCSI_Command_Read_Capacity_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  216 +{
  217 + uint32_t LastBlockAddressInLUN = (LUN_MEDIA_BLOCKS - 1);
  218 + uint32_t MediaBlockSize = VIRTUAL_MEMORY_BLOCK_SIZE;
  219 +
  220 + Endpoint_Write_Stream_BE(&LastBlockAddressInLUN, sizeof(LastBlockAddressInLUN), NULL);
  221 + Endpoint_Write_Stream_BE(&MediaBlockSize, sizeof(MediaBlockSize), NULL);
  222 + Endpoint_ClearIN();
  223 +
  224 + /* Succeed the command and update the bytes transferred counter */
  225 + MSInterfaceInfo->State.CommandBlock.DataTransferLength -= 8;
  226 +
  227 + return true;
  228 +}
  229 +
  230 +/** Command processing for an issued SCSI SEND DIAGNOSTIC command. This command performs a quick check of the Dataflash ICs on the
  231 + * board, and indicates if they are present and functioning correctly. Only the Self-Test portion of the diagnostic command is
  232 + * supported.
  233 + *
  234 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  235 + *
  236 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  237 + */
  238 +static bool SCSI_Command_Send_Diagnostic(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  239 +{
  240 + /* Check to see if the SELF TEST bit is not set */
  241 + if (!(MSInterfaceInfo->State.CommandBlock.SCSICommandData[1] & (1 << 2)))
  242 + {
  243 + /* Only self-test supported - update SENSE key and fail the command */
  244 + SCSI_SET_SENSE(SCSI_SENSE_KEY_ILLEGAL_REQUEST,
  245 + SCSI_ASENSE_INVALID_FIELD_IN_CDB,
  246 + SCSI_ASENSEQ_NO_QUALIFIER);
  247 +
  248 + return false;
  249 + }
  250 +
  251 + /* Check to see if all attached Dataflash ICs are functional */
  252 + if (!(DataflashManager_CheckDataflashOperation()))
  253 + {
  254 + /* Update SENSE key with a hardware error condition and return command fail */
  255 + SCSI_SET_SENSE(SCSI_SENSE_KEY_HARDWARE_ERROR,
  256 + SCSI_ASENSE_NO_ADDITIONAL_INFORMATION,
  257 + SCSI_ASENSEQ_NO_QUALIFIER);
  258 +
  259 + return false;
  260 + }
  261 +
  262 + /* Succeed the command and update the bytes transferred counter */
  263 + MSInterfaceInfo->State.CommandBlock.DataTransferLength = 0;
  264 +
  265 + return true;
  266 +}
  267 +
  268 +/** Command processing for an issued SCSI READ (10) or WRITE (10) command. This command reads in the block start address
  269 + * and total number of blocks to process, then calls the appropriate low-level Dataflash routine to handle the actual
  270 + * reading and writing of the data.
  271 + *
  272 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  273 + * \param[in] IsDataRead Indicates if the command is a READ (10) command or WRITE (10) command (DATA_READ or DATA_WRITE)
  274 + *
  275 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  276 + */
  277 +static bool SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  278 + const bool IsDataRead)
  279 +{
  280 + uint32_t BlockAddress;
  281 + uint16_t TotalBlocks;
  282 +
  283 + /* Check if the disk is write protected or not */
  284 + if ((IsDataRead == DATA_WRITE) && DISK_READ_ONLY)
  285 + {
  286 + /* Block address is invalid, update SENSE key and return command fail */
  287 + SCSI_SET_SENSE(SCSI_SENSE_KEY_DATA_PROTECT,
  288 + SCSI_ASENSE_WRITE_PROTECTED,
  289 + SCSI_ASENSEQ_NO_QUALIFIER);
  290 +
  291 + return false;
  292 + }
  293 +
  294 + /* Load in the 32-bit block address (SCSI uses big-endian, so have to reverse the byte order) */
  295 + BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
  296 +
  297 + /* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
  298 + TotalBlocks = SwapEndian_16(*(uint16_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
  299 +
  300 + /* Check if the block address is outside the maximum allowable value for the LUN */
  301 + if (BlockAddress >= LUN_MEDIA_BLOCKS)
  302 + {
  303 + /* Block address is invalid, update SENSE key and return command fail */
  304 + SCSI_SET_SENSE(SCSI_SENSE_KEY_ILLEGAL_REQUEST,
  305 + SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE,
  306 + SCSI_ASENSEQ_NO_QUALIFIER);
  307 +
  308 + return false;
  309 + }
  310 +
  311 + #if (TOTAL_LUNS > 1)
  312 + /* Adjust the given block address to the real media address based on the selected LUN */
  313 + BlockAddress += ((uint32_t)MSInterfaceInfo->State.CommandBlock.LUN * LUN_MEDIA_BLOCKS);
  314 + #endif
  315 +
  316 + /* Determine if the packet is a READ (10) or WRITE (10) command, call appropriate function */
  317 + if (IsDataRead == DATA_READ)
  318 + DataflashManager_ReadBlocks(MSInterfaceInfo, BlockAddress, TotalBlocks);
  319 + else
  320 + DataflashManager_WriteBlocks(MSInterfaceInfo, BlockAddress, TotalBlocks);
  321 +
  322 + /* Update the bytes transferred counter and succeed the command */
  323 + MSInterfaceInfo->State.CommandBlock.DataTransferLength -= ((uint32_t)TotalBlocks * VIRTUAL_MEMORY_BLOCK_SIZE);
  324 +
  325 + return true;
  326 +}
  327 +
  328 +/** Command processing for an issued SCSI MODE SENSE (6) command. This command returns various informational pages about
  329 + * the SCSI device, as well as the device's Write Protect status.
  330 + *
  331 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface structure that the command is associated with
  332 + *
  333 + * \return Boolean \c true if the command completed successfully, \c false otherwise.
  334 + */
  335 +static bool SCSI_Command_ModeSense_6(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  336 +{
  337 + /* Send an empty header response with the Write Protect flag status */
  338 + Endpoint_Write_8(0x00);
  339 + Endpoint_Write_8(0x00);
  340 + Endpoint_Write_8(DISK_READ_ONLY ? 0x80 : 0x00);
  341 + Endpoint_Write_8(0x00);
  342 + Endpoint_ClearIN();
  343 +
  344 + /* Update the bytes transferred counter and succeed the command */
  345 + MSInterfaceInfo->State.CommandBlock.DataTransferLength -= 4;
  346 +
  347 + return true;
  348 +}
  349 +
... ...
Projet_USBKEY_MassStorageKeyboard/Lib/SCSI.h 0 → 100644
... ... @@ -0,0 +1,89 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 +
  12 + Permission to use, copy, modify, distribute, and sell this
  13 + software and its documentation for any purpose is hereby granted
  14 + without fee, provided that the above copyright notice appear in
  15 + all copies and that both that the copyright notice and this
  16 + permission notice and warranty disclaimer appear in supporting
  17 + documentation, and that the name of the author not be used in
  18 + advertising or publicity pertaining to distribution of the
  19 + software without specific, written prior permission.
  20 +
  21 + The author disclaims all warranties with regard to this
  22 + software, including all implied warranties of merchantability
  23 + and fitness. In no event shall the author be liable for any
  24 + special, indirect or consequential damages or any damages
  25 + whatsoever resulting from loss of use, data or profits, whether
  26 + in an action of contract, negligence or other tortious action,
  27 + arising out of or in connection with the use or performance of
  28 + this software.
  29 +*/
  30 +
  31 +/** \file
  32 + *
  33 + * Header file for SCSI.c.
  34 + */
  35 +
  36 +#ifndef _SCSI_H_
  37 +#define _SCSI_H_
  38 +
  39 + /* Includes: */
  40 + #include <avr/io.h>
  41 + #include <avr/pgmspace.h>
  42 +
  43 + #include <LUFA/Drivers/USB/USB.h>
  44 +
  45 + #include "../MassStorageKeyboard.h"
  46 + #include "../Descriptors.h"
  47 + #include "DataflashManager.h"
  48 + #include "Config/AppConfig.h"
  49 +
  50 + /* Macros: */
  51 + /** Macro to set the current SCSI sense data to the given key, additional sense code and additional sense qualifier. This
  52 + * is for convenience, as it allows for all three sense values (returned upon request to the host to give information about
  53 + * the last command failure) in a quick and easy manner.
  54 + *
  55 + * \param[in] Key New SCSI sense key to set the sense code to
  56 + * \param[in] Acode New SCSI additional sense key to set the additional sense code to
  57 + * \param[in] Aqual New SCSI additional sense key qualifier to set the additional sense qualifier code to
  58 + */
  59 + #define SCSI_SET_SENSE(Key, Acode, Aqual) do { SenseData.SenseKey = (Key); \
  60 + SenseData.AdditionalSenseCode = (Acode); \
  61 + SenseData.AdditionalSenseQualifier = (Aqual); } while (0)
  62 +
  63 + /** Macro for the \ref SCSI_Command_ReadWrite_10() function, to indicate that data is to be read from the storage medium. */
  64 + #define DATA_READ true
  65 +
  66 + /** Macro for the \ref SCSI_Command_ReadWrite_10() function, to indicate that data is to be written to the storage medium. */
  67 + #define DATA_WRITE false
  68 +
  69 + /** Value for the DeviceType entry in the SCSI_Inquiry_Response_t enum, indicating a Block Media device. */
  70 + #define DEVICE_TYPE_BLOCK 0x00
  71 +
  72 + /** Value for the DeviceType entry in the SCSI_Inquiry_Response_t enum, indicating a CD-ROM device. */
  73 + #define DEVICE_TYPE_CDROM 0x05
  74 +
  75 + /* Function Prototypes: */
  76 + bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  77 +
  78 + #if defined(INCLUDE_FROM_SCSI_C)
  79 + static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  80 + static bool SCSI_Command_Request_Sense(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  81 + static bool SCSI_Command_Read_Capacity_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  82 + static bool SCSI_Command_Send_Diagnostic(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  83 + static bool SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo,
  84 + const bool IsDataRead);
  85 + static bool SCSI_Command_ModeSense_6(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  86 + #endif
  87 +
  88 +#endif
  89 +
... ...
Projet_USBKEY_MassStorageKeyboard/MassStorageKeyboard.c 0 → 100644
... ... @@ -0,0 +1,270 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 + Copyright 2010 Matthias Hullin (lufa [at] matthias [dot] hullin [dot] net)
  12 +
  13 + Permission to use, copy, modify, distribute, and sell this
  14 + software and its documentation for any purpose is hereby granted
  15 + without fee, provided that the above copyright notice appear in
  16 + all copies and that both that the copyright notice and this
  17 + permission notice and warranty disclaimer appear in supporting
  18 + documentation, and that the name of the author not be used in
  19 + advertising or publicity pertaining to distribution of the
  20 + software without specific, written prior permission.
  21 +
  22 + The author disclaims all warranties with regard to this
  23 + software, including all implied warranties of merchantability
  24 + and fitness. In no event shall the author be liable for any
  25 + special, indirect or consequential damages or any damages
  26 + whatsoever resulting from loss of use, data or profits, whether
  27 + in an action of contract, negligence or other tortious action,
  28 + arising out of or in connection with the use or performance of
  29 + this software.
  30 +*/
  31 +
  32 +/** \file
  33 + *
  34 + * Main source file for the MassStorageKeyboard demo. This file contains the main tasks of
  35 + * the demo and is responsible for the initial application hardware configuration.
  36 + */
  37 +
  38 +#include "MassStorageKeyboard.h"
  39 +
  40 +/** LUFA Mass Storage Class driver interface configuration and state information. This structure is
  41 + * passed to all Mass Storage Class driver functions, so that multiple instances of the same class
  42 + * within a device can be differentiated from one another.
  43 + */
  44 +USB_ClassInfo_MS_Device_t Disk_MS_Interface =
  45 + {
  46 + .Config =
  47 + {
  48 + .InterfaceNumber = INTERFACE_ID_MassStorage,
  49 + .DataINEndpoint =
  50 + {
  51 + .Address = MASS_STORAGE_IN_EPADDR,
  52 + .Size = MASS_STORAGE_IO_EPSIZE,
  53 + .Banks = 1,
  54 + },
  55 + .DataOUTEndpoint =
  56 + {
  57 + .Address = MASS_STORAGE_OUT_EPADDR,
  58 + .Size = MASS_STORAGE_IO_EPSIZE,
  59 + .Banks = 1,
  60 + },
  61 + .TotalLUNs = TOTAL_LUNS,
  62 + },
  63 + };
  64 +
  65 +/** Buffer to hold the previously generated Keyboard HID report, for comparison purposes inside the HID class driver. */
  66 +static uint8_t PrevKeyboardHIDReportBuffer[sizeof(USB_KeyboardReport_Data_t)];
  67 +
  68 +/** LUFA HID Class driver interface configuration and state information. This structure is
  69 + * passed to all HID Class driver functions, so that multiple instances of the same class
  70 + * within a device can be differentiated from one another.
  71 + */
  72 +USB_ClassInfo_HID_Device_t Keyboard_HID_Interface =
  73 + {
  74 + .Config =
  75 + {
  76 + .InterfaceNumber = INTERFACE_ID_Keyboard,
  77 + .ReportINEndpoint =
  78 + {
  79 + .Address = KEYBOARD_EPADDR,
  80 + .Size = KEYBOARD_EPSIZE,
  81 + .Banks = 1,
  82 + },
  83 + .PrevReportINBuffer = PrevKeyboardHIDReportBuffer,
  84 + .PrevReportINBufferSize = sizeof(PrevKeyboardHIDReportBuffer),
  85 + },
  86 + };
  87 +
  88 +/** Main program entry point. This routine contains the overall program flow, including initial
  89 + * setup of all components and the main program loop.
  90 + */
  91 +int main(void)
  92 +{
  93 + SetupHardware();
  94 +
  95 + LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
  96 + GlobalInterruptEnable();
  97 +
  98 + for (;;)
  99 + {
  100 + MS_Device_USBTask(&Disk_MS_Interface);
  101 + HID_Device_USBTask(&Keyboard_HID_Interface);
  102 + USB_USBTask();
  103 + }
  104 +}
  105 +
  106 +/** Configures the board hardware and chip peripherals for the demo's functionality. */
  107 +void SetupHardware(void)
  108 +{
  109 +#if (ARCH == ARCH_AVR8)
  110 + /* Disable watchdog if enabled by bootloader/fuses */
  111 + MCUSR &= ~(1 << WDRF);
  112 + wdt_disable();
  113 +
  114 + /* Disable clock division */
  115 + clock_prescale_set(clock_div_1);
  116 +#elif (ARCH == ARCH_XMEGA)
  117 + /* Start the PLL to multiply the 2MHz RC oscillator to 32MHz and switch the CPU core to run from it */
  118 + XMEGACLK_StartPLL(CLOCK_SRC_INT_RC2MHZ, 2000000, F_CPU);
  119 + XMEGACLK_SetCPUClockSource(CLOCK_SRC_PLL);
  120 +
  121 + /* Start the 32MHz internal RC oscillator and start the DFLL to increase it to 48MHz using the USB SOF as a reference */
  122 + XMEGACLK_StartInternalOscillator(CLOCK_SRC_INT_RC32MHZ);
  123 + XMEGACLK_StartDFLL(CLOCK_SRC_INT_RC32MHZ, DFLL_REF_INT_USBSOF, F_USB);
  124 +
  125 + PMIC.CTRL = PMIC_LOLVLEN_bm | PMIC_MEDLVLEN_bm | PMIC_HILVLEN_bm;
  126 +#endif
  127 +
  128 + /* Hardware Initialization */
  129 + LEDs_Init();
  130 + Joystick_Init();
  131 + Buttons_Init();
  132 + Dataflash_Init();
  133 + USB_Init();
  134 +
  135 + /* Check if the Dataflash is working, abort if not */
  136 + if (!(DataflashManager_CheckDataflashOperation()))
  137 + {
  138 + LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
  139 + for(;;);
  140 + }
  141 +
  142 + /* Clear Dataflash sector protections, if enabled */
  143 + DataflashManager_ResetDataflashProtections();
  144 +}
  145 +
  146 +/** Event handler for the library USB Connection event. */
  147 +void EVENT_USB_Device_Connect(void)
  148 +{
  149 + LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
  150 +}
  151 +
  152 +/** Event handler for the library USB Disconnection event. */
  153 +void EVENT_USB_Device_Disconnect(void)
  154 +{
  155 + LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
  156 +}
  157 +
  158 +/** Event handler for the library USB Configuration Changed event. */
  159 +void EVENT_USB_Device_ConfigurationChanged(void)
  160 +{
  161 + bool ConfigSuccess = true;
  162 +
  163 + ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface);
  164 + ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
  165 +
  166 + USB_Device_EnableSOFEvents();
  167 +
  168 + LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
  169 +}
  170 +
  171 +/** Event handler for the library USB Control Request reception event. */
  172 +void EVENT_USB_Device_ControlRequest(void)
  173 +{
  174 + MS_Device_ProcessControlRequest(&Disk_MS_Interface);
  175 + HID_Device_ProcessControlRequest(&Keyboard_HID_Interface);
  176 +}
  177 +
  178 +/** Mass Storage class driver callback function the reception of SCSI commands from the host, which must be processed.
  179 + *
  180 + * \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface configuration structure being referenced
  181 + */
  182 +bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
  183 +{
  184 + bool CommandSuccess;
  185 +
  186 + LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
  187 + CommandSuccess = SCSI_DecodeSCSICommand(MSInterfaceInfo);
  188 + LEDs_SetAllLEDs(LEDMASK_USB_READY);
  189 +
  190 + return CommandSuccess;
  191 +}
  192 +
  193 +/** Event handler for the USB device Start Of Frame event. */
  194 +void EVENT_USB_Device_StartOfFrame(void)
  195 +{
  196 + HID_Device_MillisecondElapsed(&Keyboard_HID_Interface);
  197 +}
  198 +
  199 +/** HID class driver callback function for the creation of HID reports to the host.
  200 + *
  201 + * \param[in] HIDInterfaceInfo Pointer to the HID class interface configuration structure being referenced
  202 + * \param[in,out] ReportID Report ID requested by the host if non-zero, otherwise callback should set to the generated report ID
  203 + * \param[in] ReportType Type of the report to create, either HID_REPORT_ITEM_In or HID_REPORT_ITEM_Feature
  204 + * \param[out] ReportData Pointer to a buffer where the created report should be stored
  205 + * \param[out] ReportSize Number of bytes written in the report (or zero if no report is to be sent)
  206 + *
  207 + * \return Boolean \c true to force the sending of the report, \c false to let the library determine if it needs to be sent
  208 + */
  209 +bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,
  210 + uint8_t* const ReportID,
  211 + const uint8_t ReportType,
  212 + void* ReportData,
  213 + uint16_t* const ReportSize)
  214 +{
  215 + USB_KeyboardReport_Data_t* KeyboardReport = (USB_KeyboardReport_Data_t*)ReportData;
  216 +
  217 + uint8_t JoyStatus_LCL = Joystick_GetStatus();
  218 + uint8_t ButtonStatus_LCL = Buttons_GetStatus();
  219 +
  220 + KeyboardReport->Modifier = HID_KEYBOARD_MODIFIER_LEFTSHIFT;
  221 +
  222 + if (JoyStatus_LCL & JOY_UP)
  223 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_A;
  224 + else if (JoyStatus_LCL & JOY_DOWN)
  225 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_B;
  226 +
  227 + if (JoyStatus_LCL & JOY_LEFT)
  228 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_C;
  229 + else if (JoyStatus_LCL & JOY_RIGHT)
  230 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_D;
  231 +
  232 + if (JoyStatus_LCL & JOY_PRESS)
  233 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_E;
  234 +
  235 + if (ButtonStatus_LCL & BUTTONS_BUTTON1)
  236 + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_F;
  237 +
  238 + *ReportSize = sizeof(USB_KeyboardReport_Data_t);
  239 + return false;
  240 +}
  241 +
  242 +/** HID class driver callback function for the processing of HID reports from the host.
  243 + *
  244 + * \param[in] HIDInterfaceInfo Pointer to the HID class interface configuration structure being referenced
  245 + * \param[in] ReportID Report ID of the received report from the host
  246 + * \param[in] ReportType The type of report that the host has sent, either HID_REPORT_ITEM_Out or HID_REPORT_ITEM_Feature
  247 + * \param[in] ReportData Pointer to a buffer where the received report has been stored
  248 + * \param[in] ReportSize Size in bytes of the received HID report
  249 + */
  250 +void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,
  251 + const uint8_t ReportID,
  252 + const uint8_t ReportType,
  253 + const void* ReportData,
  254 + const uint16_t ReportSize)
  255 +{
  256 + uint8_t LEDMask = LEDS_NO_LEDS;
  257 + uint8_t* LEDReport = (uint8_t*)ReportData;
  258 +
  259 + if (*LEDReport & HID_KEYBOARD_LED_NUMLOCK)
  260 + LEDMask |= LEDS_LED1;
  261 +
  262 + if (*LEDReport & HID_KEYBOARD_LED_CAPSLOCK)
  263 + LEDMask |= LEDS_LED3;
  264 +
  265 + if (*LEDReport & HID_KEYBOARD_LED_SCROLLLOCK)
  266 + LEDMask |= LEDS_LED4;
  267 +
  268 + LEDs_SetAllLEDs(LEDMask);
  269 +}
  270 +
... ...
Projet_USBKEY_MassStorageKeyboard/MassStorageKeyboard.h 0 → 100644
... ... @@ -0,0 +1,100 @@
  1 +/*
  2 + LUFA Library
  3 + Copyright (C) Dean Camera, 2017.
  4 +
  5 + dean [at] fourwalledcubicle [dot] com
  6 + www.lufa-lib.org
  7 +*/
  8 +
  9 +/*
  10 + Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  11 + Copyright 2010 Matthias Hullin (lufa [at] matthias [dot] hullin [dot] net)
  12 +
  13 + Permission to use, copy, modify, distribute, and sell this
  14 + software and its documentation for any purpose is hereby granted
  15 + without fee, provided that the above copyright notice appear in
  16 + all copies and that both that the copyright notice and this
  17 + permission notice and warranty disclaimer appear in supporting
  18 + documentation, and that the name of the author not be used in
  19 + advertising or publicity pertaining to distribution of the
  20 + software without specific, written prior permission.
  21 +
  22 + The author disclaims all warranties with regard to this
  23 + software, including all implied warranties of merchantability
  24 + and fitness. In no event shall the author be liable for any
  25 + special, indirect or consequential damages or any damages
  26 + whatsoever resulting from loss of use, data or profits, whether
  27 + in an action of contract, negligence or other tortious action,
  28 + arising out of or in connection with the use or performance of
  29 + this software.
  30 +*/
  31 +
  32 +/** \file
  33 + *
  34 + * Header file for MassStorageKeyboard.c.
  35 + */
  36 +
  37 +#ifndef _MASS_STORAGE_KEYBOARD_H_
  38 +#define _MASS_STORAGE_KEYBOARD_H_
  39 +
  40 + /* Includes: */
  41 + #include <avr/io.h>
  42 + #include <avr/wdt.h>
  43 + #include <avr/power.h>
  44 + #include <avr/interrupt.h>
  45 + #include <avr/interrupt.h>
  46 + #include <stdbool.h>
  47 + #include <string.h>
  48 +
  49 + #include "Descriptors.h"
  50 +
  51 + #include "Lib/SCSI.h"
  52 + #include "Lib/DataflashManager.h"
  53 + #include "Config/AppConfig.h"
  54 +
  55 + #include <LUFA/Drivers/Board/Joystick.h>
  56 + #include <LUFA/Drivers/Board/LEDs.h>
  57 + #include <LUFA/Drivers/Board/Buttons.h>
  58 + #include <LUFA/Drivers/USB/USB.h>
  59 + #include <LUFA/Platform/Platform.h>
  60 +
  61 + /* Macros: */
  62 + /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
  63 + #define LEDMASK_USB_NOTREADY LEDS_LED1
  64 +
  65 + /** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
  66 + #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)
  67 +
  68 + /** LED mask for the library LED driver, to indicate that the USB interface is ready. */
  69 + #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)
  70 +
  71 + /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
  72 + #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
  73 +
  74 + /** LED mask for the library LED driver, to indicate that the USB interface is busy. */
  75 + #define LEDMASK_USB_BUSY LEDS_LED2
  76 +
  77 + /* Function Prototypes: */
  78 + void SetupHardware(void);
  79 +
  80 + void EVENT_USB_Device_Connect(void);
  81 + void EVENT_USB_Device_Disconnect(void);
  82 + void EVENT_USB_Device_ConfigurationChanged(void);
  83 + void EVENT_USB_Device_ControlRequest(void);
  84 + void EVENT_USB_Device_StartOfFrame(void);
  85 +
  86 + bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
  87 +
  88 + bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,
  89 + uint8_t* const ReportID,
  90 + const uint8_t ReportType,
  91 + void* ReportData,
  92 + uint16_t* const ReportSize);
  93 + void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,
  94 + const uint8_t ReportID,
  95 + const uint8_t ReportType,
  96 + const void* ReportData,
  97 + const uint16_t ReportSize);
  98 +
  99 +#endif
  100 +
... ...
Projet_USBKEY_MassStorageKeyboard/MassStorageKeyboard.txt 0 → 100644
... ... @@ -0,0 +1,100 @@
  1 +/** \file
  2 + *
  3 + * This file contains special DoxyGen information for the generation of the main page and other special
  4 + * documentation pages. It is not a project source file.
  5 + */
  6 +
  7 +/** \mainpage Combined Mass Storage and Keyboard Device Demo
  8 + *
  9 + * \section Sec_Compat Demo Compatibility:
  10 + *
  11 + * The following list indicates what microcontrollers are compatible with this demo.
  12 + *
  13 + * \li Series 7 USB AVRs (AT90USBxxx7)
  14 + * \li Series 6 USB AVRs (AT90USBxxx6)
  15 + * \li Series 4 USB AVRs (ATMEGAxxU4)
  16 + * \li Series 2 USB AVRs (AT90USBxx2, ATMEGAxxU2)
  17 + * \li Series AU XMEGA AVRs (ATXMEGAxxxAxU)
  18 + * \li Series B XMEGA AVRs (ATXMEGAxxxBx)
  19 + * \li Series C XMEGA AVRs (ATXMEGAxxxCx)
  20 + *
  21 + * \section Sec_Info USB Information:
  22 + *
  23 + * The following table gives a rundown of the USB utilization of this demo.
  24 + *
  25 + * <table>
  26 + * <tr>
  27 + * <td><b>USB Mode:</b></td>
  28 + * <td>Device</td>
  29 + * </tr>
  30 + * <tr>
  31 + * <td><b>USB Classes:</b></td>
  32 + * <td>Mass Storage Device \n
  33 + * Human Interface Device</td>
  34 + * </tr>
  35 + * <tr>
  36 + * <td><b>USB Subclasses:</b></td>
  37 + * <td>Bulk-Only Transport \n
  38 + * Keyboard Subclass</td>
  39 + * </tr>
  40 + * <tr>
  41 + * <td><b>Relevant Standards:</b></td>
  42 + * <td>USBIF Mass Storage Standard \n
  43 + * USB Bulk-Only Transport Standard \n
  44 + * SCSI Primary Commands Specification \n
  45 + * SCSI Block Commands Specification \n
  46 + * USBIF HID Specification \n
  47 + * USBIF HID Usage Tables</td>
  48 + * </tr>
  49 + * <tr>
  50 + * <td><b>Supported USB Speeds:</b></td>
  51 + * <td>Full Speed Mode</td>
  52 + * </tr>
  53 + * </table>
  54 + *
  55 + * \section Sec_Description Project Description:
  56 + *
  57 + * Combined Mass Storage and Keyboard demonstration application. This gives a
  58 + * simple reference application for implementing a dual class USB Mass Storage
  59 + * and USB HID Keyboard device using the basic USB UFI and HID drivers in all
  60 + * modern OSes (i.e. no special drivers required).
  61 + *
  62 + * On start-up the system will automatically enumerate and function as an
  63 + * external mass storage device (which may be formatted and used in the same
  64 + * manner as commercial USB Mass Storage devices) and a USB keyboard.
  65 + *
  66 + * You will need to format the mass storage drive upon first run of this
  67 + * demonstration - as the device acts only as a data block transport between
  68 + * the host and the storage media, it does not matter what file system is used,
  69 + * as the data interpretation is performed by the host and not the USB device.
  70 + *
  71 + * Keys on the USB keyboard can be pressed by moving the board's Joystick.
  72 + *
  73 + * The USB control endpoint is managed entirely by the library using endpoint
  74 + * interrupts, as the INTERRUPT_CONTROL_ENDPOINT option is enabled. This allows for
  75 + * the host to reset the Mass Storage device state during long transfers without
  76 + * the need for complicated polling logic.
  77 + *
  78 + * \section Sec_Options Project Options
  79 + *
  80 + * The following defines can be found in this demo, which can control the demo behaviour when defined, or changed in value.
  81 + *
  82 + * <table>
  83 + * <tr>
  84 + * <th><b>Define Name:</b></th>
  85 + * <th><b>Location:</b></th>
  86 + * <th><b>Description:</b></th>
  87 + * </tr>
  88 + * <tr>
  89 + * <td>TOTAL_LUNS</td>
  90 + * <td>AppConfig.h</td>
  91 + * <td>Total number of Logical Units (drives) in the device. The total device capacity is shared equally between each drive -
  92 + * this can be set to any positive non-zero amount.</td>
  93 + * </tr>
  94 + * <tr>
  95 + * <td>DISK_READ_ONLY</td>
  96 + * <td>AppConfig.h</td>
  97 + * <td>Configuration define, indicating if the disk should be write protected or not.</td>
  98 + * </tr>
  99 + */
  100 +
... ...
Projet_USBKEY_MassStorageKeyboard/asf.xml 0 → 100644
... ... @@ -0,0 +1,70 @@
  1 +<asf xmlversion="1.0">
  2 + <project caption="Mass Storage and HID Keyboard Device Demo (Class Driver APIs)" id="lufa.demos.device.class.mass_storage_keyboard.example.avr8">
  3 + <require idref="lufa.demos.device.class.mass_storage_keyboard"/>
  4 + <require idref="lufa.boards.dummy.avr8"/>
  5 + <generator value="as5_8"/>
  6 +
  7 + <device-support value="at90usb1287"/>
  8 + <config name="lufa.drivers.board.name" value="none"/>
  9 +
  10 + <build type="define" name="F_CPU" value="16000000UL"/>
  11 + <build type="define" name="F_USB" value="16000000UL"/>
  12 + </project>
  13 +
  14 + <project caption="Mass Storage and HID Keyboard Device Demo (Class Driver APIs)" id="lufa.demos.device.class.mass_storage_keyboard.example.xmega">
  15 + <require idref="lufa.demos.device.class.mass_storage_keyboard"/>
  16 + <require idref="lufa.boards.dummy.xmega"/>
  17 + <generator value="as5_8"/>
  18 +
  19 + <device-support value="atxmega128a1u"/>
  20 + <config name="lufa.drivers.board.name" value="none"/>
  21 +
  22 + <build type="define" name="F_CPU" value="32000000UL"/>
  23 + <build type="define" name="F_USB" value="48000000UL"/>
  24 + </project>
  25 +
  26 + <module type="application" id="lufa.demos.device.class.mass_storage_keyboard" caption="Mass Storage and HID Keyboard Device Demo (Class Driver APIs)">
  27 + <info type="description" value="summary">
  28 + Mass Storage and Keyboard device demo, implementing a basic USB storage disk using a Dataflash memory IC, and a basic HID keyboard. This demo uses the user-friendly USB Class Driver APIs to provide a simple, abstracted interface into the USB stack.
  29 + </info>
  30 +
  31 + <info type="gui-flag" value="move-to-root"/>
  32 +
  33 + <info type="keyword" value="Technology">
  34 + <keyword value="Low Level APIs"/>
  35 + <keyword value="USB Device"/>
  36 + <keyword value="HID Class"/>
  37 + <keyword value="Mass Storage Class"/>
  38 + </info>
  39 +
  40 + <device-support-alias value="lufa_avr8"/>
  41 + <device-support-alias value="lufa_xmega"/>
  42 + <device-support-alias value="lufa_uc3"/>
  43 +
  44 + <build type="distribute" subtype="user-file" value="doxyfile"/>
  45 + <build type="distribute" subtype="user-file" value="MassStorageKeyboard.txt"/>
  46 +
  47 + <build type="c-source" value="MassStorageKeyboard.c"/>
  48 + <build type="c-source" value="Descriptors.c"/>
  49 + <build type="c-source" value="Lib/DataflashManager.c"/>
  50 + <build type="c-source" value="Lib/SCSI.c"/>
  51 + <build type="header-file" value="MassStorageKeyboard.h"/>
  52 + <build type="header-file" value="Descriptors.h"/>
  53 + <build type="header-file" value="Lib/DataflashManager.h"/>
  54 + <build type="header-file" value="Lib/SCSI.h"/>
  55 +
  56 + <build type="module-config" subtype="path" value="Config"/>
  57 + <build type="module-config" subtype="required-header-file" value="AppConfig.h"/>
  58 + <build type="header-file" value="Config/AppConfig.h"/>
  59 + <build type="header-file" value="Config/LUFAConfig.h"/>
  60 +
  61 + <require idref="lufa.common"/>
  62 + <require idref="lufa.platform"/>
  63 + <require idref="lufa.drivers.usb"/>
  64 + <require idref="lufa.drivers.board"/>
  65 + <require idref="lufa.drivers.board.leds"/>
  66 + <require idref="lufa.drivers.board.buttons"/>
  67 + <require idref="lufa.drivers.board.joystick"/>
  68 + <require idref="lufa.drivers.board.dataflash"/>
  69 + </module>
  70 +</asf>
... ...
Projet_USBKEY_MassStorageKeyboard/doxyfile 0 → 100644
... ... @@ -0,0 +1,2395 @@
  1 +# Doxyfile 1.8.9
  2 +
  3 +# This file describes the settings to be used by the documentation system
  4 +# doxygen (www.doxygen.org) for a project.
  5 +#
  6 +# All text after a double hash (##) is considered a comment and is placed in
  7 +# front of the TAG it is preceding.
  8 +#
  9 +# All text after a single hash (#) is considered a comment and will be ignored.
  10 +# The format is:
  11 +# TAG = value [value, ...]
  12 +# For lists, items can also be appended using:
  13 +# TAG += value [value, ...]
  14 +# Values that contain spaces should be placed between quotes (\" \").
  15 +
  16 +#---------------------------------------------------------------------------
  17 +# Project related configuration options
  18 +#---------------------------------------------------------------------------
  19 +
  20 +# This tag specifies the encoding used for all characters in the config file
  21 +# that follow. The default is UTF-8 which is also the encoding used for all text
  22 +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
  23 +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
  24 +# for the list of possible encodings.
  25 +# The default value is: UTF-8.
  26 +
  27 +DOXYFILE_ENCODING = UTF-8
  28 +
  29 +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
  30 +# double-quotes, unless you are using Doxywizard) that should identify the
  31 +# project for which the documentation is generated. This name is used in the
  32 +# title of most generated pages and in a few other places.
  33 +# The default value is: My Project.
  34 +
  35 +PROJECT_NAME = "LUFA Library - Combined Mass Storage and Keyboard Device Demo"
  36 +
  37 +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
  38 +# could be handy for archiving the generated documentation or if some version
  39 +# control system is used.
  40 +
  41 +PROJECT_NUMBER =
  42 +
  43 +# Using the PROJECT_BRIEF tag one can provide an optional one line description
  44 +# for a project that appears at the top of each page and should give viewer a
  45 +# quick idea about the purpose of the project. Keep the description short.
  46 +
  47 +PROJECT_BRIEF =
  48 +
  49 +# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
  50 +# in the documentation. The maximum height of the logo should not exceed 55
  51 +# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
  52 +# the logo to the output directory.
  53 +
  54 +PROJECT_LOGO =
  55 +
  56 +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
  57 +# into which the generated documentation will be written. If a relative path is
  58 +# entered, it will be relative to the location where doxygen was started. If
  59 +# left blank the current directory will be used.
  60 +
  61 +OUTPUT_DIRECTORY = ./Documentation/
  62 +
  63 +# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
  64 +# directories (in 2 levels) under the output directory of each output format and
  65 +# will distribute the generated files over these directories. Enabling this
  66 +# option can be useful when feeding doxygen a huge amount of source files, where
  67 +# putting all generated files in the same directory would otherwise causes
  68 +# performance problems for the file system.
  69 +# The default value is: NO.
  70 +
  71 +CREATE_SUBDIRS = NO
  72 +
  73 +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
  74 +# characters to appear in the names of generated files. If set to NO, non-ASCII
  75 +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
  76 +# U+3044.
  77 +# The default value is: NO.
  78 +
  79 +ALLOW_UNICODE_NAMES = NO
  80 +
  81 +# The OUTPUT_LANGUAGE tag is used to specify the language in which all
  82 +# documentation generated by doxygen is written. Doxygen will use this
  83 +# information to generate all constant output in the proper language.
  84 +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
  85 +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
  86 +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
  87 +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
  88 +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
  89 +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
  90 +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
  91 +# Ukrainian and Vietnamese.
  92 +# The default value is: English.
  93 +
  94 +OUTPUT_LANGUAGE = English
  95 +
  96 +# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
  97 +# descriptions after the members that are listed in the file and class
  98 +# documentation (similar to Javadoc). Set to NO to disable this.
  99 +# The default value is: YES.
  100 +
  101 +BRIEF_MEMBER_DESC = YES
  102 +
  103 +# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
  104 +# description of a member or function before the detailed description
  105 +#
  106 +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
  107 +# brief descriptions will be completely suppressed.
  108 +# The default value is: YES.
  109 +
  110 +REPEAT_BRIEF = YES
  111 +
  112 +# This tag implements a quasi-intelligent brief description abbreviator that is
  113 +# used to form the text in various listings. Each string in this list, if found
  114 +# as the leading text of the brief description, will be stripped from the text
  115 +# and the result, after processing the whole list, is used as the annotated
  116 +# text. Otherwise, the brief description is used as-is. If left blank, the
  117 +# following values are used ($name is automatically replaced with the name of
  118 +# the entity):The $name class, The $name widget, The $name file, is, provides,
  119 +# specifies, contains, represents, a, an and the.
  120 +
  121 +ABBREVIATE_BRIEF = "The $name class" \
  122 + "The $name widget" \
  123 + "The $name file" \
  124 + is \
  125 + provides \
  126 + specifies \
  127 + contains \
  128 + represents \
  129 + a \
  130 + an \
  131 + the
  132 +
  133 +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
  134 +# doxygen will generate a detailed section even if there is only a brief
  135 +# description.
  136 +# The default value is: NO.
  137 +
  138 +ALWAYS_DETAILED_SEC = NO
  139 +
  140 +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
  141 +# inherited members of a class in the documentation of that class as if those
  142 +# members were ordinary class members. Constructors, destructors and assignment
  143 +# operators of the base classes will not be shown.
  144 +# The default value is: NO.
  145 +
  146 +INLINE_INHERITED_MEMB = NO
  147 +
  148 +# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
  149 +# before files name in the file list and in the header files. If set to NO the
  150 +# shortest path that makes the file name unique will be used
  151 +# The default value is: YES.
  152 +
  153 +FULL_PATH_NAMES = YES
  154 +
  155 +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
  156 +# Stripping is only done if one of the specified strings matches the left-hand
  157 +# part of the path. The tag can be used to show relative paths in the file list.
  158 +# If left blank the directory from which doxygen is run is used as the path to
  159 +# strip.
  160 +#
  161 +# Note that you can specify absolute paths here, but also relative paths, which
  162 +# will be relative from the directory where doxygen is started.
  163 +# This tag requires that the tag FULL_PATH_NAMES is set to YES.
  164 +
  165 +STRIP_FROM_PATH =
  166 +
  167 +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
  168 +# path mentioned in the documentation of a class, which tells the reader which
  169 +# header file to include in order to use a class. If left blank only the name of
  170 +# the header file containing the class definition is used. Otherwise one should
  171 +# specify the list of include paths that are normally passed to the compiler
  172 +# using the -I flag.
  173 +
  174 +STRIP_FROM_INC_PATH =
  175 +
  176 +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
  177 +# less readable) file names. This can be useful is your file systems doesn't
  178 +# support long names like on DOS, Mac, or CD-ROM.
  179 +# The default value is: NO.
  180 +
  181 +SHORT_NAMES = YES
  182 +
  183 +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
  184 +# first line (until the first dot) of a Javadoc-style comment as the brief
  185 +# description. If set to NO, the Javadoc-style will behave just like regular Qt-
  186 +# style comments (thus requiring an explicit @brief command for a brief
  187 +# description.)
  188 +# The default value is: NO.
  189 +
  190 +JAVADOC_AUTOBRIEF = NO
  191 +
  192 +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
  193 +# line (until the first dot) of a Qt-style comment as the brief description. If
  194 +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
  195 +# requiring an explicit \brief command for a brief description.)
  196 +# The default value is: NO.
  197 +
  198 +QT_AUTOBRIEF = NO
  199 +
  200 +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
  201 +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
  202 +# a brief description. This used to be the default behavior. The new default is
  203 +# to treat a multi-line C++ comment block as a detailed description. Set this
  204 +# tag to YES if you prefer the old behavior instead.
  205 +#
  206 +# Note that setting this tag to YES also means that rational rose comments are
  207 +# not recognized any more.
  208 +# The default value is: NO.
  209 +
  210 +MULTILINE_CPP_IS_BRIEF = NO
  211 +
  212 +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
  213 +# documentation from any documented member that it re-implements.
  214 +# The default value is: YES.
  215 +
  216 +INHERIT_DOCS = YES
  217 +
  218 +# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
  219 +# page for each member. If set to NO, the documentation of a member will be part
  220 +# of the file/class/namespace that contains it.
  221 +# The default value is: NO.
  222 +
  223 +SEPARATE_MEMBER_PAGES = NO
  224 +
  225 +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
  226 +# uses this value to replace tabs by spaces in code fragments.
  227 +# Minimum value: 1, maximum value: 16, default value: 4.
  228 +
  229 +TAB_SIZE = 4
  230 +
  231 +# This tag can be used to specify a number of aliases that act as commands in
  232 +# the documentation. An alias has the form:
  233 +# name=value
  234 +# For example adding
  235 +# "sideeffect=@par Side Effects:\n"
  236 +# will allow you to put the command \sideeffect (or @sideeffect) in the
  237 +# documentation, which will result in a user-defined paragraph with heading
  238 +# "Side Effects:". You can put \n's in the value part of an alias to insert
  239 +# newlines.
  240 +
  241 +ALIASES =
  242 +
  243 +# This tag can be used to specify a number of word-keyword mappings (TCL only).
  244 +# A mapping has the form "name=value". For example adding "class=itcl::class"
  245 +# will allow you to use the command class in the itcl::class meaning.
  246 +
  247 +TCL_SUBST =
  248 +
  249 +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
  250 +# only. Doxygen will then generate output that is more tailored for C. For
  251 +# instance, some of the names that are used will be different. The list of all
  252 +# members will be omitted, etc.
  253 +# The default value is: NO.
  254 +
  255 +OPTIMIZE_OUTPUT_FOR_C = YES
  256 +
  257 +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
  258 +# Python sources only. Doxygen will then generate output that is more tailored
  259 +# for that language. For instance, namespaces will be presented as packages,
  260 +# qualified scopes will look different, etc.
  261 +# The default value is: NO.
  262 +
  263 +OPTIMIZE_OUTPUT_JAVA = NO
  264 +
  265 +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
  266 +# sources. Doxygen will then generate output that is tailored for Fortran.
  267 +# The default value is: NO.
  268 +
  269 +OPTIMIZE_FOR_FORTRAN = NO
  270 +
  271 +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
  272 +# sources. Doxygen will then generate output that is tailored for VHDL.
  273 +# The default value is: NO.
  274 +
  275 +OPTIMIZE_OUTPUT_VHDL = NO
  276 +
  277 +# Doxygen selects the parser to use depending on the extension of the files it
  278 +# parses. With this tag you can assign which parser to use for a given
  279 +# extension. Doxygen has a built-in mapping, but you can override or extend it
  280 +# using this tag. The format is ext=language, where ext is a file extension, and
  281 +# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
  282 +# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
  283 +# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
  284 +# Fortran. In the later case the parser tries to guess whether the code is fixed
  285 +# or free formatted code, this is the default for Fortran type files), VHDL. For
  286 +# instance to make doxygen treat .inc files as Fortran files (default is PHP),
  287 +# and .f files as C (default is Fortran), use: inc=Fortran f=C.
  288 +#
  289 +# Note: For files without extension you can use no_extension as a placeholder.
  290 +#
  291 +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
  292 +# the files are not read by doxygen.
  293 +
  294 +EXTENSION_MAPPING =
  295 +
  296 +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
  297 +# according to the Markdown format, which allows for more readable
  298 +# documentation. See http://daringfireball.net/projects/markdown/ for details.
  299 +# The output of markdown processing is further processed by doxygen, so you can
  300 +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
  301 +# case of backward compatibilities issues.
  302 +# The default value is: YES.
  303 +
  304 +MARKDOWN_SUPPORT = NO
  305 +
  306 +# When enabled doxygen tries to link words that correspond to documented
  307 +# classes, or namespaces to their corresponding documentation. Such a link can
  308 +# be prevented in individual cases by putting a % sign in front of the word or
  309 +# globally by setting AUTOLINK_SUPPORT to NO.
  310 +# The default value is: YES.
  311 +
  312 +AUTOLINK_SUPPORT = YES
  313 +
  314 +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
  315 +# to include (a tag file for) the STL sources as input, then you should set this
  316 +# tag to YES in order to let doxygen match functions declarations and
  317 +# definitions whose arguments contain STL classes (e.g. func(std::string);
  318 +# versus func(std::string) {}). This also make the inheritance and collaboration
  319 +# diagrams that involve STL classes more complete and accurate.
  320 +# The default value is: NO.
  321 +
  322 +BUILTIN_STL_SUPPORT = NO
  323 +
  324 +# If you use Microsoft's C++/CLI language, you should set this option to YES to
  325 +# enable parsing support.
  326 +# The default value is: NO.
  327 +
  328 +CPP_CLI_SUPPORT = NO
  329 +
  330 +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
  331 +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
  332 +# will parse them like normal C++ but will assume all classes use public instead
  333 +# of private inheritance when no explicit protection keyword is present.
  334 +# The default value is: NO.
  335 +
  336 +SIP_SUPPORT = NO
  337 +
  338 +# For Microsoft's IDL there are propget and propput attributes to indicate
  339 +# getter and setter methods for a property. Setting this option to YES will make
  340 +# doxygen to replace the get and set methods by a property in the documentation.
  341 +# This will only work if the methods are indeed getting or setting a simple
  342 +# type. If this is not the case, or you want to show the methods anyway, you
  343 +# should set this option to NO.
  344 +# The default value is: YES.
  345 +
  346 +IDL_PROPERTY_SUPPORT = YES
  347 +
  348 +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
  349 +# tag is set to YES then doxygen will reuse the documentation of the first
  350 +# member in the group (if any) for the other members of the group. By default
  351 +# all members of a group must be documented explicitly.
  352 +# The default value is: NO.
  353 +
  354 +DISTRIBUTE_GROUP_DOC = NO
  355 +
  356 +# Set the SUBGROUPING tag to YES to allow class member groups of the same type
  357 +# (for instance a group of public functions) to be put as a subgroup of that
  358 +# type (e.g. under the Public Functions section). Set it to NO to prevent
  359 +# subgrouping. Alternatively, this can be done per class using the
  360 +# \nosubgrouping command.
  361 +# The default value is: YES.
  362 +
  363 +SUBGROUPING = YES
  364 +
  365 +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
  366 +# are shown inside the group in which they are included (e.g. using \ingroup)
  367 +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
  368 +# and RTF).
  369 +#
  370 +# Note that this feature does not work in combination with
  371 +# SEPARATE_MEMBER_PAGES.
  372 +# The default value is: NO.
  373 +
  374 +INLINE_GROUPED_CLASSES = NO
  375 +
  376 +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
  377 +# with only public data fields or simple typedef fields will be shown inline in
  378 +# the documentation of the scope in which they are defined (i.e. file,
  379 +# namespace, or group documentation), provided this scope is documented. If set
  380 +# to NO, structs, classes, and unions are shown on a separate page (for HTML and
  381 +# Man pages) or section (for LaTeX and RTF).
  382 +# The default value is: NO.
  383 +
  384 +INLINE_SIMPLE_STRUCTS = NO
  385 +
  386 +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
  387 +# enum is documented as struct, union, or enum with the name of the typedef. So
  388 +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
  389 +# with name TypeT. When disabled the typedef will appear as a member of a file,
  390 +# namespace, or class. And the struct will be named TypeS. This can typically be
  391 +# useful for C code in case the coding convention dictates that all compound
  392 +# types are typedef'ed and only the typedef is referenced, never the tag name.
  393 +# The default value is: NO.
  394 +
  395 +TYPEDEF_HIDES_STRUCT = NO
  396 +
  397 +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
  398 +# cache is used to resolve symbols given their name and scope. Since this can be
  399 +# an expensive process and often the same symbol appears multiple times in the
  400 +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
  401 +# doxygen will become slower. If the cache is too large, memory is wasted. The
  402 +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
  403 +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
  404 +# symbols. At the end of a run doxygen will report the cache usage and suggest
  405 +# the optimal cache size from a speed point of view.
  406 +# Minimum value: 0, maximum value: 9, default value: 0.
  407 +
  408 +LOOKUP_CACHE_SIZE = 0
  409 +
  410 +#---------------------------------------------------------------------------
  411 +# Build related configuration options
  412 +#---------------------------------------------------------------------------
  413 +
  414 +# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
  415 +# documentation are documented, even if no documentation was available. Private
  416 +# class members and static file members will be hidden unless the
  417 +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
  418 +# Note: This will also disable the warnings about undocumented members that are
  419 +# normally produced when WARNINGS is set to YES.
  420 +# The default value is: NO.
  421 +
  422 +EXTRACT_ALL = YES
  423 +
  424 +# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
  425 +# be included in the documentation.
  426 +# The default value is: NO.
  427 +
  428 +EXTRACT_PRIVATE = YES
  429 +
  430 +# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
  431 +# scope will be included in the documentation.
  432 +# The default value is: NO.
  433 +
  434 +EXTRACT_PACKAGE = NO
  435 +
  436 +# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
  437 +# included in the documentation.
  438 +# The default value is: NO.
  439 +
  440 +EXTRACT_STATIC = YES
  441 +
  442 +# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
  443 +# locally in source files will be included in the documentation. If set to NO,
  444 +# only classes defined in header files are included. Does not have any effect
  445 +# for Java sources.
  446 +# The default value is: YES.
  447 +
  448 +EXTRACT_LOCAL_CLASSES = YES
  449 +
  450 +# This flag is only useful for Objective-C code. If set to YES, local methods,
  451 +# which are defined in the implementation section but not in the interface are
  452 +# included in the documentation. If set to NO, only methods in the interface are
  453 +# included.
  454 +# The default value is: NO.
  455 +
  456 +EXTRACT_LOCAL_METHODS = NO
  457 +
  458 +# If this flag is set to YES, the members of anonymous namespaces will be
  459 +# extracted and appear in the documentation as a namespace called
  460 +# 'anonymous_namespace{file}', where file will be replaced with the base name of
  461 +# the file that contains the anonymous namespace. By default anonymous namespace
  462 +# are hidden.
  463 +# The default value is: NO.
  464 +
  465 +EXTRACT_ANON_NSPACES = NO
  466 +
  467 +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
  468 +# undocumented members inside documented classes or files. If set to NO these
  469 +# members will be included in the various overviews, but no documentation
  470 +# section is generated. This option has no effect if EXTRACT_ALL is enabled.
  471 +# The default value is: NO.
  472 +
  473 +HIDE_UNDOC_MEMBERS = NO
  474 +
  475 +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
  476 +# undocumented classes that are normally visible in the class hierarchy. If set
  477 +# to NO, these classes will be included in the various overviews. This option
  478 +# has no effect if EXTRACT_ALL is enabled.
  479 +# The default value is: NO.
  480 +
  481 +HIDE_UNDOC_CLASSES = NO
  482 +
  483 +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
  484 +# (class|struct|union) declarations. If set to NO, these declarations will be
  485 +# included in the documentation.
  486 +# The default value is: NO.
  487 +
  488 +HIDE_FRIEND_COMPOUNDS = NO
  489 +
  490 +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
  491 +# documentation blocks found inside the body of a function. If set to NO, these
  492 +# blocks will be appended to the function's detailed documentation block.
  493 +# The default value is: NO.
  494 +
  495 +HIDE_IN_BODY_DOCS = NO
  496 +
  497 +# The INTERNAL_DOCS tag determines if documentation that is typed after a
  498 +# \internal command is included. If the tag is set to NO then the documentation
  499 +# will be excluded. Set it to YES to include the internal documentation.
  500 +# The default value is: NO.
  501 +
  502 +INTERNAL_DOCS = NO
  503 +
  504 +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
  505 +# names in lower-case letters. If set to YES, upper-case letters are also
  506 +# allowed. This is useful if you have classes or files whose names only differ
  507 +# in case and if your file system supports case sensitive file names. Windows
  508 +# and Mac users are advised to set this option to NO.
  509 +# The default value is: system dependent.
  510 +
  511 +CASE_SENSE_NAMES = NO
  512 +
  513 +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
  514 +# their full class and namespace scopes in the documentation. If set to YES, the
  515 +# scope will be hidden.
  516 +# The default value is: NO.
  517 +
  518 +HIDE_SCOPE_NAMES = NO
  519 +
  520 +# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
  521 +# append additional text to a page's title, such as Class Reference. If set to
  522 +# YES the compound reference will be hidden.
  523 +# The default value is: NO.
  524 +
  525 +HIDE_COMPOUND_REFERENCE= NO
  526 +
  527 +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
  528 +# the files that are included by a file in the documentation of that file.
  529 +# The default value is: YES.
  530 +
  531 +SHOW_INCLUDE_FILES = YES
  532 +
  533 +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
  534 +# grouped member an include statement to the documentation, telling the reader
  535 +# which file to include in order to use the member.
  536 +# The default value is: NO.
  537 +
  538 +SHOW_GROUPED_MEMB_INC = NO
  539 +
  540 +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
  541 +# files with double quotes in the documentation rather than with sharp brackets.
  542 +# The default value is: NO.
  543 +
  544 +FORCE_LOCAL_INCLUDES = NO
  545 +
  546 +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
  547 +# documentation for inline members.
  548 +# The default value is: YES.
  549 +
  550 +INLINE_INFO = YES
  551 +
  552 +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
  553 +# (detailed) documentation of file and class members alphabetically by member
  554 +# name. If set to NO, the members will appear in declaration order.
  555 +# The default value is: YES.
  556 +
  557 +SORT_MEMBER_DOCS = YES
  558 +
  559 +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
  560 +# descriptions of file, namespace and class members alphabetically by member
  561 +# name. If set to NO, the members will appear in declaration order. Note that
  562 +# this will also influence the order of the classes in the class list.
  563 +# The default value is: NO.
  564 +
  565 +SORT_BRIEF_DOCS = NO
  566 +
  567 +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
  568 +# (brief and detailed) documentation of class members so that constructors and
  569 +# destructors are listed first. If set to NO the constructors will appear in the
  570 +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
  571 +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
  572 +# member documentation.
  573 +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
  574 +# detailed member documentation.
  575 +# The default value is: NO.
  576 +
  577 +SORT_MEMBERS_CTORS_1ST = NO
  578 +
  579 +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
  580 +# of group names into alphabetical order. If set to NO the group names will
  581 +# appear in their defined order.
  582 +# The default value is: NO.
  583 +
  584 +SORT_GROUP_NAMES = NO
  585 +
  586 +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
  587 +# fully-qualified names, including namespaces. If set to NO, the class list will
  588 +# be sorted only by class name, not including the namespace part.
  589 +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
  590 +# Note: This option applies only to the class list, not to the alphabetical
  591 +# list.
  592 +# The default value is: NO.
  593 +
  594 +SORT_BY_SCOPE_NAME = NO
  595 +
  596 +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
  597 +# type resolution of all parameters of a function it will reject a match between
  598 +# the prototype and the implementation of a member function even if there is
  599 +# only one candidate or it is obvious which candidate to choose by doing a
  600 +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
  601 +# accept a match between prototype and implementation in such cases.
  602 +# The default value is: NO.
  603 +
  604 +STRICT_PROTO_MATCHING = NO
  605 +
  606 +# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
  607 +# list. This list is created by putting \todo commands in the documentation.
  608 +# The default value is: YES.
  609 +
  610 +GENERATE_TODOLIST = NO
  611 +
  612 +# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
  613 +# list. This list is created by putting \test commands in the documentation.
  614 +# The default value is: YES.
  615 +
  616 +GENERATE_TESTLIST = NO
  617 +
  618 +# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
  619 +# list. This list is created by putting \bug commands in the documentation.
  620 +# The default value is: YES.
  621 +
  622 +GENERATE_BUGLIST = NO
  623 +
  624 +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
  625 +# the deprecated list. This list is created by putting \deprecated commands in
  626 +# the documentation.
  627 +# The default value is: YES.
  628 +
  629 +GENERATE_DEPRECATEDLIST= YES
  630 +
  631 +# The ENABLED_SECTIONS tag can be used to enable conditional documentation
  632 +# sections, marked by \if <section_label> ... \endif and \cond <section_label>
  633 +# ... \endcond blocks.
  634 +
  635 +ENABLED_SECTIONS =
  636 +
  637 +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
  638 +# initial value of a variable or macro / define can have for it to appear in the
  639 +# documentation. If the initializer consists of more lines than specified here
  640 +# it will be hidden. Use a value of 0 to hide initializers completely. The
  641 +# appearance of the value of individual variables and macros / defines can be
  642 +# controlled using \showinitializer or \hideinitializer command in the
  643 +# documentation regardless of this setting.
  644 +# Minimum value: 0, maximum value: 10000, default value: 30.
  645 +
  646 +MAX_INITIALIZER_LINES = 30
  647 +
  648 +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
  649 +# the bottom of the documentation of classes and structs. If set to YES, the
  650 +# list will mention the files that were used to generate the documentation.
  651 +# The default value is: YES.
  652 +
  653 +SHOW_USED_FILES = YES
  654 +
  655 +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
  656 +# will remove the Files entry from the Quick Index and from the Folder Tree View
  657 +# (if specified).
  658 +# The default value is: YES.
  659 +
  660 +SHOW_FILES = YES
  661 +
  662 +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
  663 +# page. This will remove the Namespaces entry from the Quick Index and from the
  664 +# Folder Tree View (if specified).
  665 +# The default value is: YES.
  666 +
  667 +SHOW_NAMESPACES = YES
  668 +
  669 +# The FILE_VERSION_FILTER tag can be used to specify a program or script that
  670 +# doxygen should invoke to get the current version for each file (typically from
  671 +# the version control system). Doxygen will invoke the program by executing (via
  672 +# popen()) the command command input-file, where command is the value of the
  673 +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
  674 +# by doxygen. Whatever the program writes to standard output is used as the file
  675 +# version. For an example see the documentation.
  676 +
  677 +FILE_VERSION_FILTER =
  678 +
  679 +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
  680 +# by doxygen. The layout file controls the global structure of the generated
  681 +# output files in an output format independent way. To create the layout file
  682 +# that represents doxygen's defaults, run doxygen with the -l option. You can
  683 +# optionally specify a file name after the option, if omitted DoxygenLayout.xml
  684 +# will be used as the name of the layout file.
  685 +#
  686 +# Note that if you run doxygen from a directory containing a file called
  687 +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
  688 +# tag is left empty.
  689 +
  690 +LAYOUT_FILE =
  691 +
  692 +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
  693 +# the reference definitions. This must be a list of .bib files. The .bib
  694 +# extension is automatically appended if omitted. This requires the bibtex tool
  695 +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
  696 +# For LaTeX the style of the bibliography can be controlled using
  697 +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
  698 +# search path. See also \cite for info how to create references.
  699 +
  700 +CITE_BIB_FILES =
  701 +
  702 +#---------------------------------------------------------------------------
  703 +# Configuration options related to warning and progress messages
  704 +#---------------------------------------------------------------------------
  705 +
  706 +# The QUIET tag can be used to turn on/off the messages that are generated to
  707 +# standard output by doxygen. If QUIET is set to YES this implies that the
  708 +# messages are off.
  709 +# The default value is: NO.
  710 +
  711 +QUIET = YES
  712 +
  713 +# The WARNINGS tag can be used to turn on/off the warning messages that are
  714 +# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
  715 +# this implies that the warnings are on.
  716 +#
  717 +# Tip: Turn warnings on while writing the documentation.
  718 +# The default value is: YES.
  719 +
  720 +WARNINGS = YES
  721 +
  722 +# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
  723 +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
  724 +# will automatically be disabled.
  725 +# The default value is: YES.
  726 +
  727 +WARN_IF_UNDOCUMENTED = YES
  728 +
  729 +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
  730 +# potential errors in the documentation, such as not documenting some parameters
  731 +# in a documented function, or documenting parameters that don't exist or using
  732 +# markup commands wrongly.
  733 +# The default value is: YES.
  734 +
  735 +WARN_IF_DOC_ERROR = YES
  736 +
  737 +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
  738 +# are documented, but have no documentation for their parameters or return
  739 +# value. If set to NO, doxygen will only warn about wrong or incomplete
  740 +# parameter documentation, but not about the absence of documentation.
  741 +# The default value is: NO.
  742 +
  743 +WARN_NO_PARAMDOC = YES
  744 +
  745 +# The WARN_FORMAT tag determines the format of the warning messages that doxygen
  746 +# can produce. The string should contain the $file, $line, and $text tags, which
  747 +# will be replaced by the file and line number from which the warning originated
  748 +# and the warning text. Optionally the format may contain $version, which will
  749 +# be replaced by the version of the file (if it could be obtained via
  750 +# FILE_VERSION_FILTER)
  751 +# The default value is: $file:$line: $text.
  752 +
  753 +WARN_FORMAT = "$file:$line: $text"
  754 +
  755 +# The WARN_LOGFILE tag can be used to specify a file to which warning and error
  756 +# messages should be written. If left blank the output is written to standard
  757 +# error (stderr).
  758 +
  759 +WARN_LOGFILE =
  760 +
  761 +#---------------------------------------------------------------------------
  762 +# Configuration options related to the input files
  763 +#---------------------------------------------------------------------------
  764 +
  765 +# The INPUT tag is used to specify the files and/or directories that contain
  766 +# documented source files. You may enter file names like myfile.cpp or
  767 +# directories like /usr/src/myproject. Separate the files or directories with
  768 +# spaces.
  769 +# Note: If this tag is empty the current directory is searched.
  770 +
  771 +INPUT = ./
  772 +
  773 +# This tag can be used to specify the character encoding of the source files
  774 +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
  775 +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
  776 +# documentation (see: http://www.gnu.org/software/libiconv) for the list of
  777 +# possible encodings.
  778 +# The default value is: UTF-8.
  779 +
  780 +INPUT_ENCODING = UTF-8
  781 +
  782 +# If the value of the INPUT tag contains directories, you can use the
  783 +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
  784 +# *.h) to filter out the source-files in the directories. If left blank the
  785 +# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,
  786 +# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,
  787 +# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,
  788 +# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,
  789 +# *.qsf, *.as and *.js.
  790 +
  791 +FILE_PATTERNS = *.h \
  792 + *.c \
  793 + *.txt
  794 +
  795 +# The RECURSIVE tag can be used to specify whether or not subdirectories should
  796 +# be searched for input files as well.
  797 +# The default value is: NO.
  798 +
  799 +RECURSIVE = YES
  800 +
  801 +# The EXCLUDE tag can be used to specify files and/or directories that should be
  802 +# excluded from the INPUT source files. This way you can easily exclude a
  803 +# subdirectory from a directory tree whose root is specified with the INPUT tag.
  804 +#
  805 +# Note that relative paths are relative to the directory from which doxygen is
  806 +# run.
  807 +
  808 +EXCLUDE = Documentation/
  809 +
  810 +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
  811 +# directories that are symbolic links (a Unix file system feature) are excluded
  812 +# from the input.
  813 +# The default value is: NO.
  814 +
  815 +EXCLUDE_SYMLINKS = NO
  816 +
  817 +# If the value of the INPUT tag contains directories, you can use the
  818 +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
  819 +# certain files from those directories.
  820 +#
  821 +# Note that the wildcards are matched against the file with absolute path, so to
  822 +# exclude all test directories for example use the pattern */test/*
  823 +
  824 +EXCLUDE_PATTERNS =
  825 +
  826 +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
  827 +# (namespaces, classes, functions, etc.) that should be excluded from the
  828 +# output. The symbol name can be a fully qualified name, a word, or if the
  829 +# wildcard * is used, a substring. Examples: ANamespace, AClass,
  830 +# AClass::ANamespace, ANamespace::*Test
  831 +#
  832 +# Note that the wildcards are matched against the file with absolute path, so to
  833 +# exclude all test directories use the pattern */test/*
  834 +
  835 +EXCLUDE_SYMBOLS = __* \
  836 + INCLUDE_FROM_*
  837 +
  838 +# The EXAMPLE_PATH tag can be used to specify one or more files or directories
  839 +# that contain example code fragments that are included (see the \include
  840 +# command).
  841 +
  842 +EXAMPLE_PATH =
  843 +
  844 +# If the value of the EXAMPLE_PATH tag contains directories, you can use the
  845 +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
  846 +# *.h) to filter out the source-files in the directories. If left blank all
  847 +# files are included.
  848 +
  849 +EXAMPLE_PATTERNS = *
  850 +
  851 +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
  852 +# searched for input files to be used with the \include or \dontinclude commands
  853 +# irrespective of the value of the RECURSIVE tag.
  854 +# The default value is: NO.
  855 +
  856 +EXAMPLE_RECURSIVE = NO
  857 +
  858 +# The IMAGE_PATH tag can be used to specify one or more files or directories
  859 +# that contain images that are to be included in the documentation (see the
  860 +# \image command).
  861 +
  862 +IMAGE_PATH =
  863 +
  864 +# The INPUT_FILTER tag can be used to specify a program that doxygen should
  865 +# invoke to filter for each input file. Doxygen will invoke the filter program
  866 +# by executing (via popen()) the command:
  867 +#
  868 +# <filter> <input-file>
  869 +#
  870 +# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
  871 +# name of an input file. Doxygen will then use the output that the filter
  872 +# program writes to standard output. If FILTER_PATTERNS is specified, this tag
  873 +# will be ignored.
  874 +#
  875 +# Note that the filter must not add or remove lines; it is applied before the
  876 +# code is scanned, but not when the output code is generated. If lines are added
  877 +# or removed, the anchors will not be placed correctly.
  878 +
  879 +INPUT_FILTER =
  880 +
  881 +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
  882 +# basis. Doxygen will compare the file name with each pattern and apply the
  883 +# filter if there is a match. The filters are a list of the form: pattern=filter
  884 +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
  885 +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
  886 +# patterns match the file name, INPUT_FILTER is applied.
  887 +
  888 +FILTER_PATTERNS =
  889 +
  890 +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
  891 +# INPUT_FILTER) will also be used to filter the input files that are used for
  892 +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
  893 +# The default value is: NO.
  894 +
  895 +FILTER_SOURCE_FILES = NO
  896 +
  897 +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
  898 +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
  899 +# it is also possible to disable source filtering for a specific pattern using
  900 +# *.ext= (so without naming a filter).
  901 +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
  902 +
  903 +FILTER_SOURCE_PATTERNS =
  904 +
  905 +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
  906 +# is part of the input, its contents will be placed on the main page
  907 +# (index.html). This can be useful if you have a project on for instance GitHub
  908 +# and want to reuse the introduction page also for the doxygen output.
  909 +
  910 +USE_MDFILE_AS_MAINPAGE =
  911 +
  912 +#---------------------------------------------------------------------------
  913 +# Configuration options related to source browsing
  914 +#---------------------------------------------------------------------------
  915 +
  916 +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
  917 +# generated. Documented entities will be cross-referenced with these sources.
  918 +#
  919 +# Note: To get rid of all source code in the generated output, make sure that
  920 +# also VERBATIM_HEADERS is set to NO.
  921 +# The default value is: NO.
  922 +
  923 +SOURCE_BROWSER = NO
  924 +
  925 +# Setting the INLINE_SOURCES tag to YES will include the body of functions,
  926 +# classes and enums directly into the documentation.
  927 +# The default value is: NO.
  928 +
  929 +INLINE_SOURCES = NO
  930 +
  931 +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
  932 +# special comment blocks from generated source code fragments. Normal C, C++ and
  933 +# Fortran comments will always remain visible.
  934 +# The default value is: YES.
  935 +
  936 +STRIP_CODE_COMMENTS = YES
  937 +
  938 +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
  939 +# function all documented functions referencing it will be listed.
  940 +# The default value is: NO.
  941 +
  942 +REFERENCED_BY_RELATION = NO
  943 +
  944 +# If the REFERENCES_RELATION tag is set to YES then for each documented function
  945 +# all documented entities called/used by that function will be listed.
  946 +# The default value is: NO.
  947 +
  948 +REFERENCES_RELATION = NO
  949 +
  950 +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
  951 +# to YES then the hyperlinks from functions in REFERENCES_RELATION and
  952 +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
  953 +# link to the documentation.
  954 +# The default value is: YES.
  955 +
  956 +REFERENCES_LINK_SOURCE = NO
  957 +
  958 +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
  959 +# source code will show a tooltip with additional information such as prototype,
  960 +# brief description and links to the definition and documentation. Since this
  961 +# will make the HTML file larger and loading of large files a bit slower, you
  962 +# can opt to disable this feature.
  963 +# The default value is: YES.
  964 +# This tag requires that the tag SOURCE_BROWSER is set to YES.
  965 +
  966 +SOURCE_TOOLTIPS = YES
  967 +
  968 +# If the USE_HTAGS tag is set to YES then the references to source code will
  969 +# point to the HTML generated by the htags(1) tool instead of doxygen built-in
  970 +# source browser. The htags tool is part of GNU's global source tagging system
  971 +# (see http://www.gnu.org/software/global/global.html). You will need version
  972 +# 4.8.6 or higher.
  973 +#
  974 +# To use it do the following:
  975 +# - Install the latest version of global
  976 +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
  977 +# - Make sure the INPUT points to the root of the source tree
  978 +# - Run doxygen as normal
  979 +#
  980 +# Doxygen will invoke htags (and that will in turn invoke gtags), so these
  981 +# tools must be available from the command line (i.e. in the search path).
  982 +#
  983 +# The result: instead of the source browser generated by doxygen, the links to
  984 +# source code will now point to the output of htags.
  985 +# The default value is: NO.
  986 +# This tag requires that the tag SOURCE_BROWSER is set to YES.
  987 +
  988 +USE_HTAGS = NO
  989 +
  990 +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
  991 +# verbatim copy of the header file for each class for which an include is
  992 +# specified. Set to NO to disable this.
  993 +# See also: Section \class.
  994 +# The default value is: YES.
  995 +
  996 +VERBATIM_HEADERS = NO
  997 +
  998 +# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
  999 +# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the
  1000 +# cost of reduced performance. This can be particularly helpful with template
  1001 +# rich C++ code for which doxygen's built-in parser lacks the necessary type
  1002 +# information.
  1003 +# Note: The availability of this option depends on whether or not doxygen was
  1004 +# compiled with the --with-libclang option.
  1005 +# The default value is: NO.
  1006 +
  1007 +CLANG_ASSISTED_PARSING = NO
  1008 +
  1009 +# If clang assisted parsing is enabled you can provide the compiler with command
  1010 +# line options that you would normally use when invoking the compiler. Note that
  1011 +# the include paths will already be set by doxygen for the files and directories
  1012 +# specified with INPUT and INCLUDE_PATH.
  1013 +# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
  1014 +
  1015 +CLANG_OPTIONS =
  1016 +
  1017 +#---------------------------------------------------------------------------
  1018 +# Configuration options related to the alphabetical class index
  1019 +#---------------------------------------------------------------------------
  1020 +
  1021 +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
  1022 +# compounds will be generated. Enable this if the project contains a lot of
  1023 +# classes, structs, unions or interfaces.
  1024 +# The default value is: YES.
  1025 +
  1026 +ALPHABETICAL_INDEX = YES
  1027 +
  1028 +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
  1029 +# which the alphabetical index list will be split.
  1030 +# Minimum value: 1, maximum value: 20, default value: 5.
  1031 +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
  1032 +
  1033 +COLS_IN_ALPHA_INDEX = 5
  1034 +
  1035 +# In case all classes in a project start with a common prefix, all classes will
  1036 +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
  1037 +# can be used to specify a prefix (or a list of prefixes) that should be ignored
  1038 +# while generating the index headers.
  1039 +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
  1040 +
  1041 +IGNORE_PREFIX =
  1042 +
  1043 +#---------------------------------------------------------------------------
  1044 +# Configuration options related to the HTML output
  1045 +#---------------------------------------------------------------------------
  1046 +
  1047 +# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
  1048 +# The default value is: YES.
  1049 +
  1050 +GENERATE_HTML = YES
  1051 +
  1052 +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
  1053 +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
  1054 +# it.
  1055 +# The default directory is: html.
  1056 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1057 +
  1058 +HTML_OUTPUT = html
  1059 +
  1060 +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
  1061 +# generated HTML page (for example: .htm, .php, .asp).
  1062 +# The default value is: .html.
  1063 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1064 +
  1065 +HTML_FILE_EXTENSION = .html
  1066 +
  1067 +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
  1068 +# each generated HTML page. If the tag is left blank doxygen will generate a
  1069 +# standard header.
  1070 +#
  1071 +# To get valid HTML the header file that includes any scripts and style sheets
  1072 +# that doxygen needs, which is dependent on the configuration options used (e.g.
  1073 +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
  1074 +# default header using
  1075 +# doxygen -w html new_header.html new_footer.html new_stylesheet.css
  1076 +# YourConfigFile
  1077 +# and then modify the file new_header.html. See also section "Doxygen usage"
  1078 +# for information on how to generate the default header that doxygen normally
  1079 +# uses.
  1080 +# Note: The header is subject to change so you typically have to regenerate the
  1081 +# default header when upgrading to a newer version of doxygen. For a description
  1082 +# of the possible markers and block names see the documentation.
  1083 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1084 +
  1085 +HTML_HEADER =
  1086 +
  1087 +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
  1088 +# generated HTML page. If the tag is left blank doxygen will generate a standard
  1089 +# footer. See HTML_HEADER for more information on how to generate a default
  1090 +# footer and what special commands can be used inside the footer. See also
  1091 +# section "Doxygen usage" for information on how to generate the default footer
  1092 +# that doxygen normally uses.
  1093 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1094 +
  1095 +HTML_FOOTER =
  1096 +
  1097 +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
  1098 +# sheet that is used by each HTML page. It can be used to fine-tune the look of
  1099 +# the HTML output. If left blank doxygen will generate a default style sheet.
  1100 +# See also section "Doxygen usage" for information on how to generate the style
  1101 +# sheet that doxygen normally uses.
  1102 +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
  1103 +# it is more robust and this tag (HTML_STYLESHEET) will in the future become
  1104 +# obsolete.
  1105 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1106 +
  1107 +HTML_STYLESHEET =
  1108 +
  1109 +# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
  1110 +# cascading style sheets that are included after the standard style sheets
  1111 +# created by doxygen. Using this option one can overrule certain style aspects.
  1112 +# This is preferred over using HTML_STYLESHEET since it does not replace the
  1113 +# standard style sheet and is therefore more robust against future updates.
  1114 +# Doxygen will copy the style sheet files to the output directory.
  1115 +# Note: The order of the extra style sheet files is of importance (e.g. the last
  1116 +# style sheet in the list overrules the setting of the previous ones in the
  1117 +# list). For an example see the documentation.
  1118 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1119 +
  1120 +HTML_EXTRA_STYLESHEET =
  1121 +
  1122 +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
  1123 +# other source files which should be copied to the HTML output directory. Note
  1124 +# that these files will be copied to the base HTML output directory. Use the
  1125 +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
  1126 +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
  1127 +# files will be copied as-is; there are no commands or markers available.
  1128 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1129 +
  1130 +HTML_EXTRA_FILES =
  1131 +
  1132 +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
  1133 +# will adjust the colors in the style sheet and background images according to
  1134 +# this color. Hue is specified as an angle on a colorwheel, see
  1135 +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
  1136 +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
  1137 +# purple, and 360 is red again.
  1138 +# Minimum value: 0, maximum value: 359, default value: 220.
  1139 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1140 +
  1141 +HTML_COLORSTYLE_HUE = 220
  1142 +
  1143 +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
  1144 +# in the HTML output. For a value of 0 the output will use grayscales only. A
  1145 +# value of 255 will produce the most vivid colors.
  1146 +# Minimum value: 0, maximum value: 255, default value: 100.
  1147 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1148 +
  1149 +HTML_COLORSTYLE_SAT = 100
  1150 +
  1151 +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
  1152 +# luminance component of the colors in the HTML output. Values below 100
  1153 +# gradually make the output lighter, whereas values above 100 make the output
  1154 +# darker. The value divided by 100 is the actual gamma applied, so 80 represents
  1155 +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
  1156 +# change the gamma.
  1157 +# Minimum value: 40, maximum value: 240, default value: 80.
  1158 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1159 +
  1160 +HTML_COLORSTYLE_GAMMA = 80
  1161 +
  1162 +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
  1163 +# page will contain the date and time when the page was generated. Setting this
  1164 +# to NO can help when comparing the output of multiple runs.
  1165 +# The default value is: YES.
  1166 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1167 +
  1168 +HTML_TIMESTAMP = NO
  1169 +
  1170 +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
  1171 +# documentation will contain sections that can be hidden and shown after the
  1172 +# page has loaded.
  1173 +# The default value is: NO.
  1174 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1175 +
  1176 +HTML_DYNAMIC_SECTIONS = YES
  1177 +
  1178 +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
  1179 +# shown in the various tree structured indices initially; the user can expand
  1180 +# and collapse entries dynamically later on. Doxygen will expand the tree to
  1181 +# such a level that at most the specified number of entries are visible (unless
  1182 +# a fully collapsed tree already exceeds this amount). So setting the number of
  1183 +# entries 1 will produce a full collapsed tree by default. 0 is a special value
  1184 +# representing an infinite number of entries and will result in a full expanded
  1185 +# tree by default.
  1186 +# Minimum value: 0, maximum value: 9999, default value: 100.
  1187 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1188 +
  1189 +HTML_INDEX_NUM_ENTRIES = 100
  1190 +
  1191 +# If the GENERATE_DOCSET tag is set to YES, additional index files will be
  1192 +# generated that can be used as input for Apple's Xcode 3 integrated development
  1193 +# environment (see: http://developer.apple.com/tools/xcode/), introduced with
  1194 +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
  1195 +# Makefile in the HTML output directory. Running make will produce the docset in
  1196 +# that directory and running make install will install the docset in
  1197 +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
  1198 +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
  1199 +# for more information.
  1200 +# The default value is: NO.
  1201 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1202 +
  1203 +GENERATE_DOCSET = NO
  1204 +
  1205 +# This tag determines the name of the docset feed. A documentation feed provides
  1206 +# an umbrella under which multiple documentation sets from a single provider
  1207 +# (such as a company or product suite) can be grouped.
  1208 +# The default value is: Doxygen generated docs.
  1209 +# This tag requires that the tag GENERATE_DOCSET is set to YES.
  1210 +
  1211 +DOCSET_FEEDNAME = "Doxygen generated docs"
  1212 +
  1213 +# This tag specifies a string that should uniquely identify the documentation
  1214 +# set bundle. This should be a reverse domain-name style string, e.g.
  1215 +# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
  1216 +# The default value is: org.doxygen.Project.
  1217 +# This tag requires that the tag GENERATE_DOCSET is set to YES.
  1218 +
  1219 +DOCSET_BUNDLE_ID = org.doxygen.Project
  1220 +
  1221 +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
  1222 +# the documentation publisher. This should be a reverse domain-name style
  1223 +# string, e.g. com.mycompany.MyDocSet.documentation.
  1224 +# The default value is: org.doxygen.Publisher.
  1225 +# This tag requires that the tag GENERATE_DOCSET is set to YES.
  1226 +
  1227 +DOCSET_PUBLISHER_ID = org.doxygen.Publisher
  1228 +
  1229 +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
  1230 +# The default value is: Publisher.
  1231 +# This tag requires that the tag GENERATE_DOCSET is set to YES.
  1232 +
  1233 +DOCSET_PUBLISHER_NAME = Publisher
  1234 +
  1235 +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
  1236 +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
  1237 +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
  1238 +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
  1239 +# Windows.
  1240 +#
  1241 +# The HTML Help Workshop contains a compiler that can convert all HTML output
  1242 +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
  1243 +# files are now used as the Windows 98 help format, and will replace the old
  1244 +# Windows help format (.hlp) on all Windows platforms in the future. Compressed
  1245 +# HTML files also contain an index, a table of contents, and you can search for
  1246 +# words in the documentation. The HTML workshop also contains a viewer for
  1247 +# compressed HTML files.
  1248 +# The default value is: NO.
  1249 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1250 +
  1251 +GENERATE_HTMLHELP = NO
  1252 +
  1253 +# The CHM_FILE tag can be used to specify the file name of the resulting .chm
  1254 +# file. You can add a path in front of the file if the result should not be
  1255 +# written to the html output directory.
  1256 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1257 +
  1258 +CHM_FILE =
  1259 +
  1260 +# The HHC_LOCATION tag can be used to specify the location (absolute path
  1261 +# including file name) of the HTML help compiler (hhc.exe). If non-empty,
  1262 +# doxygen will try to run the HTML help compiler on the generated index.hhp.
  1263 +# The file has to be specified with full path.
  1264 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1265 +
  1266 +HHC_LOCATION =
  1267 +
  1268 +# The GENERATE_CHI flag controls if a separate .chi index file is generated
  1269 +# (YES) or that it should be included in the master .chm file (NO).
  1270 +# The default value is: NO.
  1271 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1272 +
  1273 +GENERATE_CHI = NO
  1274 +
  1275 +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
  1276 +# and project file content.
  1277 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1278 +
  1279 +CHM_INDEX_ENCODING =
  1280 +
  1281 +# The BINARY_TOC flag controls whether a binary table of contents is generated
  1282 +# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
  1283 +# enables the Previous and Next buttons.
  1284 +# The default value is: NO.
  1285 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1286 +
  1287 +BINARY_TOC = NO
  1288 +
  1289 +# The TOC_EXPAND flag can be set to YES to add extra items for group members to
  1290 +# the table of contents of the HTML help documentation and to the tree view.
  1291 +# The default value is: NO.
  1292 +# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
  1293 +
  1294 +TOC_EXPAND = YES
  1295 +
  1296 +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
  1297 +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
  1298 +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
  1299 +# (.qch) of the generated HTML documentation.
  1300 +# The default value is: NO.
  1301 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1302 +
  1303 +GENERATE_QHP = NO
  1304 +
  1305 +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
  1306 +# the file name of the resulting .qch file. The path specified is relative to
  1307 +# the HTML output folder.
  1308 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1309 +
  1310 +QCH_FILE =
  1311 +
  1312 +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
  1313 +# Project output. For more information please see Qt Help Project / Namespace
  1314 +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
  1315 +# The default value is: org.doxygen.Project.
  1316 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1317 +
  1318 +QHP_NAMESPACE = org.doxygen.Project
  1319 +
  1320 +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
  1321 +# Help Project output. For more information please see Qt Help Project / Virtual
  1322 +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
  1323 +# folders).
  1324 +# The default value is: doc.
  1325 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1326 +
  1327 +QHP_VIRTUAL_FOLDER = doc
  1328 +
  1329 +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
  1330 +# filter to add. For more information please see Qt Help Project / Custom
  1331 +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
  1332 +# filters).
  1333 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1334 +
  1335 +QHP_CUST_FILTER_NAME =
  1336 +
  1337 +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
  1338 +# custom filter to add. For more information please see Qt Help Project / Custom
  1339 +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
  1340 +# filters).
  1341 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1342 +
  1343 +QHP_CUST_FILTER_ATTRS =
  1344 +
  1345 +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
  1346 +# project's filter section matches. Qt Help Project / Filter Attributes (see:
  1347 +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
  1348 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1349 +
  1350 +QHP_SECT_FILTER_ATTRS =
  1351 +
  1352 +# The QHG_LOCATION tag can be used to specify the location of Qt's
  1353 +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
  1354 +# generated .qhp file.
  1355 +# This tag requires that the tag GENERATE_QHP is set to YES.
  1356 +
  1357 +QHG_LOCATION =
  1358 +
  1359 +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
  1360 +# generated, together with the HTML files, they form an Eclipse help plugin. To
  1361 +# install this plugin and make it available under the help contents menu in
  1362 +# Eclipse, the contents of the directory containing the HTML and XML files needs
  1363 +# to be copied into the plugins directory of eclipse. The name of the directory
  1364 +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
  1365 +# After copying Eclipse needs to be restarted before the help appears.
  1366 +# The default value is: NO.
  1367 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1368 +
  1369 +GENERATE_ECLIPSEHELP = NO
  1370 +
  1371 +# A unique identifier for the Eclipse help plugin. When installing the plugin
  1372 +# the directory name containing the HTML and XML files should also have this
  1373 +# name. Each documentation set should have its own identifier.
  1374 +# The default value is: org.doxygen.Project.
  1375 +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
  1376 +
  1377 +ECLIPSE_DOC_ID = org.doxygen.Project
  1378 +
  1379 +# If you want full control over the layout of the generated HTML pages it might
  1380 +# be necessary to disable the index and replace it with your own. The
  1381 +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
  1382 +# of each HTML page. A value of NO enables the index and the value YES disables
  1383 +# it. Since the tabs in the index contain the same information as the navigation
  1384 +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
  1385 +# The default value is: NO.
  1386 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1387 +
  1388 +DISABLE_INDEX = YES
  1389 +
  1390 +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
  1391 +# structure should be generated to display hierarchical information. If the tag
  1392 +# value is set to YES, a side panel will be generated containing a tree-like
  1393 +# index structure (just like the one that is generated for HTML Help). For this
  1394 +# to work a browser that supports JavaScript, DHTML, CSS and frames is required
  1395 +# (i.e. any modern browser). Windows users are probably better off using the
  1396 +# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
  1397 +# further fine-tune the look of the index. As an example, the default style
  1398 +# sheet generated by doxygen has an example that shows how to put an image at
  1399 +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
  1400 +# the same information as the tab index, you could consider setting
  1401 +# DISABLE_INDEX to YES when enabling this option.
  1402 +# The default value is: NO.
  1403 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1404 +
  1405 +GENERATE_TREEVIEW = YES
  1406 +
  1407 +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
  1408 +# doxygen will group on one line in the generated HTML documentation.
  1409 +#
  1410 +# Note that a value of 0 will completely suppress the enum values from appearing
  1411 +# in the overview section.
  1412 +# Minimum value: 0, maximum value: 20, default value: 4.
  1413 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1414 +
  1415 +ENUM_VALUES_PER_LINE = 1
  1416 +
  1417 +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
  1418 +# to set the initial width (in pixels) of the frame in which the tree is shown.
  1419 +# Minimum value: 0, maximum value: 1500, default value: 250.
  1420 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1421 +
  1422 +TREEVIEW_WIDTH = 250
  1423 +
  1424 +# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
  1425 +# external symbols imported via tag files in a separate window.
  1426 +# The default value is: NO.
  1427 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1428 +
  1429 +EXT_LINKS_IN_WINDOW = NO
  1430 +
  1431 +# Use this tag to change the font size of LaTeX formulas included as images in
  1432 +# the HTML documentation. When you change the font size after a successful
  1433 +# doxygen run you need to manually remove any form_*.png images from the HTML
  1434 +# output directory to force them to be regenerated.
  1435 +# Minimum value: 8, maximum value: 50, default value: 10.
  1436 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1437 +
  1438 +FORMULA_FONTSIZE = 10
  1439 +
  1440 +# Use the FORMULA_TRANPARENT tag to determine whether or not the images
  1441 +# generated for formulas are transparent PNGs. Transparent PNGs are not
  1442 +# supported properly for IE 6.0, but are supported on all modern browsers.
  1443 +#
  1444 +# Note that when changing this option you need to delete any form_*.png files in
  1445 +# the HTML output directory before the changes have effect.
  1446 +# The default value is: YES.
  1447 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1448 +
  1449 +FORMULA_TRANSPARENT = YES
  1450 +
  1451 +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
  1452 +# http://www.mathjax.org) which uses client side Javascript for the rendering
  1453 +# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
  1454 +# installed or if you want to formulas look prettier in the HTML output. When
  1455 +# enabled you may also need to install MathJax separately and configure the path
  1456 +# to it using the MATHJAX_RELPATH option.
  1457 +# The default value is: NO.
  1458 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1459 +
  1460 +USE_MATHJAX = NO
  1461 +
  1462 +# When MathJax is enabled you can set the default output format to be used for
  1463 +# the MathJax output. See the MathJax site (see:
  1464 +# http://docs.mathjax.org/en/latest/output.html) for more details.
  1465 +# Possible values are: HTML-CSS (which is slower, but has the best
  1466 +# compatibility), NativeMML (i.e. MathML) and SVG.
  1467 +# The default value is: HTML-CSS.
  1468 +# This tag requires that the tag USE_MATHJAX is set to YES.
  1469 +
  1470 +MATHJAX_FORMAT = HTML-CSS
  1471 +
  1472 +# When MathJax is enabled you need to specify the location relative to the HTML
  1473 +# output directory using the MATHJAX_RELPATH option. The destination directory
  1474 +# should contain the MathJax.js script. For instance, if the mathjax directory
  1475 +# is located at the same level as the HTML output directory, then
  1476 +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
  1477 +# Content Delivery Network so you can quickly see the result without installing
  1478 +# MathJax. However, it is strongly recommended to install a local copy of
  1479 +# MathJax from http://www.mathjax.org before deployment.
  1480 +# The default value is: http://cdn.mathjax.org/mathjax/latest.
  1481 +# This tag requires that the tag USE_MATHJAX is set to YES.
  1482 +
  1483 +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
  1484 +
  1485 +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
  1486 +# extension names that should be enabled during MathJax rendering. For example
  1487 +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
  1488 +# This tag requires that the tag USE_MATHJAX is set to YES.
  1489 +
  1490 +MATHJAX_EXTENSIONS =
  1491 +
  1492 +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
  1493 +# of code that will be used on startup of the MathJax code. See the MathJax site
  1494 +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
  1495 +# example see the documentation.
  1496 +# This tag requires that the tag USE_MATHJAX is set to YES.
  1497 +
  1498 +MATHJAX_CODEFILE =
  1499 +
  1500 +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
  1501 +# the HTML output. The underlying search engine uses javascript and DHTML and
  1502 +# should work on any modern browser. Note that when using HTML help
  1503 +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
  1504 +# there is already a search function so this one should typically be disabled.
  1505 +# For large projects the javascript based search engine can be slow, then
  1506 +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
  1507 +# search using the keyboard; to jump to the search box use <access key> + S
  1508 +# (what the <access key> is depends on the OS and browser, but it is typically
  1509 +# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
  1510 +# key> to jump into the search results window, the results can be navigated
  1511 +# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
  1512 +# the search. The filter options can be selected when the cursor is inside the
  1513 +# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
  1514 +# to select a filter and <Enter> or <escape> to activate or cancel the filter
  1515 +# option.
  1516 +# The default value is: YES.
  1517 +# This tag requires that the tag GENERATE_HTML is set to YES.
  1518 +
  1519 +SEARCHENGINE = NO
  1520 +
  1521 +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
  1522 +# implemented using a web server instead of a web client using Javascript. There
  1523 +# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
  1524 +# setting. When disabled, doxygen will generate a PHP script for searching and
  1525 +# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
  1526 +# and searching needs to be provided by external tools. See the section
  1527 +# "External Indexing and Searching" for details.
  1528 +# The default value is: NO.
  1529 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1530 +
  1531 +SERVER_BASED_SEARCH = NO
  1532 +
  1533 +# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
  1534 +# script for searching. Instead the search results are written to an XML file
  1535 +# which needs to be processed by an external indexer. Doxygen will invoke an
  1536 +# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
  1537 +# search results.
  1538 +#
  1539 +# Doxygen ships with an example indexer (doxyindexer) and search engine
  1540 +# (doxysearch.cgi) which are based on the open source search engine library
  1541 +# Xapian (see: http://xapian.org/).
  1542 +#
  1543 +# See the section "External Indexing and Searching" for details.
  1544 +# The default value is: NO.
  1545 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1546 +
  1547 +EXTERNAL_SEARCH = NO
  1548 +
  1549 +# The SEARCHENGINE_URL should point to a search engine hosted by a web server
  1550 +# which will return the search results when EXTERNAL_SEARCH is enabled.
  1551 +#
  1552 +# Doxygen ships with an example indexer (doxyindexer) and search engine
  1553 +# (doxysearch.cgi) which are based on the open source search engine library
  1554 +# Xapian (see: http://xapian.org/). See the section "External Indexing and
  1555 +# Searching" for details.
  1556 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1557 +
  1558 +SEARCHENGINE_URL =
  1559 +
  1560 +# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
  1561 +# search data is written to a file for indexing by an external tool. With the
  1562 +# SEARCHDATA_FILE tag the name of this file can be specified.
  1563 +# The default file is: searchdata.xml.
  1564 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1565 +
  1566 +SEARCHDATA_FILE = searchdata.xml
  1567 +
  1568 +# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
  1569 +# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
  1570 +# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
  1571 +# projects and redirect the results back to the right project.
  1572 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1573 +
  1574 +EXTERNAL_SEARCH_ID =
  1575 +
  1576 +# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
  1577 +# projects other than the one defined by this configuration file, but that are
  1578 +# all added to the same external search index. Each project needs to have a
  1579 +# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
  1580 +# to a relative location where the documentation can be found. The format is:
  1581 +# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
  1582 +# This tag requires that the tag SEARCHENGINE is set to YES.
  1583 +
  1584 +EXTRA_SEARCH_MAPPINGS =
  1585 +
  1586 +#---------------------------------------------------------------------------
  1587 +# Configuration options related to the LaTeX output
  1588 +#---------------------------------------------------------------------------
  1589 +
  1590 +# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
  1591 +# The default value is: YES.
  1592 +
  1593 +GENERATE_LATEX = NO
  1594 +
  1595 +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
  1596 +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
  1597 +# it.
  1598 +# The default directory is: latex.
  1599 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1600 +
  1601 +LATEX_OUTPUT = latex
  1602 +
  1603 +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
  1604 +# invoked.
  1605 +#
  1606 +# Note that when enabling USE_PDFLATEX this option is only used for generating
  1607 +# bitmaps for formulas in the HTML output, but not in the Makefile that is
  1608 +# written to the output directory.
  1609 +# The default file is: latex.
  1610 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1611 +
  1612 +LATEX_CMD_NAME = latex
  1613 +
  1614 +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
  1615 +# index for LaTeX.
  1616 +# The default file is: makeindex.
  1617 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1618 +
  1619 +MAKEINDEX_CMD_NAME = makeindex
  1620 +
  1621 +# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
  1622 +# documents. This may be useful for small projects and may help to save some
  1623 +# trees in general.
  1624 +# The default value is: NO.
  1625 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1626 +
  1627 +COMPACT_LATEX = NO
  1628 +
  1629 +# The PAPER_TYPE tag can be used to set the paper type that is used by the
  1630 +# printer.
  1631 +# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
  1632 +# 14 inches) and executive (7.25 x 10.5 inches).
  1633 +# The default value is: a4.
  1634 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1635 +
  1636 +PAPER_TYPE = a4wide
  1637 +
  1638 +# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
  1639 +# that should be included in the LaTeX output. To get the times font for
  1640 +# instance you can specify
  1641 +# EXTRA_PACKAGES=times
  1642 +# If left blank no extra packages will be included.
  1643 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1644 +
  1645 +EXTRA_PACKAGES =
  1646 +
  1647 +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
  1648 +# generated LaTeX document. The header should contain everything until the first
  1649 +# chapter. If it is left blank doxygen will generate a standard header. See
  1650 +# section "Doxygen usage" for information on how to let doxygen write the
  1651 +# default header to a separate file.
  1652 +#
  1653 +# Note: Only use a user-defined header if you know what you are doing! The
  1654 +# following commands have a special meaning inside the header: $title,
  1655 +# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
  1656 +# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
  1657 +# string, for the replacement values of the other commands the user is referred
  1658 +# to HTML_HEADER.
  1659 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1660 +
  1661 +LATEX_HEADER =
  1662 +
  1663 +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
  1664 +# generated LaTeX document. The footer should contain everything after the last
  1665 +# chapter. If it is left blank doxygen will generate a standard footer. See
  1666 +# LATEX_HEADER for more information on how to generate a default footer and what
  1667 +# special commands can be used inside the footer.
  1668 +#
  1669 +# Note: Only use a user-defined footer if you know what you are doing!
  1670 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1671 +
  1672 +LATEX_FOOTER =
  1673 +
  1674 +# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
  1675 +# LaTeX style sheets that are included after the standard style sheets created
  1676 +# by doxygen. Using this option one can overrule certain style aspects. Doxygen
  1677 +# will copy the style sheet files to the output directory.
  1678 +# Note: The order of the extra style sheet files is of importance (e.g. the last
  1679 +# style sheet in the list overrules the setting of the previous ones in the
  1680 +# list).
  1681 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1682 +
  1683 +LATEX_EXTRA_STYLESHEET =
  1684 +
  1685 +# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
  1686 +# other source files which should be copied to the LATEX_OUTPUT output
  1687 +# directory. Note that the files will be copied as-is; there are no commands or
  1688 +# markers available.
  1689 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1690 +
  1691 +LATEX_EXTRA_FILES =
  1692 +
  1693 +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
  1694 +# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
  1695 +# contain links (just like the HTML output) instead of page references. This
  1696 +# makes the output suitable for online browsing using a PDF viewer.
  1697 +# The default value is: YES.
  1698 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1699 +
  1700 +PDF_HYPERLINKS = YES
  1701 +
  1702 +# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
  1703 +# the PDF file directly from the LaTeX files. Set this option to YES, to get a
  1704 +# higher quality PDF documentation.
  1705 +# The default value is: YES.
  1706 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1707 +
  1708 +USE_PDFLATEX = YES
  1709 +
  1710 +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
  1711 +# command to the generated LaTeX files. This will instruct LaTeX to keep running
  1712 +# if errors occur, instead of asking the user for help. This option is also used
  1713 +# when generating formulas in HTML.
  1714 +# The default value is: NO.
  1715 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1716 +
  1717 +LATEX_BATCHMODE = NO
  1718 +
  1719 +# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
  1720 +# index chapters (such as File Index, Compound Index, etc.) in the output.
  1721 +# The default value is: NO.
  1722 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1723 +
  1724 +LATEX_HIDE_INDICES = NO
  1725 +
  1726 +# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
  1727 +# code with syntax highlighting in the LaTeX output.
  1728 +#
  1729 +# Note that which sources are shown also depends on other settings such as
  1730 +# SOURCE_BROWSER.
  1731 +# The default value is: NO.
  1732 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1733 +
  1734 +LATEX_SOURCE_CODE = NO
  1735 +
  1736 +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
  1737 +# bibliography, e.g. plainnat, or ieeetr. See
  1738 +# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
  1739 +# The default value is: plain.
  1740 +# This tag requires that the tag GENERATE_LATEX is set to YES.
  1741 +
  1742 +LATEX_BIB_STYLE = plain
  1743 +
  1744 +#---------------------------------------------------------------------------
  1745 +# Configuration options related to the RTF output
  1746 +#---------------------------------------------------------------------------
  1747 +
  1748 +# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
  1749 +# RTF output is optimized for Word 97 and may not look too pretty with other RTF
  1750 +# readers/editors.
  1751 +# The default value is: NO.
  1752 +
  1753 +GENERATE_RTF = NO
  1754 +
  1755 +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
  1756 +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
  1757 +# it.
  1758 +# The default directory is: rtf.
  1759 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1760 +
  1761 +RTF_OUTPUT = rtf
  1762 +
  1763 +# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
  1764 +# documents. This may be useful for small projects and may help to save some
  1765 +# trees in general.
  1766 +# The default value is: NO.
  1767 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1768 +
  1769 +COMPACT_RTF = NO
  1770 +
  1771 +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
  1772 +# contain hyperlink fields. The RTF file will contain links (just like the HTML
  1773 +# output) instead of page references. This makes the output suitable for online
  1774 +# browsing using Word or some other Word compatible readers that support those
  1775 +# fields.
  1776 +#
  1777 +# Note: WordPad (write) and others do not support links.
  1778 +# The default value is: NO.
  1779 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1780 +
  1781 +RTF_HYPERLINKS = NO
  1782 +
  1783 +# Load stylesheet definitions from file. Syntax is similar to doxygen's config
  1784 +# file, i.e. a series of assignments. You only have to provide replacements,
  1785 +# missing definitions are set to their default value.
  1786 +#
  1787 +# See also section "Doxygen usage" for information on how to generate the
  1788 +# default style sheet that doxygen normally uses.
  1789 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1790 +
  1791 +RTF_STYLESHEET_FILE =
  1792 +
  1793 +# Set optional variables used in the generation of an RTF document. Syntax is
  1794 +# similar to doxygen's config file. A template extensions file can be generated
  1795 +# using doxygen -e rtf extensionFile.
  1796 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1797 +
  1798 +RTF_EXTENSIONS_FILE =
  1799 +
  1800 +# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
  1801 +# with syntax highlighting in the RTF output.
  1802 +#
  1803 +# Note that which sources are shown also depends on other settings such as
  1804 +# SOURCE_BROWSER.
  1805 +# The default value is: NO.
  1806 +# This tag requires that the tag GENERATE_RTF is set to YES.
  1807 +
  1808 +RTF_SOURCE_CODE = NO
  1809 +
  1810 +#---------------------------------------------------------------------------
  1811 +# Configuration options related to the man page output
  1812 +#---------------------------------------------------------------------------
  1813 +
  1814 +# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
  1815 +# classes and files.
  1816 +# The default value is: NO.
  1817 +
  1818 +GENERATE_MAN = NO
  1819 +
  1820 +# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
  1821 +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
  1822 +# it. A directory man3 will be created inside the directory specified by
  1823 +# MAN_OUTPUT.
  1824 +# The default directory is: man.
  1825 +# This tag requires that the tag GENERATE_MAN is set to YES.
  1826 +
  1827 +MAN_OUTPUT = man
  1828 +
  1829 +# The MAN_EXTENSION tag determines the extension that is added to the generated
  1830 +# man pages. In case the manual section does not start with a number, the number
  1831 +# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
  1832 +# optional.
  1833 +# The default value is: .3.
  1834 +# This tag requires that the tag GENERATE_MAN is set to YES.
  1835 +
  1836 +MAN_EXTENSION = .3
  1837 +
  1838 +# The MAN_SUBDIR tag determines the name of the directory created within
  1839 +# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
  1840 +# MAN_EXTENSION with the initial . removed.
  1841 +# This tag requires that the tag GENERATE_MAN is set to YES.
  1842 +
  1843 +MAN_SUBDIR =
  1844 +
  1845 +# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
  1846 +# will generate one additional man file for each entity documented in the real
  1847 +# man page(s). These additional files only source the real man page, but without
  1848 +# them the man command would be unable to find the correct page.
  1849 +# The default value is: NO.
  1850 +# This tag requires that the tag GENERATE_MAN is set to YES.
  1851 +
  1852 +MAN_LINKS = NO
  1853 +
  1854 +#---------------------------------------------------------------------------
  1855 +# Configuration options related to the XML output
  1856 +#---------------------------------------------------------------------------
  1857 +
  1858 +# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
  1859 +# captures the structure of the code including all documentation.
  1860 +# The default value is: NO.
  1861 +
  1862 +GENERATE_XML = NO
  1863 +
  1864 +# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
  1865 +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
  1866 +# it.
  1867 +# The default directory is: xml.
  1868 +# This tag requires that the tag GENERATE_XML is set to YES.
  1869 +
  1870 +XML_OUTPUT = xml
  1871 +
  1872 +# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
  1873 +# listings (including syntax highlighting and cross-referencing information) to
  1874 +# the XML output. Note that enabling this will significantly increase the size
  1875 +# of the XML output.
  1876 +# The default value is: YES.
  1877 +# This tag requires that the tag GENERATE_XML is set to YES.
  1878 +
  1879 +XML_PROGRAMLISTING = YES
  1880 +
  1881 +#---------------------------------------------------------------------------
  1882 +# Configuration options related to the DOCBOOK output
  1883 +#---------------------------------------------------------------------------
  1884 +
  1885 +# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
  1886 +# that can be used to generate PDF.
  1887 +# The default value is: NO.
  1888 +
  1889 +GENERATE_DOCBOOK = NO
  1890 +
  1891 +# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
  1892 +# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
  1893 +# front of it.
  1894 +# The default directory is: docbook.
  1895 +# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
  1896 +
  1897 +DOCBOOK_OUTPUT = docbook
  1898 +
  1899 +# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
  1900 +# program listings (including syntax highlighting and cross-referencing
  1901 +# information) to the DOCBOOK output. Note that enabling this will significantly
  1902 +# increase the size of the DOCBOOK output.
  1903 +# The default value is: NO.
  1904 +# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
  1905 +
  1906 +DOCBOOK_PROGRAMLISTING = NO
  1907 +
  1908 +#---------------------------------------------------------------------------
  1909 +# Configuration options for the AutoGen Definitions output
  1910 +#---------------------------------------------------------------------------
  1911 +
  1912 +# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
  1913 +# AutoGen Definitions (see http://autogen.sf.net) file that captures the
  1914 +# structure of the code including all documentation. Note that this feature is
  1915 +# still experimental and incomplete at the moment.
  1916 +# The default value is: NO.
  1917 +
  1918 +GENERATE_AUTOGEN_DEF = NO
  1919 +
  1920 +#---------------------------------------------------------------------------
  1921 +# Configuration options related to the Perl module output
  1922 +#---------------------------------------------------------------------------
  1923 +
  1924 +# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
  1925 +# file that captures the structure of the code including all documentation.
  1926 +#
  1927 +# Note that this feature is still experimental and incomplete at the moment.
  1928 +# The default value is: NO.
  1929 +
  1930 +GENERATE_PERLMOD = NO
  1931 +
  1932 +# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
  1933 +# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
  1934 +# output from the Perl module output.
  1935 +# The default value is: NO.
  1936 +# This tag requires that the tag GENERATE_PERLMOD is set to YES.
  1937 +
  1938 +PERLMOD_LATEX = NO
  1939 +
  1940 +# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
  1941 +# formatted so it can be parsed by a human reader. This is useful if you want to
  1942 +# understand what is going on. On the other hand, if this tag is set to NO, the
  1943 +# size of the Perl module output will be much smaller and Perl will parse it
  1944 +# just the same.
  1945 +# The default value is: YES.
  1946 +# This tag requires that the tag GENERATE_PERLMOD is set to YES.
  1947 +
  1948 +PERLMOD_PRETTY = YES
  1949 +
  1950 +# The names of the make variables in the generated doxyrules.make file are
  1951 +# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
  1952 +# so different doxyrules.make files included by the same Makefile don't
  1953 +# overwrite each other's variables.
  1954 +# This tag requires that the tag GENERATE_PERLMOD is set to YES.
  1955 +
  1956 +PERLMOD_MAKEVAR_PREFIX =
  1957 +
  1958 +#---------------------------------------------------------------------------
  1959 +# Configuration options related to the preprocessor
  1960 +#---------------------------------------------------------------------------
  1961 +
  1962 +# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
  1963 +# C-preprocessor directives found in the sources and include files.
  1964 +# The default value is: YES.
  1965 +
  1966 +ENABLE_PREPROCESSING = YES
  1967 +
  1968 +# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
  1969 +# in the source code. If set to NO, only conditional compilation will be
  1970 +# performed. Macro expansion can be done in a controlled way by setting
  1971 +# EXPAND_ONLY_PREDEF to YES.
  1972 +# The default value is: NO.
  1973 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  1974 +
  1975 +MACRO_EXPANSION = YES
  1976 +
  1977 +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
  1978 +# the macro expansion is limited to the macros specified with the PREDEFINED and
  1979 +# EXPAND_AS_DEFINED tags.
  1980 +# The default value is: NO.
  1981 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  1982 +
  1983 +EXPAND_ONLY_PREDEF = YES
  1984 +
  1985 +# If the SEARCH_INCLUDES tag is set to YES, the include files in the
  1986 +# INCLUDE_PATH will be searched if a #include is found.
  1987 +# The default value is: YES.
  1988 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  1989 +
  1990 +SEARCH_INCLUDES = YES
  1991 +
  1992 +# The INCLUDE_PATH tag can be used to specify one or more directories that
  1993 +# contain include files that are not input files but should be processed by the
  1994 +# preprocessor.
  1995 +# This tag requires that the tag SEARCH_INCLUDES is set to YES.
  1996 +
  1997 +INCLUDE_PATH =
  1998 +
  1999 +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
  2000 +# patterns (like *.h and *.hpp) to filter out the header-files in the
  2001 +# directories. If left blank, the patterns specified with FILE_PATTERNS will be
  2002 +# used.
  2003 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  2004 +
  2005 +INCLUDE_FILE_PATTERNS =
  2006 +
  2007 +# The PREDEFINED tag can be used to specify one or more macro names that are
  2008 +# defined before the preprocessor is started (similar to the -D option of e.g.
  2009 +# gcc). The argument of the tag is a list of macros of the form: name or
  2010 +# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
  2011 +# is assumed. To prevent a macro definition from being undefined via #undef or
  2012 +# recursively expanded use the := operator instead of the = operator.
  2013 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  2014 +
  2015 +PREDEFINED = __DOXYGEN__ \
  2016 + PROGMEM
  2017 +
  2018 +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
  2019 +# tag can be used to specify a list of macro names that should be expanded. The
  2020 +# macro definition that is found in the sources will be used. Use the PREDEFINED
  2021 +# tag if you want to use a different macro definition that overrules the
  2022 +# definition found in the source code.
  2023 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  2024 +
  2025 +EXPAND_AS_DEFINED =
  2026 +
  2027 +# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
  2028 +# remove all references to function-like macros that are alone on a line, have
  2029 +# an all uppercase name, and do not end with a semicolon. Such function macros
  2030 +# are typically used for boiler-plate code, and will confuse the parser if not
  2031 +# removed.
  2032 +# The default value is: YES.
  2033 +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
  2034 +
  2035 +SKIP_FUNCTION_MACROS = YES
  2036 +
  2037 +#---------------------------------------------------------------------------
  2038 +# Configuration options related to external references
  2039 +#---------------------------------------------------------------------------
  2040 +
  2041 +# The TAGFILES tag can be used to specify one or more tag files. For each tag
  2042 +# file the location of the external documentation should be added. The format of
  2043 +# a tag file without this location is as follows:
  2044 +# TAGFILES = file1 file2 ...
  2045 +# Adding location for the tag files is done as follows:
  2046 +# TAGFILES = file1=loc1 "file2 = loc2" ...
  2047 +# where loc1 and loc2 can be relative or absolute paths or URLs. See the
  2048 +# section "Linking to external documentation" for more information about the use
  2049 +# of tag files.
  2050 +# Note: Each tag file must have a unique name (where the name does NOT include
  2051 +# the path). If a tag file is not located in the directory in which doxygen is
  2052 +# run, you must also specify the path to the tagfile here.
  2053 +
  2054 +TAGFILES =
  2055 +
  2056 +# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
  2057 +# tag file that is based on the input files it reads. See section "Linking to
  2058 +# external documentation" for more information about the usage of tag files.
  2059 +
  2060 +GENERATE_TAGFILE =
  2061 +
  2062 +# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
  2063 +# the class index. If set to NO, only the inherited external classes will be
  2064 +# listed.
  2065 +# The default value is: NO.
  2066 +
  2067 +ALLEXTERNALS = NO
  2068 +
  2069 +# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
  2070 +# in the modules index. If set to NO, only the current project's groups will be
  2071 +# listed.
  2072 +# The default value is: YES.
  2073 +
  2074 +EXTERNAL_GROUPS = YES
  2075 +
  2076 +# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
  2077 +# the related pages index. If set to NO, only the current project's pages will
  2078 +# be listed.
  2079 +# The default value is: YES.
  2080 +
  2081 +EXTERNAL_PAGES = YES
  2082 +
  2083 +# The PERL_PATH should be the absolute path and name of the perl script
  2084 +# interpreter (i.e. the result of 'which perl').
  2085 +# The default file (with absolute path) is: /usr/bin/perl.
  2086 +
  2087 +PERL_PATH = /usr/bin/perl
  2088 +
  2089 +#---------------------------------------------------------------------------
  2090 +# Configuration options related to the dot tool
  2091 +#---------------------------------------------------------------------------
  2092 +
  2093 +# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
  2094 +# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
  2095 +# NO turns the diagrams off. Note that this option also works with HAVE_DOT
  2096 +# disabled, but it is recommended to install and use dot, since it yields more
  2097 +# powerful graphs.
  2098 +# The default value is: YES.
  2099 +
  2100 +CLASS_DIAGRAMS = NO
  2101 +
  2102 +# You can define message sequence charts within doxygen comments using the \msc
  2103 +# command. Doxygen will then run the mscgen tool (see:
  2104 +# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
  2105 +# documentation. The MSCGEN_PATH tag allows you to specify the directory where
  2106 +# the mscgen tool resides. If left empty the tool is assumed to be found in the
  2107 +# default search path.
  2108 +
  2109 +MSCGEN_PATH =
  2110 +
  2111 +# You can include diagrams made with dia in doxygen documentation. Doxygen will
  2112 +# then run dia to produce the diagram and insert it in the documentation. The
  2113 +# DIA_PATH tag allows you to specify the directory where the dia binary resides.
  2114 +# If left empty dia is assumed to be found in the default search path.
  2115 +
  2116 +DIA_PATH =
  2117 +
  2118 +# If set to YES the inheritance and collaboration graphs will hide inheritance
  2119 +# and usage relations if the target is undocumented or is not a class.
  2120 +# The default value is: YES.
  2121 +
  2122 +HIDE_UNDOC_RELATIONS = YES
  2123 +
  2124 +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
  2125 +# available from the path. This tool is part of Graphviz (see:
  2126 +# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
  2127 +# Bell Labs. The other options in this section have no effect if this option is
  2128 +# set to NO
  2129 +# The default value is: NO.
  2130 +
  2131 +HAVE_DOT = NO
  2132 +
  2133 +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
  2134 +# to run in parallel. When set to 0 doxygen will base this on the number of
  2135 +# processors available in the system. You can set it explicitly to a value
  2136 +# larger than 0 to get control over the balance between CPU load and processing
  2137 +# speed.
  2138 +# Minimum value: 0, maximum value: 32, default value: 0.
  2139 +# This tag requires that the tag HAVE_DOT is set to YES.
  2140 +
  2141 +DOT_NUM_THREADS = 0
  2142 +
  2143 +# When you want a differently looking font in the dot files that doxygen
  2144 +# generates you can specify the font name using DOT_FONTNAME. You need to make
  2145 +# sure dot is able to find the font, which can be done by putting it in a
  2146 +# standard location or by setting the DOTFONTPATH environment variable or by
  2147 +# setting DOT_FONTPATH to the directory containing the font.
  2148 +# The default value is: Helvetica.
  2149 +# This tag requires that the tag HAVE_DOT is set to YES.
  2150 +
  2151 +DOT_FONTNAME =
  2152 +
  2153 +# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
  2154 +# dot graphs.
  2155 +# Minimum value: 4, maximum value: 24, default value: 10.
  2156 +# This tag requires that the tag HAVE_DOT is set to YES.
  2157 +
  2158 +DOT_FONTSIZE = 10
  2159 +
  2160 +# By default doxygen will tell dot to use the default font as specified with
  2161 +# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
  2162 +# the path where dot can find it using this tag.
  2163 +# This tag requires that the tag HAVE_DOT is set to YES.
  2164 +
  2165 +DOT_FONTPATH =
  2166 +
  2167 +# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
  2168 +# each documented class showing the direct and indirect inheritance relations.
  2169 +# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
  2170 +# The default value is: YES.
  2171 +# This tag requires that the tag HAVE_DOT is set to YES.
  2172 +
  2173 +CLASS_GRAPH = NO
  2174 +
  2175 +# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
  2176 +# graph for each documented class showing the direct and indirect implementation
  2177 +# dependencies (inheritance, containment, and class references variables) of the
  2178 +# class with other documented classes.
  2179 +# The default value is: YES.
  2180 +# This tag requires that the tag HAVE_DOT is set to YES.
  2181 +
  2182 +COLLABORATION_GRAPH = NO
  2183 +
  2184 +# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
  2185 +# groups, showing the direct groups dependencies.
  2186 +# The default value is: YES.
  2187 +# This tag requires that the tag HAVE_DOT is set to YES.
  2188 +
  2189 +GROUP_GRAPHS = NO
  2190 +
  2191 +# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
  2192 +# collaboration diagrams in a style similar to the OMG's Unified Modeling
  2193 +# Language.
  2194 +# The default value is: NO.
  2195 +# This tag requires that the tag HAVE_DOT is set to YES.
  2196 +
  2197 +UML_LOOK = NO
  2198 +
  2199 +# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
  2200 +# class node. If there are many fields or methods and many nodes the graph may
  2201 +# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
  2202 +# number of items for each type to make the size more manageable. Set this to 0
  2203 +# for no limit. Note that the threshold may be exceeded by 50% before the limit
  2204 +# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
  2205 +# but if the number exceeds 15, the total amount of fields shown is limited to
  2206 +# 10.
  2207 +# Minimum value: 0, maximum value: 100, default value: 10.
  2208 +# This tag requires that the tag HAVE_DOT is set to YES.
  2209 +
  2210 +UML_LIMIT_NUM_FIELDS = 10
  2211 +
  2212 +# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
  2213 +# collaboration graphs will show the relations between templates and their
  2214 +# instances.
  2215 +# The default value is: NO.
  2216 +# This tag requires that the tag HAVE_DOT is set to YES.
  2217 +
  2218 +TEMPLATE_RELATIONS = NO
  2219 +
  2220 +# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
  2221 +# YES then doxygen will generate a graph for each documented file showing the
  2222 +# direct and indirect include dependencies of the file with other documented
  2223 +# files.
  2224 +# The default value is: YES.
  2225 +# This tag requires that the tag HAVE_DOT is set to YES.
  2226 +
  2227 +INCLUDE_GRAPH = NO
  2228 +
  2229 +# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
  2230 +# set to YES then doxygen will generate a graph for each documented file showing
  2231 +# the direct and indirect include dependencies of the file with other documented
  2232 +# files.
  2233 +# The default value is: YES.
  2234 +# This tag requires that the tag HAVE_DOT is set to YES.
  2235 +
  2236 +INCLUDED_BY_GRAPH = NO
  2237 +
  2238 +# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
  2239 +# dependency graph for every global function or class method.
  2240 +#
  2241 +# Note that enabling this option will significantly increase the time of a run.
  2242 +# So in most cases it will be better to enable call graphs for selected
  2243 +# functions only using the \callgraph command.
  2244 +# The default value is: NO.
  2245 +# This tag requires that the tag HAVE_DOT is set to YES.
  2246 +
  2247 +CALL_GRAPH = NO
  2248 +
  2249 +# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
  2250 +# dependency graph for every global function or class method.
  2251 +#
  2252 +# Note that enabling this option will significantly increase the time of a run.
  2253 +# So in most cases it will be better to enable caller graphs for selected
  2254 +# functions only using the \callergraph command.
  2255 +# The default value is: NO.
  2256 +# This tag requires that the tag HAVE_DOT is set to YES.
  2257 +
  2258 +CALLER_GRAPH = NO
  2259 +
  2260 +# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
  2261 +# hierarchy of all classes instead of a textual one.
  2262 +# The default value is: YES.
  2263 +# This tag requires that the tag HAVE_DOT is set to YES.
  2264 +
  2265 +GRAPHICAL_HIERARCHY = NO
  2266 +
  2267 +# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
  2268 +# dependencies a directory has on other directories in a graphical way. The
  2269 +# dependency relations are determined by the #include relations between the
  2270 +# files in the directories.
  2271 +# The default value is: YES.
  2272 +# This tag requires that the tag HAVE_DOT is set to YES.
  2273 +
  2274 +DIRECTORY_GRAPH = NO
  2275 +
  2276 +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
  2277 +# generated by dot.
  2278 +# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
  2279 +# to make the SVG files visible in IE 9+ (other browsers do not have this
  2280 +# requirement).
  2281 +# Possible values are: png, jpg, gif and svg.
  2282 +# The default value is: png.
  2283 +# This tag requires that the tag HAVE_DOT is set to YES.
  2284 +
  2285 +DOT_IMAGE_FORMAT = png
  2286 +
  2287 +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
  2288 +# enable generation of interactive SVG images that allow zooming and panning.
  2289 +#
  2290 +# Note that this requires a modern browser other than Internet Explorer. Tested
  2291 +# and working are Firefox, Chrome, Safari, and Opera.
  2292 +# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
  2293 +# the SVG files visible. Older versions of IE do not have SVG support.
  2294 +# The default value is: NO.
  2295 +# This tag requires that the tag HAVE_DOT is set to YES.
  2296 +
  2297 +INTERACTIVE_SVG = NO
  2298 +
  2299 +# The DOT_PATH tag can be used to specify the path where the dot tool can be
  2300 +# found. If left blank, it is assumed the dot tool can be found in the path.
  2301 +# This tag requires that the tag HAVE_DOT is set to YES.
  2302 +
  2303 +DOT_PATH =
  2304 +
  2305 +# The DOTFILE_DIRS tag can be used to specify one or more directories that
  2306 +# contain dot files that are included in the documentation (see the \dotfile
  2307 +# command).
  2308 +# This tag requires that the tag HAVE_DOT is set to YES.
  2309 +
  2310 +DOTFILE_DIRS =
  2311 +
  2312 +# The MSCFILE_DIRS tag can be used to specify one or more directories that
  2313 +# contain msc files that are included in the documentation (see the \mscfile
  2314 +# command).
  2315 +
  2316 +MSCFILE_DIRS =
  2317 +
  2318 +# The DIAFILE_DIRS tag can be used to specify one or more directories that
  2319 +# contain dia files that are included in the documentation (see the \diafile
  2320 +# command).
  2321 +
  2322 +DIAFILE_DIRS =
  2323 +
  2324 +# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
  2325 +# path where java can find the plantuml.jar file. If left blank, it is assumed
  2326 +# PlantUML is not used or called during a preprocessing step. Doxygen will
  2327 +# generate a warning when it encounters a \startuml command in this case and
  2328 +# will not generate output for the diagram.
  2329 +
  2330 +PLANTUML_JAR_PATH =
  2331 +
  2332 +# When using plantuml, the specified paths are searched for files specified by
  2333 +# the !include statement in a plantuml block.
  2334 +
  2335 +PLANTUML_INCLUDE_PATH =
  2336 +
  2337 +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
  2338 +# that will be shown in the graph. If the number of nodes in a graph becomes
  2339 +# larger than this value, doxygen will truncate the graph, which is visualized
  2340 +# by representing a node as a red box. Note that doxygen if the number of direct
  2341 +# children of the root node in a graph is already larger than
  2342 +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
  2343 +# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
  2344 +# Minimum value: 0, maximum value: 10000, default value: 50.
  2345 +# This tag requires that the tag HAVE_DOT is set to YES.
  2346 +
  2347 +DOT_GRAPH_MAX_NODES = 15
  2348 +
  2349 +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
  2350 +# generated by dot. A depth value of 3 means that only nodes reachable from the
  2351 +# root by following a path via at most 3 edges will be shown. Nodes that lay
  2352 +# further from the root node will be omitted. Note that setting this option to 1
  2353 +# or 2 may greatly reduce the computation time needed for large code bases. Also
  2354 +# note that the size of a graph can be further restricted by
  2355 +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
  2356 +# Minimum value: 0, maximum value: 1000, default value: 0.
  2357 +# This tag requires that the tag HAVE_DOT is set to YES.
  2358 +
  2359 +MAX_DOT_GRAPH_DEPTH = 2
  2360 +
  2361 +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
  2362 +# background. This is disabled by default, because dot on Windows does not seem
  2363 +# to support this out of the box.
  2364 +#
  2365 +# Warning: Depending on the platform used, enabling this option may lead to
  2366 +# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
  2367 +# read).
  2368 +# The default value is: NO.
  2369 +# This tag requires that the tag HAVE_DOT is set to YES.
  2370 +
  2371 +DOT_TRANSPARENT = YES
  2372 +
  2373 +# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
  2374 +# files in one run (i.e. multiple -o and -T options on the command line). This
  2375 +# makes dot run faster, but since only newer versions of dot (>1.8.10) support
  2376 +# this, this feature is disabled by default.
  2377 +# The default value is: NO.
  2378 +# This tag requires that the tag HAVE_DOT is set to YES.
  2379 +
  2380 +DOT_MULTI_TARGETS = NO
  2381 +
  2382 +# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
  2383 +# explaining the meaning of the various boxes and arrows in the dot generated
  2384 +# graphs.
  2385 +# The default value is: YES.
  2386 +# This tag requires that the tag HAVE_DOT is set to YES.
  2387 +
  2388 +GENERATE_LEGEND = YES
  2389 +
  2390 +# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
  2391 +# files that are used to generate the various graphs.
  2392 +# The default value is: YES.
  2393 +# This tag requires that the tag HAVE_DOT is set to YES.
  2394 +
  2395 +DOT_CLEANUP = YES
... ...
Projet_USBKEY_MassStorageKeyboard/makefile 0 → 100644
... ... @@ -0,0 +1,43 @@
  1 +#
  2 +# LUFA Library
  3 +# Copyright (C) Dean Camera, 2017.
  4 +#
  5 +# dean [at] fourwalledcubicle [dot] com
  6 +# www.lufa-lib.org
  7 +#
  8 +# --------------------------------------
  9 +# LUFA Project Makefile.
  10 +# --------------------------------------
  11 +
  12 +# Run "make help" for target help.
  13 +
  14 +MCU = at90usb1287
  15 +ARCH = AVR8
  16 +BOARD = USBKEY
  17 +F_CPU = 8000000
  18 +F_USB = $(F_CPU)
  19 +OPTIMIZATION = s
  20 +TARGET = MassStorageKeyboard
  21 +SRC = $(TARGET).c Descriptors.c Lib/DataflashManager.c Lib/SCSI.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
  22 +LUFA_PATH = ../../../../LUFA
  23 +CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
  24 +LD_FLAGS =
  25 +
  26 +# Default target
  27 +all:
  28 +
  29 +# Include LUFA-specific DMBS extension modules
  30 +DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  31 +include $(DMBS_LUFA_PATH)/lufa-sources.mk
  32 +include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  33 +
  34 +# Include common DMBS build system modules
  35 +DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  36 +include $(DMBS_PATH)/core.mk
  37 +include $(DMBS_PATH)/cppcheck.mk
  38 +include $(DMBS_PATH)/doxygen.mk
  39 +include $(DMBS_PATH)/dfu.mk
  40 +include $(DMBS_PATH)/gcc.mk
  41 +include $(DMBS_PATH)/hid.mk
  42 +include $(DMBS_PATH)/avrdude.mk
  43 +include $(DMBS_PATH)/atprogram.mk
... ...