Class
GUsbDevice
Instance methods
g_usb_device_add_tag
Adds a tag, which is included in the JSON log to identify the specific device.
Available since: 0.4.1
g_usb_device_bulk_transfer_finish
Gets the result from the asynchronous function.
Available since: 0.1.0
g_usb_device_control_transfer_finish
Gets the result from the asynchronous function.
Available since: 0.1.0
g_usb_device_get_bos_descriptor
Gets the first bos_descriptor that matches the descriptor capability.
If you want to find all the BOS descriptors that match (there may be other matching BOS
descriptors you have to use g_usb_device_get_bos_descriptors()
and check each one manually.
Available since: 0.4.0
g_usb_device_get_bos_descriptors
Gets all the BOS descriptors exported by the device.
Available since: 0.4.0
g_usb_device_get_configuration
Get the bConfigurationValue for the active configuration of the device.
Available since: 0.1.0
g_usb_device_get_configuration_index
Get the index for the active Configuration string descriptor ie, iConfiguration.
Available since: 0.3.5
g_usb_device_get_created
Gets the date and time that the GUsbDevice
was created.
Available since: 0.4.5
g_usb_device_get_custom_index
Gets the string index from the vendor class interface descriptor.
Available since: 0.2.5
g_usb_device_get_device_class
Gets the device class, typically a GUsbDeviceClassCode
.
Available since: 0.1.7
g_usb_device_get_device_protocol
Gets the device protocol qualified by the class and subclass numbers.
See g_usb_device_get_device_class()
and g_usb_device_get_device_subclass().
Available since: 0.2.4
g_usb_device_get_device_subclass
Gets the device subclass qualified by the class number. See g_usb_device_get_device_class().
Available since: 0.2.4
g_usb_device_get_hid_descriptor_default
Gets the default HID descriptors exported by the device.
Available since: 0.4.7
g_usb_device_get_hid_descriptors
Gets all the HID descriptors exported by the device.
Available since: 0.4.7
g_usb_device_get_interface
Gets the first interface that matches the vendor class interface descriptor.
If you want to find all the interfaces that match (there may be other
‘alternate’ interfaces you have to use g_usb_device_get_interfaces()
and
check each one manally.
Available since: 0.2.8
g_usb_device_get_manufacturer_index
Gets the index for the Manufacturer string descriptor.
Available since: 0.1.0
g_usb_device_get_product_index
Gets the index for the Product string descriptor.
Available since: 0.1.0
g_usb_device_get_release
Gets the BCD firmware version number for the device.
Available since: 0.2.8
g_usb_device_get_serial_number_index
Gets the index for the Serial Number string descriptor.
Available since: 0.1.0
g_usb_device_get_spec
Gets the BCD specification revision for the device. For example,
0x0110
indicates USB 1.1 and 0x0320 indicates USB 3.2
Available since: 0.3.1
g_usb_device_get_string_descriptor
Get a string descriptor from the device. The returned string should be freed
with g_free()
when no longer needed.
Available since: 0.1.0
g_usb_device_get_string_descriptor_bytes
Get a raw string descriptor from the device. The returned string should be freed
with g_bytes_unref()
when no longer needed.
The descriptor will be at most 128 btes in length, if you need to
issue a request with either a smaller or larger descriptor, you can
use g_usb_device_get_string_descriptor_bytes_full instead.
Available since: 0.3.6
g_usb_device_get_string_descriptor_bytes_full
Get a raw string descriptor from the device. The returned string should be freed
with g_bytes_unref()
when no longer needed.
Available since: 0.3.8
g_usb_device_has_tag
Checks if a tag has been used to identify the specific device.
Available since: 0.4.3
g_usb_device_interrupt_transfer_finish
Gets the result from the asynchronous function.
Available since: 0.1.0
g_usb_device_invalidate
Invalidates the caches used in g_usb_device_get_interfaces().
Available since: 0.4.0
g_usb_device_remove_tag
Removes a tag, which is included in the JSON log to identify the specific device.
Available since: 0.4.4
g_usb_device_set_configuration
Set the active bConfigurationValue for the device.
Available since: 0.1.0
Methods inherited from GObject (42)
Methods inherited from GInitable (1)
Properties
GUsb.Device:context
GUsb.Device:libusb-device
GUsb.Device:platform-id
Signals
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.