aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Descriptors.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-05-22 08:28:40 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-05-22 08:28:40 +0000
commit3cba88e4c05d6a3c25ffa9c7185d41a84b7f72b1 (patch)
treef356fef599a6b9fd290f99ecf694b6f84f8a61b7 /Projects/Webserver/Descriptors.h
parente349974aa9fdd6679a385d0da66005a27706b275 (diff)
downloadlufa-3cba88e4c05d6a3c25ffa9c7185d41a84b7f72b1.tar.gz
lufa-3cba88e4c05d6a3c25ffa9c7185d41a84b7f72b1.tar.bz2
lufa-3cba88e4c05d6a3c25ffa9c7185d41a84b7f72b1.zip
Add RNDIS Device support to the Webserver project, so that the files stored on the device can be viewed from a web-browser while the board is plugged into a host machine.
Diffstat (limited to 'Projects/Webserver/Descriptors.h')
-rw-r--r--Projects/Webserver/Descriptors.h32
1 files changed, 28 insertions, 4 deletions
diff --git a/Projects/Webserver/Descriptors.h b/Projects/Webserver/Descriptors.h
index 38cb23131..e285dfba5 100644
--- a/Projects/Webserver/Descriptors.h
+++ b/Projects/Webserver/Descriptors.h
@@ -51,6 +51,21 @@
/** Size in bytes of the Mass Storage data endpoints. */
#define MASS_STORAGE_IO_EPSIZE 64
+ /** Endpoint number of the CDC device-to-host notification IN endpoint. */
+ #define CDC_NOTIFICATION_EPNUM 5
+
+ /** Endpoint number of the CDC device-to-host data IN endpoint. */
+ #define CDC_TX_EPNUM 1
+
+ /** Endpoint number of the CDC host-to-device data OUT endpoint. */
+ #define CDC_RX_EPNUM 2
+
+ /** Size in bytes of the CDC device-to-host notification IN endpoint. */
+ #define CDC_NOTIFICATION_EPSIZE 8
+
+ /** Size in bytes of the CDC data IN and OUT endpoints. */
+ #define CDC_TXRX_EPSIZE 64
+
/* Type Defines: */
/** Type define for the device configuration descriptor structure. This must be defined in the
* application code, as the configuration descriptor contains several sub-descriptors which
@@ -58,10 +73,19 @@
*/
typedef struct
{
- USB_Descriptor_Configuration_Header_t Config;
- USB_Descriptor_Interface_t MS_Interface;
- USB_Descriptor_Endpoint_t MS_DataInEndpoint;
- USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
+ USB_Descriptor_Configuration_Header_t Config;
+ USB_Descriptor_Interface_Association_t CDC_IAD;
+ USB_Descriptor_Interface_t CDC_CCI_Interface;
+ USB_CDC_Descriptor_FunctionalHeader_t CDC_Functional_Header;
+ USB_CDC_Descriptor_FunctionalACM_t CDC_Functional_ACM;
+ USB_CDC_Descriptor_FunctionalUnion_t CDC_Functional_Union;
+ USB_Descriptor_Endpoint_t CDC_NotificationEndpoint;
+ USB_Descriptor_Interface_t CDC_DCI_Interface;
+ USB_Descriptor_Endpoint_t RNDIS_DataOutEndpoint;
+ USB_Descriptor_Endpoint_t RNDIS_DataInEndpoint;
+ USB_Descriptor_Interface_t MS_Interface;
+ USB_Descriptor_Endpoint_t MS_DataInEndpoint;
+ USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
} USB_Descriptor_Configuration_t;
/* Function Prototypes: */