From: arighi Date: Mon, 20 Sep 2010 16:52:19 +0000 (+0000) Subject: USB: add standard subclasses definitions X-Git-Tag: 2.6.0~157 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ea55bf87b5e954a4939dece9aec37e364da15b93;p=bertos.git USB: add standard subclasses definitions git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4244 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/usb.h b/bertos/drv/usb.h index b68d9bf6..68af0136 100644 --- a/bertos/drv/usb.h +++ b/bertos/drv/usb.h @@ -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 {