Top | ![]() |
![]() |
![]() |
![]() |
GPtrArray * | dfu_target_get_sectors () |
guint8 | dfu_target_get_alt_setting () |
const gchar * | dfu_target_get_alt_name () |
const gchar * | dfu_target_get_alt_name_for_display () |
DfuImage * | dfu_target_upload () |
gboolean | dfu_target_download () |
DfuCipherKind | dfu_target_get_cipher_kind () |
#define | DFU_TYPE_TARGET |
struct | DfuTargetClass |
enum | DfuTargetTransferFlags |
DfuTarget |
This object allows uploading and downloading an image onto a specific DFU-capable target.
You only need to use this in preference to DfuDevice if you only want to update one target on the device. Most users will want to update all the targets on the device at the same time.
GPtrArray *
dfu_target_get_sectors (DfuTarget *target
);
Gets the sectors exported by the device.
Since: 0.5.4
guint8
dfu_target_get_alt_setting (DfuTarget *target
);
Gets the alternate setting to use for this interface.
Since: 0.5.4
const gchar * dfu_target_get_alt_name (DfuTarget *target
,GError **error
);
Gets the alternate setting name to use for this interface.
Since: 0.5.4
const gchar * dfu_target_get_alt_name_for_display (DfuTarget *target
,GError **error
);
Gets the alternate setting name to use for this interface that can be shown on the display.
Since: 0.7.5
DfuImage * dfu_target_upload (DfuTarget *target
,DfuTargetTransferFlags flags
,GCancellable *cancellable
,GError **error
);
Uploads firmware from the target to the host.
target |
||
flags |
flags to use, e.g. |
|
cancellable |
a GCancellable, or |
|
error |
a GError, or |
Since: 0.5.4
gboolean dfu_target_download (DfuTarget *target
,DfuImage *image
,DfuTargetTransferFlags flags
,GCancellable *cancellable
,GError **error
);
Downloads firmware from the host to the target, optionally verifying the transfer.
target |
||
image |
a DfuImage |
|
flags |
flags to use, e.g. |
|
cancellable |
a GCancellable, or |
|
error |
a GError, or |
Since: 0.5.4
DfuCipherKind
dfu_target_get_cipher_kind (DfuTarget *target
);
Gets the cipher used for data sent to this interface.
Since: 0.5.4
struct DfuTargetClass { GUsbDeviceClass parent_class; void (*percentage_changed) (DfuTarget *target, guint percentage); void (*action_changed) (DfuTarget *target, DfuAction action); };
The optional flags used for transfering firmware.
No flags set |
||
Verify the download once complete |
||
If required, detach from runtime mode |
||
Attach the device back to runtime after completion |
||
Wait for runtime to load after completion |
||
Allow downloading images with wildcard VIDs |
||
Allow downloading images with wildcard PIDs |
||
Allow any cipher kinds to be downloaded |
||
Automatically detect the address to use |