struct libusb_bos_dev_capability_descriptor

Overview

A generic representation of a BOS Device Capability descriptor. Moreā€¦

#include <libusb.h>

struct libusb_bos_dev_capability_descriptor {
    // fields

    uint8_t bLength;
    uint8_t bDescriptorType;
    uint8_t bDevCapabilityType;
    uint8_t dev_capability_data[0];
};

Detailed Documentation

A generic representation of a BOS Device Capability descriptor.

It is advised to check bDevCapabilityType and call the matching libusb_get_*_descriptor function to get a structure fully matching the type.

Fields

uint8_t bLength

Size of this descriptor (in bytes)

uint8_t bDescriptorType

Descriptor type.

Will have value libusb_descriptor_type::LIBUSB_DT_DEVICE_CAPABILITY LIBUSB_DT_DEVICE_CAPABILITY in this context.

uint8_t bDevCapabilityType

Device Capability type.

uint8_t dev_capability_data[0]

Device Capability data (bLength - 3 bytes)