DeviceHandle
Object Hierarchy:
Description:
[ CCode ( cname = "libusb_device_handle" , cprefix = "libusb_" , free_function = "libusb_close" ) ]
[ Compact ]
public class DeviceHandle
Content:
Creation methods:
Methods:
- public Error attach_kernel_driver (int @interface)
- public Error bulk_transfer (uint8 endpoint, uint8[] data, out int transferred, uint timeout)
- public Error claim_interface (int interface_number)
- public Error clear_halt (uchar endpoint)
- public Error control_transfer (uint8 bmRequestType, uint8 bRequest, uint16 wValue, uint16 wIndex, uint8[] data, uint16 wLength, uint timeout)
- public Error detach_kernel_driver (int @interface)
- public DeviceHandle from_device (Device device)
- public Error get_bos_descriptor (out BosDescriptor bos)
- public Error get_configuration (out int config)
- public Error get_descriptor (uint8 desc_type, uint8 desc_index, uint8[] data)
- public unowned Device get_device ()
- public Error get_string_descriptor (uint desc_index, uint16 langid, uint8[] data)
- public Error get_string_descriptor_ascii (uint8 desc_index, uint8[] data)
- public Error interrupt_transfer (uint8 endpoint, uint8[] data, out int transferred, uint timeout)
- public Error kernel_driver_active (int @interface)
- public Error release_interface (int interface_number)
- public Error reset ()
- public Error set_auto_detach_kernel_driver (bool enable)
- public Error set_configuration (int configuration)
- public Error set_interface_alt_setting (int interface_number, int alternate_setting)