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

View Source

Utilities for DIB parsing

Summary

Types

data_type()

@type data_type() ::
  :no_data
  | :int_or_bin
  | :real
  | :bcd
  | :variable_length
  | :selection_for_readout

function_field()

@type function_field() ::
  :instantaneous | :maximum | :minimum | :value_during_error_state

t()

@type t() :: %Exmbus.Parser.Apl.DataRecord.DataInformationBlock{
  data_type: atom(),
  device: integer(),
  function_field: function_field(),
  size: integer() | :variable_length,
  storage: integer(),
  tariff: integer()
}

Functions

decode_data_field(int)

decode_function_field(int)

default_coding(arg1)

encode_data_field(arg1, arg2)

encode_function_field(atom)

parse(arg, ctx)

unparse(dib)