typedefstruct_USB_ENDPOINT_DESCRIPTOR{UCHAR bLength; UCHAR bDescriptorType; UCHAR bEndpointAddress; UCHAR bmAttributes; USHORT wMaxPacketSize; UCHAR bInterval; } USB_ENDPOINT_DESCRIPTOR, *PUSB_ENDPOINT_DESCRIPTOR; 成员 bLength 指定此描述符的长度(以字节为单位)。
1 bDescriptorType uint8_t 1 Constant Endpoint Descriptor Type = 5. 2 bEndpointAddress uint8_t 1 Endpoint The address of the endpoint on the USB device described by this descriptor. The address is encoded as follows: Bit 3...0: The endpoint number Bit 6...4: Reserved, reset to ze...
0 bLength 1 0x07 Size of this descriptor, in bytes 1 bDescriptorType 1 0x05 ENDPOINT descriptor 2 bEndpointAddress 1 0x81 Endpoint 1 IN 3 bmAttributes 1 0x03 Interrupt Endpoint 4 wMaxPacketSize 2 0x0008 8 byte maximum packet size 6 bInterval 1 0x01 Polling intervalSee...
EndpointInit - Pointer to the Opaque UFXENDPOINT_INIT object --*/ { NTSTATUS Status; USB_ENDPOINT_DESCRIPTOR Descriptor; PAGED_CODE(); TraceEntry(); Descriptor.bDescriptorType = USB_ENDPOINT_DESCRIPTOR_TYPE; Descriptor.bEndpointAddress = 0; Descriptor.bInterval = 0; Descriptor.b...
typedef struct {UCHAR bLength;UCHAR bDescriptorType;UCHAR bEndpointAddress;UCHAR bmAttributes;USHORT wMaxPacketSize;UCHAR bInterval;} USB_ENDPOINT; Members bLength Size, in bytes, of this structure. bDescriptorType Constant valueENDPOINT. bEndpointAddress ...
0000 4002 bmAttributes=2(bulk, non-sync, data), wMaxPacketSize=0x40, bInterval=0 最后还得SendControlStatusHandshake. 接下来是Endpoint Zero Setup bmRequestType = 0xx80, bRequest=0x6, wValue=0x300,wIndex=0x0,wLength=0xff, host想要get string descriptor(wValue高八位=0x3)了,这回wValue低八...
Size of this descriptor, in bytes 1 bDescriptorType 1 0x05 ENDPOINT descriptor 2 bEndpointAddress 1 0x81 Endpoint 1 IN 3 bmAttributes 1 0x03 Interrupt Endpoint 4 wMaxPacketSize 2 0x0008 8 byte maximum packet size 6 bInterval 1 0x01 ...
Speed from libusbK. Idealy the speed should be 12MB/sec for the high bandwidth high speed Interrupt IN/OUT endpoint when bInterval = 2 (250us). 3072 B / 250 us = 120,288 Bytes/sec. PS C:\libusbK-dev-kit_release> .\klist Loading USB ID's ...
descriptor), .bDescriptorType = USB_DESC_ENDPOINT, .bEndpointAddress = 0x81, .bmAttributes = USB_DC_EP_BULK, .wMaxPacketSize = sys_cpu_to_le16(16), .bInterval = 0x00, }, /* Data Endpoint OUT */ .can0_cmdout_ep = { .bLength = sizeof(struct usb_ep_descriptor), .bDescriptor...
Status pipe (0x02) Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Command pipe (0x01) Bus 001 Device 005: ID 05e3:0610 Genesys Logic, Inc....