libusb_endpoint_descriptor is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_endpoint_descriptor

libusb_endpoint_descriptor struct

A structure representing the standard USB endpoint descriptor. This descriptor is documented in section 9.6.6 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.

Syntax

struct libusb_endpoint_descriptor {     uint8_t  bLength;     uint8_t  bDescriptorType;     uint8_t  bEndpointAddress;     uint8_t  bmAttributes;     uint16_t wMaxPacketSize;     uint8_t  bInterval;     uint8_t  bRefresh;     uint8_t  bSynchAddress;     const unsigned char *extra;     int extra_length; };

Fields

bLength

Size of this descriptor (in bytes). Read more...

bDescriptorType

Descriptor type. Will have value libusb_descriptor_type ::LIBUSB_DT_ENDPOINT LIBUSB_DT_ENDPOINT in this context. Read more...

bEndpointAddress

The address of the endpoint described by this descriptor. Bits 0:3 are the endpoint number. Bits 4:6 are reserved. Bit 7 indicates direction, see libusb_endpoint_direction . Read more...

bmAttributes

Attributes which apply to the endpoint when it is configured using the bConfigurationValue. Bits 0:1 determine the transfer type and correspond to libusb_endpoint_transfer_type . Bits 2:3 are only used for isochronous endpoints and correspond to libusb_iso_sync_type . Bits 4:5 are also only used for isochronous endpoints and correspond to libusb_iso_usage_type . Bits 6:7 are reserved. Read more...

wMaxPacketSize

Maximum packet size this endpoint is capable of sending/receiving. Read more...

bInterval

Interval for polling endpoint for data transfers. Read more...

bRefresh

For audio devices only: the rate at which synchronization feedback is provided. Read more...

bSynchAddress

For audio devices only: the address if the synch endpoint. Read more...

extra

Extra descriptors. If libusb encounters unknown endpoint descriptors, it will store them here, should you wish to parse them. Read more...

extra_length

Length of the extra descriptors, in bytes. Must be non-negative. Read more...

References

LocationReferrerScopeText
libusb.h:627
struct libusb_endpoint_descriptor {
descriptor.c:78clear_endpoint()
static void clear_endpoint(struct libusb_endpoint_descriptor *endpoint)
descriptor.c:84parse_endpoint()
struct libusb_endpoint_descriptor *endpoint, const uint8_t *buffer, int size)
descriptor.c:181clear_interface()
clear_endpoint((struct libusb_endpoint_descriptor *)
descriptor.c:184clear_interface()
free((void *)ifp->endpoint);
descriptor.c:295parse_interface()
struct libusb_endpoint_descriptor *endpoint;
descriptor.c:298parse_interface()
endpoint = calloc(ifp->bNumEndpoints, sizeof(*endpoint));
libusb.h:769libusb_interface_descriptor::endpointlibusb_interface_descriptor
const struct libusb_endpoint_descriptor *endpoint;
libusb.h:1609libusb_get_ss_endpoint_companion_descriptor()::endpointlibusb_get_ss_endpoint_companion_descriptor()
const struct libusb_endpoint_descriptor *endpoint,

Type Use

Variables of libusb_endpoint_descriptor type
libusb_get_ss_endpoint_companion_descriptor()::endpoint
parse_interface()::endpoint
all items filtered out
libusb_endpoint_descriptor
Allocators of libusb_endpoint_descriptor
Deletors of libusb_endpoint_descriptor
all items filtered out
libusb_endpoint_descriptor
all items filtered out