libusbK 
3.0
Library Documentation
© 2011-2021 Travis Lee Robinson. All rights reserved.
USB_ENDPOINT_DESCRIPTOR Struct Reference

A structure representing the standard USB endpoint descriptor. More...

#include <libusbk.h>

Data Fields

UCHAR bLength
 Size of this descriptor (in bytes)
 
UCHAR bDescriptorType
 Descriptor type.
 
UCHAR bEndpointAddress
 The address of the endpoint described by this descriptor. More...
 
UCHAR bmAttributes
 Attributes which apply to the endpoint when it is configured using the bConfigurationValue. More...
 
USHORT wMaxPacketSize
 Maximum packet size this endpoint is capable of sending/receiving.
 
UCHAR bInterval
 Interval for polling endpoint for data transfers.
 

Detailed Description

A structure representing the standard USB endpoint descriptor.

This descriptor is documented in section 9.6.3 of the USB 2.0 specification. All multiple-byte fields are represented in host-endian format.

Field Documentation

UCHAR 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
UCHAR bmAttributes

Attributes which apply to the endpoint when it is configured using the bConfigurationValue.

  • Bits 0:1 determine the transfer type.
  • Bits 2:3 are only used for isochronous endpoints and refer to sync type.
  • Bits 4:5 are also only used for isochronous endpoints and refer to usage type.
  • Bits 6:7 are reserved.

The documentation for this struct was generated from the following file: