USB: add standard subclasses definitions
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2010 16:52:19 +0000 (16:52 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2010 16:52:19 +0000 (16:52 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4244 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/usb.h

index b68d9bf6fb5770007b3acede54ef7eba83af63fd..68af01362dd2d20c8d0dc1e2b8058963cfdf57dc 100644 (file)
@@ -252,6 +252,16 @@ typedef struct usb_string_descriptor
 #define USB_CLASS_APP_SPEC             0xfe
 #define USB_CLASS_VENDOR_SPEC          0xff
 
+/* USB Device subclasses */
+#define USB_CDC_SUBCLASS_ACM                    0x02
+#define USB_CDC_SUBCLASS_ETHERNET               0x06
+#define USB_CDC_SUBCLASS_WHCM                   0x08
+#define USB_CDC_SUBCLASS_DMM                    0x09
+#define USB_CDC_SUBCLASS_MDLM                   0x0a
+#define USB_CDC_SUBCLASS_OBEX                   0x0b
+#define USB_CDC_SUBCLASS_EEM                    0x0c
+#define USB_CDC_SUBCLASS_NCM                    0x0d
+
 /* Device configuration descriptor */
 typedef struct usb_config_descriptor
 {