intel_hex v0.1.0 IntelHex View Source

Decode Intel HEX files

Link to this section Summary

Functions

Decode all of the hex records in a file

Decode all of the hex records in a file or raises File.Error or IntelHex.DecodeError if an error occurs

Decode one Intel Hex record

Flatten a list of records to a list of memory values

Link to this section Functions

Link to this function decode_file(path) View Source
decode_file(String.t()) :: {:ok, [IntelHex.Record.t()]} | {:error, term()}

Decode all of the hex records in a file.

Link to this function decode_file!(path) View Source
decode_file!(String.t()) :: [IntelHex.Record.t()] | no_return()

Decode all of the hex records in a file or raises File.Error or IntelHex.DecodeError if an error occurs.

Link to this function decode_record(string) View Source
decode_record(String.t()) :: {:ok, IntelHex.Record.t()} | {:error, term()}

Decode one Intel Hex record

Link to this function flatten_to_list(records, options \\ []) View Source

Flatten a list of records to a list of memory values.

This runs though the records. The records must be an ascending order. Gaps are allowed and are filled in by the :fill value. Addressing starts at zero, but if you’d like to start it later, use the :start option.