Exmbus.Parser.Apl.DataRecord.ValueInformationBlock (Exmbus v0.3.0)

View Source

The Value Information Block utilities

Summary

Types

t()

@type t() :: %Exmbus.Parser.Apl.DataRecord.ValueInformationBlock{
  coding:
    nil
    | :type_a
    | :type_b
    | :type_c
    | :type_d
    | :type_f
    | :type_g
    | :type_h
    | :type_i
    | :type_j
    | :type_k
    | :type_l
    | :type_m,
  description: atom(),
  extensions: [any()],
  multiplier: nil | integer(),
  table: atom(),
  unit: nil | binary()
}

Functions

parse(bin, ctx)

@spec parse(binary(), Exmbus.Parser.Context.t()) ::
  {:ok, t(), rest :: binary()} | {:error, any(), binary()}

unparse(vib)