]> sigrok.org Git - sigrok-util.git/commit
sigrok-fwextract-kingst-la2016: rephrase resource file writer
authorGerhard Sittig <redacted>
Sat, 19 Feb 2022 12:34:25 +0000 (13:34 +0100)
committerGerhard Sittig <redacted>
Mon, 21 Feb 2022 22:05:54 +0000 (23:05 +0100)
commit896d66ee00c57705d7d464f9137e239bbde9ab17
treede350601cecff6a83b5d4b7b711f9736d1bffca9
parent9814f29fa896bd7a68d33548df2a6f4d8c66bb16
sigrok-fwextract-kingst-la2016: rephrase resource file writer

Rearrange the res_writer class of the KingstVis firmware extractor.

Separate the bytes/hexfile handling from file writing. Get the CRC
in that data handing part. Which leaves data processing to internal
helpers, while the calling public routine has all details available,
to provide a more helpful log message to users.

Separate the resource enumeration from the output file creation. Which
prettifies the output (sorted order), and allows future implementations
to easier filter the output if desired.
firmware/kingst-la/sigrok-fwextract-kingst-la2016