Method

FwupdPluginHidrawDeviceset_report

Declaration [src]

gboolean
fu_hidraw_device_set_report (
  FuHidrawDevice* self,
  const guint8* buf,
  gsize bufsz,
  FuIOChannelFlags flags,
  GError** error
)

Description [src]

Do a HID SetOutputReport request.

Available since:2.0.14

Parameters

buf const guint8*
 

A buffer to use, which must be large enough for the request.

 The data is owned by the caller of the function.
bufsz gsize
 

The size of buf.

flags FuIOChannelFlags
 

Some FuIOChannelFlags, e.g. FU_IO_CHANNEL_FLAG_SINGLE_SHOT.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.