libusb32 library Null safety

Classes

Libusb
Bindings to libusb.h.
libusb_bos_descriptor
\ingroup libusb_desc A structure representing the Binary Device Object Store (BOS) descriptor. This descriptor is documented in section 9.6.2 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_bos_dev_capability_descriptor
\ingroup libusb_desc 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.
libusb_bos_type
\ingroup libusb_dev USB capability types
libusb_capability
\ingroup libusb_misc Capabilities supported by an instance of libusb on the current running platform. Test if the loaded library supports a given capability by calling \ref libusb_has_capability().
libusb_class_code
\ingroup libusb_desc Device and/or Interface Class codes
libusb_config_descriptor
\ingroup libusb_desc A structure representing the standard USB configuration descriptor. This descriptor is documented in section 9.6.3 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_container_id_descriptor
\ingroup libusb_desc A structure representing the Container ID descriptor. This descriptor is documented in section 9.6.2.3 of the USB 3.0 specification. All multiple-byte fields, except UUIDs, are represented in host-endian format.
libusb_context
libusb_control_setup
\ingroup libusb_asyncio Setup packet for control transfers.
libusb_descriptor_type
\ingroup libusb_desc Descriptor types as defined by the USB specification.
libusb_device
libusb_device_descriptor
\ingroup libusb_desc A structure representing the standard USB device descriptor. This descriptor is documented in section 9.6.1 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_device_handle
libusb_endpoint_descriptor
\ingroup libusb_desc 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.
libusb_endpoint_direction
\ingroup libusb_desc Endpoint direction. Values for bit 7 of the \ref libusb_endpoint_descriptor::bEndpointAddress "endpoint address" scheme.
libusb_error
\ingroup libusb_misc Error codes. Most libusb functions return 0 on success or one of these codes on failure. You can call libusb_error_name() to retrieve a string representation of an error code or libusb_strerror() to get an end-user suitable description of an error code.
libusb_hotplug_event
\ingroup libusb_hotplug
libusb_hotplug_flag
\ingroup libusb_hotplug
libusb_interface
\ingroup libusb_desc A collection of alternate settings for a particular USB interface.
libusb_interface_descriptor
\ingroup libusb_desc A structure representing the standard USB interface descriptor. This descriptor is documented in section 9.6.5 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_iso_packet_descriptor
\ingroup libusb_asyncio Isochronous packet descriptor.
libusb_iso_sync_type
\ingroup libusb_desc Synchronization type for isochronous endpoints. Values for bits 2:3 of the \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in libusb_endpoint_descriptor.
libusb_iso_usage_type
\ingroup libusb_desc Usage type for isochronous endpoints. Values for bits 4:5 of the \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in libusb_endpoint_descriptor.
libusb_log_cb_mode
\ingroup libusb_lib Log callback mode. \see libusb_set_log_cb()
libusb_log_level
\ingroup libusb_lib Log message levels.
libusb_option
\ingroup libusb_lib Available option values for libusb_set_option().
libusb_pollfd
\ingroup libusb_poll File descriptor for polling
libusb_request_recipient
\ingroup libusb_misc Recipient bits of the \ref libusb_control_setup::bmRequestType "bmRequestType" field in control transfers. Values 4 through 31 are reserved.
libusb_request_type
\ingroup libusb_misc Request type bits of the \ref libusb_control_setup::bmRequestType "bmRequestType" field in control transfers.
libusb_speed
\ingroup libusb_dev Speed codes. Indicates the speed at which the device is operating.
libusb_ss_endpoint_companion_descriptor
\ingroup libusb_desc A structure representing the superspeed endpoint companion descriptor. This descriptor is documented in section 9.6.7 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_ss_usb_device_capability_attributes
\ingroup libusb_dev Masks for the bits of the \ref libusb_ss_usb_device_capability_descriptor::bmAttributes "bmAttributes" field field of the SuperSpeed USB Device Capability descriptor.
libusb_ss_usb_device_capability_descriptor
\ingroup libusb_desc A structure representing the SuperSpeed USB Device Capability descriptor This descriptor is documented in section 9.6.2.2 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_standard_request
\ingroup libusb_misc Standard requests, as defined in table 9-5 of the USB 3.0 specifications
libusb_supported_speed
\ingroup libusb_dev Supported speeds (wSpeedSupported) bitfield. Indicates what speeds the device supports.
libusb_transfer
\ingroup libusb_asyncio The generic USB transfer structure. The user populates this structure and then submits it in order to request a transfer. After the transfer has completed, the library populates the transfer with the results and passes it back to the user.
libusb_transfer_flags
\ingroup libusb_asyncio libusb_transfer.flags values
libusb_transfer_status
\ingroup libusb_asyncio Transfer status codes
libusb_transfer_type
\ingroup libusb_desc Endpoint transfer type. Values for bits 0:1 of the \ref libusb_endpoint_descriptor::bmAttributes "endpoint attributes" field.
libusb_usb_2_0_extension_attributes
\ingroup libusb_dev Masks for the bits of the \ref libusb_usb_2_0_extension_descriptor::bmAttributes "bmAttributes" field of the USB 2.0 Extension descriptor.
libusb_usb_2_0_extension_descriptor
\ingroup libusb_desc A structure representing the USB 2.0 Extension descriptor This descriptor is documented in section 9.6.2.1 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.
libusb_version
\ingroup libusb_lib Structure providing the version of the libusb runtime
timeval32

Constants

LIBUSB_API_VERSION → const int
16777479
LIBUSB_BT_CONTAINER_ID_SIZE → const int
20
LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE → const int
10
LIBUSB_BT_USB_2_0_EXTENSION_SIZE → const int
7
LIBUSB_CONTROL_SETUP_SIZE → const int
8
LIBUSB_DT_BOS_MAX_SIZE → const int
42
LIBUSB_DT_BOS_SIZE → const int
5
LIBUSB_DT_CONFIG_SIZE → const int
9
LIBUSB_DT_DEVICE_CAPABILITY_SIZE → const int
3
LIBUSB_DT_DEVICE_SIZE → const int
18
LIBUSB_DT_ENDPOINT_AUDIO_SIZE → const int
9
LIBUSB_DT_ENDPOINT_SIZE → const int
7
LIBUSB_DT_HUB_NONVAR_SIZE → const int
7
LIBUSB_DT_INTERFACE_SIZE → const int
9
LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE → const int
6
LIBUSB_ENDPOINT_ADDRESS_MASK → const int
15
LIBUSB_ENDPOINT_DIR_MASK → const int
128
LIBUSB_ERROR_COUNT → const int
14
LIBUSB_HOTPLUG_MATCH_ANY → const int
-1
LIBUSB_ISO_SYNC_TYPE_MASK → const int
12
LIBUSB_ISO_USAGE_TYPE_MASK → const int
48
LIBUSB_TRANSFER_TYPE_MASK → const int
3
LIBUSBX_API_VERSION → const int
16777479
ZERO_SIZED_ARRAY → const int
0

Typedefs

libusb_hotplug_callback_fn = Int32 Function(Pointer<libusb_context>, Pointer<libusb_device>, Int32, Pointer<Void>)
libusb_log_cb = Void Function(Pointer<libusb_context>, Int32, Pointer<Int8>)
libusb_pollfd_added_cb = Void Function(Int32, Int16, Pointer<Void>)
libusb_pollfd_removed_cb = Void Function(Int32, Pointer<Void>)