Libusb class
Bindings to libusb.h
.
Constructors
- Libusb(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary
. -
Libusb.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup
.
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< list, int unref_devices) → voidlibusb_device> > -
libusb_free_pollfds(
Pointer< Pointer< pollfds) → voidlibusb_pollfd> > -
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< config) → intlibusb_config_descriptor> > -
libusb_get_bos_descriptor(
Pointer< libusb_device_handle> dev_handle, Pointer<Pointer< bos) → intlibusb_bos_descriptor> > -
libusb_get_bus_number(
Pointer< libusb_device> dev) → int -
libusb_get_config_descriptor(
Pointer< libusb_device> dev, int config_index, Pointer<Pointer< config) → intlibusb_config_descriptor> > -
libusb_get_config_descriptor_by_value(
Pointer< libusb_device> dev, int bConfigurationValue, Pointer<Pointer< config) → intlibusb_config_descriptor> > -
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< container_id) → intlibusb_container_id_descriptor> > -
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< list) → intPointer< >libusb_device> > -
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<timeval64> 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< ep_comp) → intlibusb_ss_endpoint_companion_descriptor> > -
libusb_get_ss_usb_device_capability_descriptor(
Pointer< libusb_context> ctx, Pointer<libusb_bos_dev_capability_descriptor> dev_cap, Pointer<Pointer< ss_usb_device_cap) → intlibusb_ss_usb_device_capability_descriptor> > -
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< usb_2_0_extension) → intlibusb_usb_2_0_extension_descriptor> > -
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<timeval64> tv) → int -
libusb_handle_events_timeout(
Pointer< libusb_context> ctx, Pointer<timeval64> tv) → int -
libusb_handle_events_timeout_completed(
Pointer< libusb_context> ctx, Pointer<timeval64> 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< cb_fn, Pointer<libusb_hotplug_callback_fn> >Void> user_data, Pointer<Int32> callback_handle) → int - \ingroup libusb_hotplug Register a hotplug callback function
-
libusb_init(
Pointer< Pointer< ctx) → intlibusb_context> > -
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< dev_handle) → intlibusb_device_handle> > -
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< cb, int mode) → voidlibusb_log_cb> > -
libusb_set_option(
Pointer< libusb_context> ctx, int option) → int -
libusb_set_pollfd_notifiers(
Pointer< libusb_context> ctx, Pointer<NativeFunction< added_cb, Pointer<libusb_pollfd_added_cb> >NativeFunction< removed_cb, Pointer<libusb_pollfd_removed_cb> >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<timeval64> tv) → int -
libusb_wrap_sys_device(
Pointer< libusb_context> ctx, int sys_dev, Pointer<Pointer< dev_handle) → intlibusb_device_handle> > -
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