View Source KNXex.GroupAddress (knxex v0.1.0)
KNX group address.
Link to this section Summary
Functions
Parses the raw group address (16bit integer) into a GroupAddress struct.
Parses a group address from a string into a GroupAddress struct.
Creates a GroupAddress struct from the given main, middle and sub group addresses parts.
Returns the raw group address (16bit integer).
Returns the group address as a string.
Link to this section Types
@type t() :: %KNXex.GroupAddress{ main: non_neg_integer(), middle: non_neg_integer(), sub: non_neg_integer() }
Represents a KNX group address.
Link to this section Functions
@spec from_raw_address(non_neg_integer()) :: t()
Parses the raw group address (16bit integer) into a GroupAddress struct.
Parses a group address from a string into a GroupAddress struct.
@spec make(non_neg_integer(), non_neg_integer(), non_neg_integer()) :: t()
Creates a GroupAddress struct from the given main, middle and sub group addresses parts.
@spec to_raw_address(t()) :: non_neg_integer()
Returns the raw group address (16bit integer).
Returns the group address as a string.