Top | ![]() |
![]() |
![]() |
![]() |
#define | G_USB_CHECK_VERSION() |
FuUsbDevice * | fu_usb_device_new () |
FuUsbDevice * | fu_usb_device_new_with_context () |
guint16 | fu_usb_device_get_vid () |
guint16 | fu_usb_device_get_pid () |
guint16 | fu_usb_device_get_spec () |
GUsbDevice * | fu_usb_device_get_dev () |
void | fu_usb_device_set_dev () |
gboolean | fu_usb_device_is_open () |
GUdevDevice * | fu_usb_device_find_udev_device () |
void | fu_usb_device_set_configuration () |
void | fu_usb_device_add_interface () |
#define | GUsbContext |
#define | GUsbDevice |
#define | FU_TYPE_USB_DEVICE |
struct | FuUsbDeviceClass |
FuUsbDevice |
FuUsbDevice *
fu_usb_device_new (GUsbDevice *usb_device
);
fu_usb_device_new
is deprecated and should not be used in newly-written code.
Creates a new FuUsbDevice.
Since: 1.0.2
FuUsbDevice * fu_usb_device_new_with_context (FuContext *ctx
,GUsbDevice *usb_device
);
Creates a new FuUsbDevice.
Since: 1.7.1
guint16
fu_usb_device_get_vid (FuUsbDevice *self
);
Gets the device vendor code.
Since: 1.1.2
guint16
fu_usb_device_get_pid (FuUsbDevice *self
);
Gets the device product code.
Since: 1.1.2
guint16
fu_usb_device_get_spec (FuUsbDevice *self
);
Gets the string USB revision for the device.
Since: 1.3.4
GUsbDevice *
fu_usb_device_get_dev (FuUsbDevice *device
);
Gets the GUsbDevice.
Since: 1.0.2
void fu_usb_device_set_dev (FuUsbDevice *device
,GUsbDevice *usb_device
);
Sets the GUsbDevice to use.
Since: 1.0.2
gboolean
fu_usb_device_is_open (FuUsbDevice *device
);
Finds out if a USB device is currently open.
Since: 1.0.3
GUdevDevice * fu_usb_device_find_udev_device (FuUsbDevice *device
,GError **error
);
Gets the matching GUdevDevice for the GUsbDevice.
Since: 1.3.2
void fu_usb_device_set_configuration (FuUsbDevice *device
,gint configuration
);
Set the active bConfigurationValue for the device.
Since: 1.7.4
void fu_usb_device_add_interface (FuUsbDevice *device
,guint8 number
);
Adds an interface that will be claimed on ->
and released on open()
->
.close()
Since: 1.7.4