### Class

# FwupdPlugin HidDevice

since: 1.0

#### Description [src]

    class FwupdPlugin.HidDevice : FwupdPlugin.UsbDevice
    {
      /* No available fields */
    }

A Human Interface Device (HID) device.

See also: `FuDevice`, `FuUsbDevice`

Available since: 1.0

#### Hierarchy

#### Ancestors

- FuUsbDevice
- FuDevice
- FwupdDevice
- GObject

#### Constructors

###### fu_hid_device_new

Creates a new HID device.

since: 1.4.0

#### Instance methods

###### fu_hid_device_add_flag

Adds a flag to be used for all set and get report messages.

since: 1.5.2

###### fu_hid_device_get_ep_addr_in

Gets the HID USB in endpoint.

since: 1.9.4

###### fu_hid_device_get_ep_addr_out

Gets the HID USB out endpoint.

since: 1.9.4

###### fu_hid_device_get_interface

Gets the HID USB interface number.

since: 1.4.0

###### fu_hid_device_get_report

Calls GetReport on the hardware.

since: 1.4.0

###### fu_hid_device_parse_descriptor

Parses the HID descriptor.

since: 1.9.4

###### fu_hid_device_set_ep_addr_in

Sets the HID USB interrupt in endpoint.

since: 1.9.4

###### fu_hid_device_set_ep_addr_out

Sets the HID USB interrupt out endpoint.

since: 1.9.4

###### fu_hid_device_set_interface

Sets the HID USB interface number.

since: 1.4.0

###### fu_hid_device_set_report

Calls SetReport on the hardware.

since: 1.4.0

##### Methods inherited from FuUsbDevice (14)

###### fu_usb_device_add_interface

Adds an interface that will be claimed on `->open()` and released on `->close()`.

since: 1.7.4

###### fu_usb_device_find_udev_device

Gets the matching `GUdevDevice` for the `GUsbDevice`.

since: 1.3.2

###### fu_usb_device_get_claim_retry_count

Gets the number of tries we should attempt when claiming the device.

since: 1.9.10

###### fu_usb_device_get_dev

Gets the `GUsbDevice`.

since: 1.0.2

###### fu_usb_device_get_open_retry_count

Sets the number of tries we should attempt when opening the device.

since: 1.9.9

###### fu_usb_device_get_pid

Gets the device product code.

since: 1.1.2

###### fu_usb_device_get_platform_id

Gets the device platform ID.

since: 1.1.2

###### fu_usb_device_get_spec

Gets the string USB revision for the device.

since: 1.3.4

###### fu_usb_device_get_vid

Gets the device vendor code.

since: 1.1.2

###### fu_usb_device_is_open

Finds out if a USB device is currently open.

since: 1.0.3

###### fu_usb_device_set_claim_retry_count

Sets the number of tries we should attempt when claiming the device. Applies to all interfaces associated with this device.

since: 1.9.10

###### fu_usb_device_set_configuration

Set the active bConfigurationValue for the device.

since: 1.7.4

###### fu_usb_device_set_dev

Sets the `GUsbDevice` to use.

since: 1.0.2

###### fu_usb_device_set_open_retry_count

Sets the number of tries we should attempt when opening the device.

since: 1.9.9

##### Methods inherited from FuDevice (163)

Please see FuDevice for a full list of methods.

##### Methods inherited from FwupdDevice (118)

Please see FwupdDevice for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### FwupdPlugin.HidDevice:interface

The HID interface to use.

since: 1.4.0

##### Properties inherited from FuUsbDevice (1)

###### FwupdPlugin.UsbDevice:usb-device

The low-level `GUsbDevice`.

since: 1.0.2

##### Properties inherited from FuDevice (8)

###### FwupdPlugin.Device:backend-id

The device backend ID.

since: 1.5.8

###### FwupdPlugin.Device:context

The `FuContext` to use.

since: 1.6.0

###### FwupdPlugin.Device:internal-flags

The device internal flags.

since: 1.9.1

###### FwupdPlugin.Device:logical-id

The device logical ID.

since: 1.1.2

###### FwupdPlugin.Device:parent

The device parent.

since: 1.0.8

###### FwupdPlugin.Device:physical-id

The device physical ID.

since: 1.1.2

###### FwupdPlugin.Device:private-flags

The device private flags.

since: 1.9.1

###### FwupdPlugin.Device:proxy

The device proxy to use.

since: 1.4.1

##### Properties inherited from FwupdDevice (15)

###### Fwupd.Device:battery-level

The device battery level in percent.

since: 1.5.8

###### Fwupd.Device:battery-threshold

The device battery threshold in percent.

since: 1.5.8

###### Fwupd.Device:flags

The device flags.

since: 0.9.3

###### Fwupd.Device:parent

The device parent.

since: 1.0.8

###### Fwupd.Device:percentage

The current device percentage.

since: 1.8.11

###### Fwupd.Device:problems

The problems with the device that the user could fix, e.g. “lid open”.

since: 1.8.1

###### Fwupd.Device:protocol

The device protocol.

deprecated: 1.5.8 since: 1.3.6

###### Fwupd.Device:request-flags

The device request flags.

since: 1.9.10

###### Fwupd.Device:status

The current device status.

since: 1.4.0

###### Fwupd.Device:update-error

The device update error.

since: 0.9.8

###### Fwupd.Device:update-image

The update image for the device.

since: 1.4.5

###### Fwupd.Device:update-message

The device update message.

since: 1.2.4

###### Fwupd.Device:update-state

The device update state.

since: 0.9.8

###### Fwupd.Device:version

The device version.

since: 1.8.15

###### Fwupd.Device:version-format

The version format of the device.

since: 1.2.9

#### Signals

##### Signals inherited from FuDevice (3)

###### FuDevice::child-added

The ::child-added signal is emitted when a device has been added as a child.

since: 1.0.8

###### FuDevice::child-removed

The ::child-removed signal is emitted when a device has been removed as a child.

since: 1.0.8

###### FuDevice::request

The ::request signal is emitted when the device needs interactive action from the user.

since: 1.6.2

##### 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.

unstable since: 2.0

#### Class structure

    struct FwupdPluginHidDeviceClass {
      FuUsbDeviceClass parent_class;

    }

No description available.

###### Class members

`parent_class: FuUsbDeviceClass`
  No description available.