View Source KNXex.IndividualAddress (knxex v0.1.0)

KNX individual address (also known as physical address).

Link to this section Summary

Types

t()

Represents a KNX individual address.

Functions

Parses the raw individual address (16bit integer) into a IndividualAddress struct.

Parses a individual address from a string into a IndividualAddress struct.

Creates a IndividualAddress struct from the given area, line and device individual addresses parts.

Returns the raw individual address (16bit integer).

Returns the individual address as a string.

Link to this section Types

@type t() :: %KNXex.IndividualAddress{
  area: non_neg_integer(),
  device: non_neg_integer(),
  line: non_neg_integer()
}

Represents a KNX individual 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 individual address (16bit integer) into a IndividualAddress struct.

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

Parses a individual address from a string into a IndividualAddress struct.

Link to this function

make(area, line, device)

View Source

Creates a IndividualAddress struct from the given area, line and device individual addresses parts.

Link to this function

to_raw_address(individual)

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

Returns the raw individual address (16bit integer).

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

Returns the individual address as a string.