Module usb::libusb [] [src]

Reexports

pub use self::libusb_class_code::*;
pub use self::libusb_descriptor_type::*;
pub use self::libusb_endpoint_direction::*;
pub use self::libusb_transfer_type::*;
pub use self::libusb_error::*;
pub use self::libusb_transfer_status::*;

Structs

libusb_config_descriptor

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_context
libusb_control_setup

Setup packet for control transfers.

libusb_device
libusb_device_descriptor

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

A structure representing the standard USB endpodescriptor: c_int. 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_interface

A collection of alternate settings for a particular USB interface.

libusb_interface_descriptor

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 asyncio * Isochronous packet descriptor.

libusb_transfer

\ingroup 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.

Enums

libusb_class_code

Device and/or Interface Class codes

libusb_descriptor_type

Descriptor types as defined by the USB specification.

libusb_endpoint_direction
libusb_error

Error codes. Most libusbx 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_transfer_status

\ingroup asyncio * Transfer status codes

libusb_transfer_type

Functions

libusb_alloc_transfer
libusb_attach_kernel_driver
libusb_cancel_transfer
libusb_claim_interface
libusb_clear_halt
libusb_close
libusb_detach_kernel_driver
libusb_exit
libusb_free_config_descriptor
libusb_free_device_list
libusb_free_transfer
libusb_get_active_config_descriptor
libusb_get_bus_number
libusb_get_config_descriptor
libusb_get_config_descriptor_by_value
libusb_get_configuration
libusb_get_device
libusb_get_device_address
libusb_get_device_descriptor
libusb_get_device_list
libusb_get_device_speed
libusb_get_max_iso_packet_size
libusb_get_max_packet_size
libusb_get_port_number
libusb_handle_events
libusb_handle_events_completed
libusb_init
libusb_kernel_driver_active
libusb_open
libusb_ref_device
libusb_release_interface
libusb_reset_device
libusb_set_configuration
libusb_set_debug
libusb_set_interface_alt_setting
libusb_submit_transfer
libusb_unref_device

Type Definitions

libusb_callback_fn