Top | ![]() |
![]() |
![]() |
![]() |
FuFirmware * | fu_ihex_firmware_new () |
GPtrArray * | fu_ihex_firmware_get_records () |
void | fu_ihex_firmware_set_padding_value () |
FuFirmware *
fu_ihex_firmware_new (void
);
Creates a new FuFirmware of sub type Ihex
Since: 1.3.1
GPtrArray *
fu_ihex_firmware_get_records (FuIhexFirmware *self
);
Returns the raw lines from tokenization.
This might be useful if the plugin is expecting the hex file to be a list of operations, rather than a simple linear image with filled holes.
Since: 1.3.4
void fu_ihex_firmware_set_padding_value (FuIhexFirmware *self
,guint8 padding_value
);
Set the padding value to fill incomplete address ranges.
The default value of zero can be changed to 0xff
if functions like
fu_common_bytes_is_empty()
are going to be used on subsections of the data.
Since: 1.6.0
typedef struct { guint ln; GString *buf; guint8 byte_cnt; guint32 addr; guint8 record_type; GByteArray *data; } FuIhexFirmwareRecord;
A single Intel HEX record.
#define FU_IHEX_FIRMWARE_RECORD_TYPE_EXTENDED_SEGMENT 0x02
#define FU_IHEX_FIRMWARE_RECORD_TYPE_EXTENDED_LINEAR 0x04