最終更新:2017-06-13 (火) 15:10:48 (2509d)
libusb-1.0/関数
Top / libusb-1.0 / 関数
http://libusb.sourceforge.net/api-1.0/api.html
関数
Library initialization/deinitialization
libusb_set_debug? Set log message verbosity. libusb_init Initialize libusb. libusb_exit? Deinitialize libusb.
Device handling and enumeration
libusb_get_device_list Returns a list of USB devices currently attached to the system. libusb_free_device_list? Frees a list of devices previously discovered using libusb_get_device_list(). libusb_get_bus_number? Get the number of the bus that a device is connected to. libusb_get_port_number? Get the number of the port that a device is connected to. libusb_get_port_numbers? Get the list of all port numbers from root for the specified device. libusb_get_port_path? Deprecated please use libusb_get_port_numbers? instead. libusb_get_parent? Get the the parent from the specified device. libusb_get_device_address? Get the address of the device on the bus it is connected to. libusb_get_device_speed? Get the negotiated connection speed for a device. libusb_get_max_packet_size? Convenience function to retrieve the wMaxPacketSize? value for a particular endpoint in the active device configuration. libusb_get_max_iso_packet_size? Calculate the maximum packet size which a specific endpoint is capable is sending or receiving in the duration of 1 microframe. libusb_ref_device? Increment the reference count of a device. libusb_unref_device? Decrement the reference count of a device. libusb_open Open a device and obtain a device handle. libusb_open_device_with_vid_pid Convenience function for finding a device with a particular idVendor/idProduct combination. libusb_close? Close a device handle. libusb_get_device? Get the underlying device for a handle. libusb_get_configuration? Determine the bConfigurationValue? of the currently active configuration. libusb_set_configuration? Set the active configuration for a device. libusb_claim_interface Claim an interface on a given device handle. libusb_release_interface? Release an interface previously claimed with libusb_claim_interface(). libusb_set_interface_alt_setting? Activate an alternate setting for an interface. libusb_clear_halt? Clear the halt/stall condition for an endpoint. libusb_reset_device? Perform a USB port reset to reinitialize a device. libusb_kernel_driver_active Determine if a kernel driver is active on an interface. libusb_detach_kernel_driver? Detach a kernel driver from an interface. libusb_attach_kernel_driver? Re-attach an interface's kernel driver, which was previously detached using libusb_detach_kernel_driver?(). libusb_set_auto_detach_kernel_driver Enable/disable libusb's automatic kernel driver detachment.
Miscellaneous
libusb_has_capability? Check at runtime if the loaded library has a given capability. libusb_error_name? Returns a constant NULL-terminated string with the ASCII name of a libusb error or transfer status code. libusb_get_version? Returns a pointer to const struct libusb_version with the version (major, minor, micro, nano and rc) of the running library. libusb_cpu_to_le16? Convert a 16-bit value from host-endian to little-endian format. libusb_setlocale? libusb_strerror?
USB descriptors
libusb_get_device_descriptor? libusb_get_active_config_descriptor? libusb_get_config_descriptor? libusb_get_config_descriptor_by_value? libusb_free_config_descriptor? libusb_get_ss_endpoint_companion_descriptor? libusb_free_ss_endpoint_companion_descriptor? libusb_get_bos_descriptor? libusb_free_bos_descriptor? libusb_get_usb_2_0_extension_descriptor? libusb_free_usb_2_0_extension_descriptor? libusb_get_ss_usb_device_capability_descriptor? libusb_free_ss_usb_device_capability_descriptor? libusb_get_container_id_descriptor? libusb_free_container_id_descriptor? libusb_get_string_descriptor_ascii? libusb_get_descriptor? libusb_get_string_descriptor?
Device hotplug event notification
Asynchronous device I/O
libusb_alloc_streams? libusb_free_streams? libusb_alloc_transfer? libusb_free_transfer? libusb_submit_transfer libusb_cancel_transfer? libusb_transfer_set_stream_id? libusb_transfer_get_stream_id? libusb_control_transfer_get_data? libusb_control_transfer_get_setup? libusb_fill_control_setup libusb_fill_control_transfer libusb_fill_bulk_transfer? libusb_fill_bulk_stream_transfer? libusb_fill_interrupt_transfer? libusb_fill_iso_transfer? libusb_set_iso_packet_lengths? libusb_get_iso_packet_buffer? libusb_get_iso_packet_buffer_simple?
Polling and timing
libusb_try_lock_events? libusb_lock_events? libusb_unlock_events? libusb_event_handling_ok? libusb_event_handler_active? libusb_lock_event_waiters? libusb_unlock_event_waiters? libusb_wait_for_event? libusb_handle_events_timeout_completed? libusb_handle_events_timeout? libusb_handle_events? libusb_handle_events_completed? libusb_handle_events_locked? libusb_pollfds_handle_timeouts? libusb_get_next_timeout? libusb_set_pollfd_notifiers? libusb_get_pollfds? libusb_free_pollfds?
Synchronous device I/O
libusb_control_transfer Perform a USB control transfer. libusb_bulk_transfer? Perform a USB bulk transfer. libusb_interrupt_transfer? Perform a USB interrupt transfer.