NAME
Hex::Record::Parser - parse intel and srec hex records
SYNOPSIS
use Hex::Record::Parser qw(parse_intel_hex parse_srec_hex);
# for intel hex record
my $hex_parts_ref = parse_intel_hex($intel_hex_record_as_string);
# for srec hex record
my $hex_parts_ref = parse_srec_hex($srec_hex_record_as_string);
# the sctucture returned by the parser will look like this
# the part start addresses (0x100, 0xFFFFF in example) are sorted
my $hex_parts_ref = [
{
start => 0x100,
bytes => [qw(11 22 33 44 55 66)],
},
{
start => 0xFFFFF,
bytes => [qw(77 88 99 AA BB CC)],
},
];
# create hex records, to manipulate and dump hex data
use Hex::Record;
my $hex_record = Hex::Record->new(
parts => $hex_parts_ref
);
DESCRIPTION
parse intel/srec hex files.
LICENSE
This is released under the Artistic License.
AUTHOR
spebern <bernhard@specht.net>