IEC60870.Types.TypeID (ExIEC60870 v0.1.0)

Copy Markdown View Source

IEC 60870-5 ASDU Type Identifications (IEC60870_5_TypeID). Supports bidirectional conversion between integer codes (1..255) and descriptive atoms, as well as element byte size lookup and single-IO validation.

Summary

Functions

Returns true if compact sequence encoding (SQ = 1) is supported by CS101_ASDU_getElementEx in lib60870-C (cs101_asdu.c:1378-1675), which is true for TypeIDs 1..21 and 30..40 / 110..113. Note: 126 (F_DR_TA_1), 127 (F_SC_NB_1), 41 (S_IT_TC_1), 70 (M_EI_NA_1), and all single_io? types always encode an IOA per element.

Converts a TypeID integer code to its descriptive atom representation.

Converts a TypeID atom or code to its 1..255 integer representation.

Types

code()

@type code() :: 1..255

name()

@type name() :: atom()

t()

@type t() :: name() | code()

Functions

element_data_size(arg1)

sequence_supported?(type)

@spec sequence_supported?(t()) :: boolean()

Returns true if compact sequence encoding (SQ = 1) is supported by CS101_ASDU_getElementEx in lib60870-C (cs101_asdu.c:1378-1675), which is true for TypeIDs 1..21 and 30..40 / 110..113. Note: 126 (F_DR_TA_1), 127 (F_SC_NB_1), 41 (S_IT_TC_1), 70 (M_EI_NA_1), and all single_io? types always encode an IOA per element.

single_io?(arg1)

to_atom(code)

Converts a TypeID integer code to its descriptive atom representation.

to_code(code)

Converts a TypeID atom or code to its 1..255 integer representation.

to_string(other)