IEC60870.Types.CPTime.CP24Time2a (ExIEC60870 v0.1.0)

Copy Markdown View Source

3-byte binary time: millisecond (0..999), second (0..59), minute (0..59), substituted flag (0x40), invalid flag (0x80).

Summary

Types

t()

@type t() :: %IEC60870.Types.CPTime.CP24Time2a{
  invalid: boolean(),
  millisecond: 0..999,
  minute: 0..59,
  second: 0..59,
  substituted: boolean()
}

Functions

decode(arg1)

@spec decode(binary()) :: {:ok, t(), binary()} | {:error, :insufficient_data}

encode(t)

@spec encode(t()) :: <<_::24>>

new(opts \\ [])

@spec new(keyword()) :: t()