package intel_hex

  1. Overview
  2. Docs
Intel HEX manipulation library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.tar.gz
md5=282b8073f574d7a5ace12030bd3ce022
sha512=a64ebe3707a7a2bb061a6269991a4ed14a70d98fd26d768da6090187aeffb607b17a48dff62c30bdc58d1fb67156c76d102e65e057f52a68a549b51021400fd6

doc/README.html

intel_hex

The Intel HEX manipulation library for OCaml provides functions to read, write, and create Intel HEX format data, which is commonly used in embedded systems programming.

API references

Usage

If you are using Dune, add the intel_hex library to your libraries stanza.

Here is an example that creates an IHEX object file with test data and then prints it:

let ihex =
  Intel_hex.Record.
    [
      Data { offset = 0; payload = "hello " };
      Data { offset = 7; payload = "world" };
    ]

let () = ihex |> Intel_hex.to_string |> print_endline

Also, you can of course read the IHEX object file from other sources:

In_channel.with_open_text "firmware.hex" Intel_hex.of_channel

References