Class
GUsbDevice
Instance methods
g_usb_device_add_tag
Adds a tag, which is included in the JSON log to identify the specific device.
since: 0.4.1
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.
since: 0.4.0
g_usb_device_get_configuration
Get the bConfigurationValue for the active configuration of the device.
since: 0.1.0
g_usb_device_get_configuration_index
Get the index for the active Configuration string descriptor ie, iConfiguration.
since: 0.3.5
g_usb_device_get_custom_index
Gets the string index from the vendor class interface descriptor.
since: 0.2.5
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().
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().
since: 0.2.4
g_usb_device_get_hid_descriptor_default
Gets the default HID descriptors exported by the device.
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.
since: 0.2.8
g_usb_device_get_manufacturer_index
Gets the index for the Manufacturer string descriptor.
since: 0.1.0
g_usb_device_get_serial_number_index
Gets the index for the Serial Number string descriptor.
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.
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.
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.
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.
since: 0.3.8
g_usb_device_remove_tag
Removes a tag, which is included in the JSON log to identify the specific device.
since: 0.4.4
Methods inherited from GInitable (1)
g_initable_init
Initializes the object implementing the interface.
Signals
Signals inherited from GObject (1)
GObject::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.