View Source KNXex.GroupAddress (knxex v0.1.0)

KNX group address.

Link to this section Summary

Types

t()

Represents a KNX group address.

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

Link to this function

from_raw_address(address)

View Source
@spec from_raw_address(non_neg_integer()) :: t()

Parses the raw group address (16bit integer) into a GroupAddress struct.

@spec from_string(String.t()) :: {:ok, t()} | {:error, :invalid_binary}

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.

@spec to_raw_address(t()) :: non_neg_integer()

Returns the raw group address (16bit integer).

@spec to_string(t()) :: String.t()

Returns the group address as a string.