ExIEC61850.Mms.IsoMms.Common.MmsValue (ex_iec61850 v0.1.0)

Copy Markdown View Source

MMS data value representation and ASN.1 BER codec.

Summary

Types

mms_type()

@type mms_type() ::
  :array
  | :structure
  | :boolean
  | :bit_string
  | :integer
  | :unsigned
  | :float
  | :octet_string
  | :visible_string
  | :generalized_time
  | :binary_time
  | :bcd
  | :obj_id
  | :string
  | :utc_time
  | :data_access_error

t()

@type t() :: %ExIEC61850.Mms.IsoMms.Common.MmsValue{
  bit_size: term(),
  float_size: term(),
  type: term(),
  value: term()
}

Functions

decode_ber(bin)

encode_ber(mms_value)

equals(a, b)

get_array_size(mms_value)

get_element(mms_value, idx)

get_type(mms_value)

get_utc_time_in_ms(mms_value)

new_array(elements)

new_binary_time(ms)

new_bit_string(bit_size, val \\ 0)

new_boolean(val)

new_data_access_error(err)

new_double(val)

new_float(val)

new_integer(val)

new_mms_string(val)

new_octet_string(val)

new_structure(elements)

new_unsigned(val)

new_utc_time(ts)

new_visible_string(val)

set_element(v, idx, el)

to_bit_string_integer(mms_value)

to_boolean(mms_value)

to_float(mms_value)

to_integer(mms_value)

to_string(mms_value)