Libusb class

Bindings to libusb.h.

Constructors

Libusb(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

libusb_alloc_streams(Pointer<libusb_device_handle> dev_handle, int num_streams, Pointer<Uint8> endpoints, int num_endpoints) int
libusb_alloc_transfer(int iso_packets) Pointer<libusb_transfer>
libusb_attach_kernel_driver(Pointer<libusb_device_handle> dev_handle, int interface_number) int
libusb_bulk_transfer(Pointer<libusb_device_handle> dev_handle, int endpoint, Pointer<Uint8> data, int length, Pointer<Int32> actual_length, int timeout) int
libusb_cancel_transfer(Pointer<libusb_transfer> transfer) int
libusb_claim_interface(Pointer<libusb_device_handle> dev_handle, int interface_number) int
libusb_clear_halt(Pointer<libusb_device_handle> dev_handle, int endpoint) int
libusb_close(Pointer<libusb_device_handle> dev_handle) → void
libusb_control_transfer(Pointer<libusb_device_handle> dev_handle, int request_type, int bRequest, int wValue, int wIndex, Pointer<Uint8> data, int wLength, int timeout) int
libusb_detach_kernel_driver(Pointer<libusb_device_handle> dev_handle, int interface_number) int
libusb_dev_mem_alloc(Pointer<libusb_device_handle> dev_handle, int length) Pointer<Uint8>
libusb_dev_mem_free(Pointer<libusb_device_handle> dev_handle, Pointer<Uint8> buffer, int length) int
libusb_error_name(int errcode) Pointer<Int8>
libusb_event_handler_active(Pointer<libusb_context> ctx) int
libusb_event_handling_ok(Pointer<libusb_context> ctx) int
libusb_exit(Pointer<libusb_context> ctx) → void
libusb_free_bos_descriptor(Pointer<libusb_bos_descriptor> bos) → void
libusb_free_config_descriptor(Pointer<libusb_config_descriptor> config) → void
libusb_free_container_id_descriptor(Pointer<libusb_container_id_descriptor> container_id) → void
libusb_free_device_list(Pointer<Pointer<libusb_device>> list, int unref_devices) → void
libusb_free_pollfds(Pointer<Pointer<libusb_pollfd>> pollfds) → void
libusb_free_ss_endpoint_companion_descriptor(Pointer<libusb_ss_endpoint_companion_descriptor> ep_comp) → void
libusb_free_ss_usb_device_capability_descriptor(Pointer<libusb_ss_usb_device_capability_descriptor> ss_usb_device_cap) → void
libusb_free_streams(Pointer<libusb_device_handle> dev_handle, Pointer<Uint8> endpoints, int num_endpoints) int
libusb_free_transfer(Pointer<libusb_transfer> transfer) → void
libusb_free_usb_2_0_extension_descriptor(Pointer<libusb_usb_2_0_extension_descriptor> usb_2_0_extension) → void
libusb_get_active_config_descriptor(Pointer<libusb_device> dev, Pointer<Pointer<libusb_config_descriptor>> config) int
libusb_get_bos_descriptor(Pointer<libusb_device_handle> dev_handle, Pointer<Pointer<libusb_bos_descriptor>> bos) int
libusb_get_bus_number(Pointer<libusb_device> dev) int
libusb_get_config_descriptor(Pointer<libusb_device> dev, int config_index, Pointer<Pointer<libusb_config_descriptor>> config) int
libusb_get_config_descriptor_by_value(Pointer<libusb_device> dev, int bConfigurationValue, Pointer<Pointer<libusb_config_descriptor>> config) int
libusb_get_configuration(Pointer<libusb_device_handle> dev, Pointer<Int32> config) int
libusb_get_container_id_descriptor(Pointer<libusb_context> ctx, Pointer<libusb_bos_dev_capability_descriptor> dev_cap, Pointer<Pointer<libusb_container_id_descriptor>> container_id) int
libusb_get_device(Pointer<libusb_device_handle> dev_handle) Pointer<libusb_device>
libusb_get_device_address(Pointer<libusb_device> dev) int
libusb_get_device_descriptor(Pointer<libusb_device> dev, Pointer<libusb_device_descriptor> desc) int
libusb_get_device_list(Pointer<libusb_context> ctx, Pointer<Pointer<Pointer<libusb_device>>> list) int
libusb_get_device_speed(Pointer<libusb_device> dev) int
libusb_get_max_iso_packet_size(Pointer<libusb_device> dev, int endpoint) int
libusb_get_max_packet_size(Pointer<libusb_device> dev, int endpoint) int
libusb_get_next_timeout(Pointer<libusb_context> ctx, Pointer<timeval32> tv) int
libusb_get_parent(Pointer<libusb_device> dev) Pointer<libusb_device>
libusb_get_pollfds(Pointer<libusb_context> ctx) Pointer<Pointer<libusb_pollfd>>
libusb_get_port_number(Pointer<libusb_device> dev) int
libusb_get_port_numbers(Pointer<libusb_device> dev, Pointer<Uint8> port_numbers, int port_numbers_len) int
libusb_get_port_path(Pointer<libusb_context> ctx, Pointer<libusb_device> dev, Pointer<Uint8> path, int path_length) int
libusb_get_ss_endpoint_companion_descriptor(Pointer<libusb_context> ctx, Pointer<libusb_endpoint_descriptor> endpoint, Pointer<Pointer<libusb_ss_endpoint_companion_descriptor>> ep_comp) int
libusb_get_ss_usb_device_capability_descriptor(Pointer<libusb_context> ctx, Pointer<libusb_bos_dev_capability_descriptor> dev_cap, Pointer<Pointer<libusb_ss_usb_device_capability_descriptor>> ss_usb_device_cap) int
libusb_get_string_descriptor_ascii(Pointer<libusb_device_handle> dev_handle, int desc_index, Pointer<Uint8> data, int length) int
libusb_get_usb_2_0_extension_descriptor(Pointer<libusb_context> ctx, Pointer<libusb_bos_dev_capability_descriptor> dev_cap, Pointer<Pointer<libusb_usb_2_0_extension_descriptor>> usb_2_0_extension) int
libusb_get_version() Pointer<libusb_version>
libusb_handle_events(Pointer<libusb_context> ctx) int
libusb_handle_events_completed(Pointer<libusb_context> ctx, Pointer<Int32> completed) int
libusb_handle_events_locked(Pointer<libusb_context> ctx, Pointer<timeval32> tv) int
libusb_handle_events_timeout(Pointer<libusb_context> ctx, Pointer<timeval32> tv) int
libusb_handle_events_timeout_completed(Pointer<libusb_context> ctx, Pointer<timeval32> tv, Pointer<Int32> completed) int
libusb_has_capability(int capability) int
libusb_hotplug_deregister_callback(Pointer<libusb_context> ctx, int callback_handle) → void
\ingroup libusb_hotplug Deregisters a hotplug callback.
libusb_hotplug_register_callback(Pointer<libusb_context> ctx, int events, int flags, int vendor_id, int product_id, int dev_class, Pointer<NativeFunction<libusb_hotplug_callback_fn>> cb_fn, Pointer<Void> user_data, Pointer<Int32> callback_handle) int
\ingroup libusb_hotplug Register a hotplug callback function
libusb_init(Pointer<Pointer<libusb_context>> ctx) int
libusb_interrupt_event_handler(Pointer<libusb_context> ctx) → void
libusb_interrupt_transfer(Pointer<libusb_device_handle> dev_handle, int endpoint, Pointer<Uint8> data, int length, Pointer<Int32> actual_length, int timeout) int
libusb_kernel_driver_active(Pointer<libusb_device_handle> dev_handle, int interface_number) int
libusb_lock_event_waiters(Pointer<libusb_context> ctx) → void
libusb_lock_events(Pointer<libusb_context> ctx) → void
libusb_open(Pointer<libusb_device> dev, Pointer<Pointer<libusb_device_handle>> dev_handle) int
libusb_open_device_with_vid_pid(Pointer<libusb_context> ctx, int vendor_id, int product_id) Pointer<libusb_device_handle>
libusb_pollfds_handle_timeouts(Pointer<libusb_context> ctx) int
libusb_ref_device(Pointer<libusb_device> dev) Pointer<libusb_device>
libusb_release_interface(Pointer<libusb_device_handle> dev_handle, int interface_number) int
libusb_reset_device(Pointer<libusb_device_handle> dev_handle) int
libusb_set_auto_detach_kernel_driver(Pointer<libusb_device_handle> dev_handle, int enable) int
libusb_set_configuration(Pointer<libusb_device_handle> dev_handle, int configuration) int
libusb_set_debug(Pointer<libusb_context> ctx, int level) → void
libusb_set_interface_alt_setting(Pointer<libusb_device_handle> dev_handle, int interface_number, int alternate_setting) int
libusb_set_log_cb(Pointer<libusb_context> ctx, Pointer<NativeFunction<libusb_log_cb>> cb, int mode) → void
libusb_set_option(Pointer<libusb_context> ctx, int option) int
libusb_set_pollfd_notifiers(Pointer<libusb_context> ctx, Pointer<NativeFunction<libusb_pollfd_added_cb>> added_cb, Pointer<NativeFunction<libusb_pollfd_removed_cb>> removed_cb, Pointer<Void> user_data) → void
libusb_setlocale(Pointer<Int8> locale) int
libusb_strerror(int errcode) Pointer<Int8>
libusb_submit_transfer(Pointer<libusb_transfer> transfer) int
libusb_transfer_get_stream_id(Pointer<libusb_transfer> transfer) int
libusb_transfer_set_stream_id(Pointer<libusb_transfer> transfer, int stream_id) → void
libusb_try_lock_events(Pointer<libusb_context> ctx) int
libusb_unlock_event_waiters(Pointer<libusb_context> ctx) → void
libusb_unlock_events(Pointer<libusb_context> ctx) → void
libusb_unref_device(Pointer<libusb_device> dev) → void
libusb_wait_for_event(Pointer<libusb_context> ctx, Pointer<timeval32> tv) int
libusb_wrap_sys_device(Pointer<libusb_context> ctx, int sys_dev, Pointer<Pointer<libusb_device_handle>> dev_handle) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited