enum libusb_capability

Overview

Capabilities supported by an instance of libusb on the current running platform. Moreā€¦

#include <libusb.h>

enum libusb_capability {
    LIBUSB_CAP_HAS_CAPABILITY                = 0x0000,
    LIBUSB_CAP_HAS_HOTPLUG                   = 0x0001,
    LIBUSB_CAP_HAS_HID_ACCESS                = 0x0100,
    LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER = 0x0101,
};

Detailed Documentation

Capabilities supported by an instance of libusb on the current running platform.

Test if the loaded library supports a given capability by calling libusb_has_capability().

Enum Values

LIBUSB_CAP_HAS_CAPABILITY

The libusb_has_capability() API is available.

LIBUSB_CAP_HAS_HOTPLUG

Hotplug support is available on this platform.

LIBUSB_CAP_HAS_HID_ACCESS

The library can access HID devices without requiring user intervention.

Note that before being able to actually access an HID device, you may still have to call additional libusb functions such as libusb_detach_kernel_driver().

LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER

The library supports detaching of the default USB driver, using libusb_detach_kernel_driver(), if one is set by the OS kernel.