Top | ![]() |
![]() |
![]() |
![]() |
DfuElement * | dfu_element_new () |
GBytes * | dfu_element_get_contents () |
guint32 | dfu_element_get_address () |
void | dfu_element_set_contents () |
void | dfu_element_set_address () |
void | dfu_element_set_target_size () |
void | dfu_element_set_padding_value () |
gchar * | dfu_element_to_string () |
This object represents an binary blob of data at a specific address.
This allows relocatable data segments to be stored in different locations on the device itself.
See also: DfuImage, DfuFirmware
DfuElement *
dfu_element_new (void
);
Creates a new DFU element object.
Since: 0.5.4
GBytes *
dfu_element_get_contents (DfuElement *element
);
Gets the element data.
Since: 0.5.4
guint32
dfu_element_get_address (DfuElement *element
);
Gets the offset address of the element.
Since: 0.5.4
void dfu_element_set_contents (DfuElement *element
,GBytes *contents
);
Sets the element data.
Since: 0.5.4
void dfu_element_set_address (DfuElement *element
,guint32 address
);
Sets the offset address of the element.
Since: 0.5.4
void dfu_element_set_target_size (DfuElement *element
,guint32 target_size
);
Sets a target size for the element. If the prepared element is smaller than this then it will be padded up to the required size.
If a padding byte other than 0x00 is required then the function
dfu_element_set_padding_value()
should be used before this function is
called.
Since: 0.5.4
void dfu_element_set_padding_value (DfuElement *element
,guint8 padding_value
);
Sets a the value of the padding byte to be used in the function
dfu_element_set_target_size()
.
Since: 0.7.3
gchar *
dfu_element_to_string (DfuElement *element
);
Returns a string representaiton of the object.
Since: 0.5.4