USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR 结构 USB_DEVICE_DESCRIPTOR 结构 USB_DEVICE_QUALIFIER_DESCRIPTOR 结构 USB_DEVICE_SPEED 枚举 USB_ENDPOINT_DESCRIPTOR 结构 USB_HUB_DESCRIPTOR结构 USB_INTERFACE_DESCRIPTOR 结构 USB_STRING_DESCRIPTOR结构
r =libusb_get_string_descriptor(dev, desc_index, langid, tbuf,sizeof(tbuf));if(r <0)returnr;if(tbuf[1] != LIBUSB_DT_STRING)returnLIBUSB_ERROR_IO;if(tbuf[0] > r)returnLIBUSB_ERROR_IO;for(di =0, si =2; si < tbuf[0]; si +=2) {if(di >= (length -1))break;if((tbuf...
When CONFIG_USB_DEVICE_SN is set to odd-length string (e.g. "CHANGEMEPLZ" :), which is 11 characters): the usb_update_sn_string_descriptor generates 1 byte too long (12 chars) failing usb_fix_ascii_sn_string_descriptor check for string length equality the generated USB serial remains c...
aNumber and LED setting.[translate] aUSB Descriptor is for users to set USB related information as VID, PID, Manufacture String (30 这页存储供营商信息。 它包含VID, PID,供营商串,产品串,连续[translate]
UsbClient Namespace Configuration Class Configuration.ClassDescriptor Class Configuration.ConfigurationDescriptor Class Configuration.Descriptor Class Configuration.DeviceDescriptor Class Configuration.Endpoint Class Configuration.GenericDescriptor Class Configuration.StringDescriptor Class Configuration.StringDescriptor Class ...
USB_DEVICE_DESCRIPTOR構造体 USB_DEVICE_QUALIFIER_DESCRIPTOR構造体 USB_DEVICE_SPEED列挙 USB_ENDPOINT_DESCRIPTOR構造体 USB_HUB_DESCRIPTOR構造体 USB_INTERFACE_DESCRIPTOR構造体 USB_STRING_DESCRIPTOR構造体 USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR構造体 ...
void_dump_dev_strings(libusb_device_handle *phDev, struct libusb_device_descriptor *pdDev,constchar*pIndent) {unsignedcharpStr[256];intrc;memset(pStr,0,sizeof(pStr)); rc =libusb_get_string_descriptor_ascii(phDev, pdDev->iManufacturer, ...
TheConfiguration. . :: . .StringDescriptortype exposes the following members. Methods Top See Also Reference Configuration. . :: . .StringDescriptor Class Microsoft.SPOT.Hardware.UsbClient Namespace
typedef struct _USB_STRING_DESCRIPTOR { UCHAR bLength; UCHAR bDescriptorType; WCHAR bString[1]; } USB_STRING_DESCRIPTOR, *PUSB_STRING_DESCRIPTOR; 成员 bLength 指定描述符的长度(以字节为单位)。 bDescriptorType 指定描述符类型。 必须始终USB_STRING_DESCRIPTOR_TYPE。 bString[1] 指向客户端分配的...
typedefstruct_USB_STRING_DESCRIPTOR{UCHAR bLength; UCHAR bDescriptorType; WCHAR bString[1]; } USB_STRING_DESCRIPTOR, *PUSB_STRING_DESCRIPTOR; Membros bLength Especifica o comprimento, em bytes, do descritor. bDescriptorType Especifica o tipo de descritor. Deve ser sempre USB_STRING_DESCRIPTOR_...