我们会发现USBH_InterfaceDescTypeDef中有多了 USBH_EpDescTypeDef Ep_Desc[USBH_MAX_NUM_ENDPOINTS]; typedef struct _InterfaceDescriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bInterfaceNumber; uint8_t bAlternateSetting; /* Value used to select alternative setting */ uint8_t ...
bNumEndpoints 该接口所使用的端点数量(不包括端点零)。 bInterfaceClass 由USB标准化组织(USB-IF)分配的设备类代码。 bInterfaceSubClass 由USB标准化组织(USB-IF)分配的子类代码,其值由bInterfaceClass的值限定。 bInterfaceProtocol 由USB标准化组织(USB-IF)分配的协议代码,其值由bInterfaceClass和bInterfaceSubCla...
uint8_t bNumEndpoints; /*!< total number of endpoints in the interface */ uint8_t bInte...
CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system with USB IP - CherryUSB/class/cdc/usbh_cdc_ecm.c at 07ced6d02307eee93e00408dea16fdfe8b000796 · cherry-embedded/CherryUSB
48、truct _InterfaceDescriptoruint8_t bLength;uint8_t bDescriptorType;uint8_t bInterfaceNumber;uint8_t bAlternateSetting; /* Value used to select alternative setting */uint8_t bNumEndpoints; /* Number of Endpoints used for this interface */uint8_t bInterfaceClass; /* Class Code (Assigne...
{if(phost->ClassNumber < USBH_MAX_NUM_SUPPORTED_CLASS) {/* link the class to the USB Host handle */phost->pClass[phost->ClassNumber++] = pclass; status = USBH_OK; }else{USBH_ErrLog("Max Class Number reached"); status = USBH_FAIL; ...
uint16_t wMaxPacketSize; /**< Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected. */ uint8_t bInterval; /**< Interval for polling Isochronous and Interrupt endpoints. Expressed in frames or microframes depending on the device operating ...
//0x01,//bNumConfigurations(1); 0x12,//bLength(18); 0x01,//bDescriptorType(Device); 0x00,0x02,//bcdUSB(2.00); 0xFF,//bDeviceClass(0); 0xFF,//bDeviceSubClass0); 0xFF,//bDeviceProtocol(0); 0x40,//bMaxPacketSize0(64); ...
BYTEbNumInterfaces; //此配置所支持的接口数量 BYTEbConfigurationValue; //Set_Configuration命令所需要的参数值 BYTEiConfiguration; //描述该配置的字符串的索引值 BYTEbmAttributes; //供电模式的选择 BYTEMaxPower; //设备从总线提取的最大电流 } CONFIGURATION_DESCRIPTOR_STRUCT,*pCONFIGURATION_DESCRIPTOR_STRUCT; ...
/** Number of endpoints used by this interface (excluding the control * endpoint). */ uint8_t bNumEndpoints; /** USB-IF class code for this interface. See \ref libusb_class_code. */ uint8_t bInterfaceClass; /** USB-IF subclass code for this interface, qualified by the ...