Top | ![]() |
![]() |
![]() |
![]() |
guint32 | dfu_sector_get_id () |
guint32 | dfu_sector_get_address () |
guint32 | dfu_sector_get_size () |
guint32 | dfu_sector_get_size_left () |
guint16 | dfu_sector_get_zone () |
guint16 | dfu_sector_get_number () |
gboolean | dfu_sector_has_cap () |
gchar * | dfu_sector_to_string () |
This object represents an sector of memory at a specific address on the device itself.
This allows relocatable data segments to be stored in different locations on the device itself.
You can think of these objects as flash segments on devices, where a complete block can be erased and then written to.
See also: DfuElement
guint32
dfu_sector_get_id (DfuSector *sector
);
Gets the sector ID which is a combination of the zone and sector number. You can use this number to check if the segment is the 'same' as the last written or read sector.
Since: 0.5.4
guint32
dfu_sector_get_address (DfuSector *sector
);
Gets the alternate setting.
Since: 0.5.4
guint32
dfu_sector_get_size (DfuSector *sector
);
Gets the sector size.
Since: 0.5.4
guint32
dfu_sector_get_size_left (DfuSector *sector
);
Gets the size of the rest of the sector.
Since: 0.5.4
guint16
dfu_sector_get_zone (DfuSector *sector
);
Gets the sector zone number.
Since: 0.7.5
guint16
dfu_sector_get_number (DfuSector *sector
);
Gets the sector index number.
Since: 0.7.5
gboolean dfu_sector_has_cap (DfuSector *sector
,DfuSectorCap cap
);
Finds out if the sector has the required capability.
Since: 0.5.4