IEC60870.IO.File.FileSegment (ExIEC60870 v0.1.0)

Copy Markdown View Source

File data segment (F_SG_NA_1, TypeID 125).

Summary

Functions

Maximum segment payload size for given AppLayerParameters, matching FileSegment_GetMaxDataSize.

Types

t()

@type t() :: %IEC60870.IO.File.FileSegment{
  data: binary(),
  ioa: non_neg_integer(),
  nof: non_neg_integer(),
  nos: byte()
}

Functions

max_data_size(params)

@spec max_data_size(IEC60870.AppLayerParameters.t()) :: non_neg_integer()

Maximum segment payload size for given AppLayerParameters, matching FileSegment_GetMaxDataSize.

new(ioa, nof, nos, data)