LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
libusb_endpoint_descriptor Struct Reference

#include <libusb.h>

Data Fields

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
 

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.

Definition at line 357 of file libusb.h.

Field Documentation

uint8_t bDescriptorType

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

Definition at line 364 of file libusb.h.

uint8_t 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.

Definition at line 370 of file libusb.h.

uint8_t bInterval

Interval for polling endpoint for data transfers.

Definition at line 385 of file libusb.h.

uint8_t bLength

Size of this descriptor (in bytes)

Definition at line 359 of file libusb.h.

uint8_t 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_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.

Definition at line 379 of file libusb.h.

uint8_t bRefresh

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

Definition at line 389 of file libusb.h.

uint8_t bSynchAddress

For audio devices only: the address if the synch endpoint

Definition at line 392 of file libusb.h.

const unsigned char* extra

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

Definition at line 396 of file libusb.h.

int extra_length

Length of the extra descriptors, in bytes.

Definition at line 399 of file libusb.h.

uint16_t wMaxPacketSize

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

Definition at line 382 of file libusb.h.


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