FuDfuFirmware: fwupd Reference Manual

## FuDfuFirmware FuDfuFirmware |

## Functions

FuFirmware * | fu_dfu_firmware_new ()
guint16 | fu_dfu_firmware_get_vid ()
guint16 | fu_dfu_firmware_get_pid ()
guint16 | fu_dfu_firmware_get_release ()
guint16 | fu_dfu_firmware_get_version ()
void | fu_dfu_firmware_set_vid ()
void | fu_dfu_firmware_set_pid ()
void | fu_dfu_firmware_set_release ()
void | fu_dfu_firmware_set_version ()

## Types and Values

#define | FU_TYPE_DFU_FIRMWARE
struct | FuDfuFirmwareClass
#define | FU_DFU_FIRMARE_VERSION_UNKNOWN
#define | FU_DFU_FIRMARE_VERSION_DFU_1_0
#define | FU_DFU_FIRMARE_VERSION_DFU_1_1
#define | FU_DFU_FIRMARE_VERSION_DFUSE
#define | FU_DFU_FIRMARE_VERSION_ATMEL_AVR
| FuDfuFirmware

## Description

## Functions

### fu_dfu_firmware_new ()

    FuFirmware *
    fu_dfu_firmware_new (void);

Creates a new FuFirmware of sub type Dfu

Since: 1.3.3

### fu_dfu_firmware_get_vid ()

    guint16
    fu_dfu_firmware_get_vid (FuDfuFirmware *self);

Gets the vendor ID, or 0xffff for no restriction.

#### Parameters

self | a FuDfuFirmware |

#### Returns

integer

Since: 1.3.3

### fu_dfu_firmware_get_pid ()

    guint16
    fu_dfu_firmware_get_pid (FuDfuFirmware *self);

Gets the product ID, or 0xffff for no restriction.

#### Parameters

self | a FuDfuFirmware |

#### Returns

integer

Since: 1.3.3

### fu_dfu_firmware_get_release ()

    guint16
    fu_dfu_firmware_get_release (FuDfuFirmware *self);

Gets the device ID, or 0xffff for no restriction.

#### Parameters

self | a FuDfuFirmware |

#### Returns

integer

Since: 1.3.3

### fu_dfu_firmware_get_version ()

    guint16
    fu_dfu_firmware_get_version (FuDfuFirmware *self);

Gets the file format version with is 0x0100 by default.

#### Parameters

self | a FuDfuFirmware |

#### Returns

integer

Since: 1.3.3

### fu_dfu_firmware_set_vid ()

    void
    fu_dfu_firmware_set_vid (FuDfuFirmware *self,
                             guint16 vid);

Sets the vendor ID.

#### Parameters

self | a FuDfuFirmware |
vid | vendor ID, or 0xffff if the firmware should match any vendor |

Since: 1.3.3

### fu_dfu_firmware_set_pid ()

    void
    fu_dfu_firmware_set_pid (FuDfuFirmware *self,
                             guint16 pid);

Sets the product ID.

#### Parameters

self | a FuDfuFirmware |
pid | product ID, or 0xffff if the firmware should match any product |

Since: 1.3.3

### fu_dfu_firmware_set_release ()

    void
    fu_dfu_firmware_set_release (FuDfuFirmware *self,
                                 guint16 release);

Sets the release for the dfu firmware.

#### Parameters

self | a FuDfuFirmware |
release | release, or 0xffff if the firmware should match any release |

Since: 1.3.3

### fu_dfu_firmware_set_version ()

    void
    fu_dfu_firmware_set_version (FuDfuFirmware *self,
                                 guint16 version);

Sets the file format version.

#### Parameters

self | a FuDfuFirmware |
version | integer |

Since: 1.3.3

## Types and Values

### FU_TYPE_DFU_FIRMWARE

    #define FU_TYPE_DFU_FIRMWARE (fu_dfu_firmware_get_type ())

### struct FuDfuFirmwareClass

    struct FuDfuFirmwareClass {
    	FuFirmwareClass		 parent_class;
    };

### FU_DFU_FIRMARE_VERSION_UNKNOWN

    #define FU_DFU_FIRMARE_VERSION_UNKNOWN			(0u)

Unknown version of the DFU standard in BCD format.

Since: 1.6.1

### FU_DFU_FIRMARE_VERSION_DFU_1_0

    #define FU_DFU_FIRMARE_VERSION_DFU_1_0			(0x0100)

The 1.0 version of the DFU standard in BCD format.

Since: 1.6.1

### FU_DFU_FIRMARE_VERSION_DFU_1_1

    #define FU_DFU_FIRMARE_VERSION_DFU_1_1			(0x0110)

The 1.1 version of the DFU standard in BCD format.

Since: 1.6.1

### FU_DFU_FIRMARE_VERSION_DFUSE

    #define FU_DFU_FIRMARE_VERSION_DFUSE			(0x011a)

The DfuSe version of the DFU standard in BCD format, defined by ST.

Since: 1.6.1

### FU_DFU_FIRMARE_VERSION_ATMEL_AVR

    #define FU_DFU_FIRMARE_VERSION_ATMEL_AVR		(0xff01)

The Atmel AVR version of the DFU standard in BCD format.

Since: 1.6.1

### FuDfuFirmware

    typedef struct _FuDfuFirmware FuDfuFirmware;

A DFU firmware image.

See also: [class`FuFirmware` ]