package intel_hex

  1. Overview
  2. Docs

Module Intel_hex.RecordSource

Line record of IHEX object.

Sourcetype t =
  1. | Data of int * string
  2. | End_of_file
  3. | Extended_segment_address of int
  4. | Extended_linear_address of int
  5. | Start_linear_address of int
  6. | Start_segment_address of {
    1. cs : int;
    2. ip : int;
    }
Sourceval pp : Format.formatter -> t -> unit

pp fmt record

Decode

Sourceval to_cstruct : t -> Cstruct.t
Sourceval to_string : t -> string

Encode

Sourceval of_cstruct : Cstruct.t -> t

of_cstruct cstruct decode a record from cstruct buffer.

Sourceval of_cstruct_opt : Cstruct.t -> t option
Sourceval of_string : string -> t

of_string s decode a record from string source.

Exceptions

Sourceexception Missing_start_code
Sourceexception Checksum_mismatched of int * int

(checksum, expected_checksum)

Sourceexception Unsupported_record_type of int