// ----------------------------------- // USB CDC ACM Descriptors // ----------------------------------- Configuration_Desc_Set desc_Config_Set = { // Configuration Descriptor { 0x09, // bLength DSC_TYPE_CONFIG, // bDescriptorType 0x0064, // wTotalLength // 2014.06.11 modified: 0x43 -> 0x64 0x03, // bNumInterfaces // 2014.06.11 modified: 0x02 -> 0x03 0x01, // bConfigurationValue 0x04, // iConfiguration DSC_CONFIG_ATR_BASE, // bmAttributes DSC_MAXPOWER(500), // bMaxPower // 2014.06.11 modified: 100 -> 500 }, // Interface Association Descriptor // 2014.06.11 modified: new { 0x08, // bLength DSC_TYPE_INTERFACE_ASSOCIATION, // bDescriptorType 0x00, // bFirstInterface 0x02, // bInterfaceCount 0x02, // bFunctionClass (CDC_COMMUNICATION_INTERFACE_CLASS) 0x02, // bFuntionSubClass (CDC_ABSTRACT_CONTROL_MODEL) 0x01, // bFunctionProtocol 0x00, // iFunction }, // Communication Interface Class Descriptor
// ----------------------------------- // USB CDC ACM Descriptors // ----------------------------------- Configuration_Desc_Set desc_Config_Set = { // Configuration Descriptor { 0x09, // bLength DSC_TYPE_CONFIG, // bDescriptorType 0x0043, // wTotalLength 0x02, // bNumInterfaces. 0x01, // bConfigurationValue 0x04, // iConfiguration DSC_CONFIG_ATR_BASE | // bmAttributes DSC_CONFIG_ATR_REMOTE_WAKEUP, DSC_MAXPOWER(100), // bMaxPower }, // Communication Interface Class Descriptor { 0x09, // bLength DSC_TYPE_INTERFACE, // bDescriptorType 0x00, // bInterfaceNumber 0x00, // bAlternateSetting 0x01, // bNumEndpoints 0x02, // bInterfaceClass 0x02, // bInterfaceSubClass 0x01, // bInterfaceProtocol 0x05, // iInterface },