BACnet.Protocol.LimitEnable (bacstack v0.0.1)

View Source

BACnet Limit Enable conveys several flags that describe the enabled limit detection algorithms.

  • The LOW_LIMIT_ENABLE flag indicates whether the low limit detection algorithm is enabled.
  • The HIGH_LIMIT_ENABLE flag indicates whether the high limit detection algorithm is enabled.

Summary

Types

t()

Represents BACnet limit enable flags.

Functions

Encodes a BACnet limit enable into application tags encoding.

Creates from an application tag bitstring a limit enable.

Parses a BACnet limit enable from application tags encoding.

Creates an application tag bitstring from a limit enable.

Validates whether the given limit enable is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.LimitEnable{
  high_limit_enable: boolean(),
  low_limit_enable: boolean()
}

Represents BACnet limit enable flags.

Functions

encode(flags, opts \\ [])

@spec encode(t(), Keyword.t()) ::
  {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}

Encodes a BACnet limit enable into application tags encoding.

from_bitstring(bitstring)

@spec from_bitstring(tuple()) :: t()

Creates from an application tag bitstring a limit enable.

parse(tags)

Parses a BACnet limit enable from application tags encoding.

to_bitstring(t)

Creates an application tag bitstring from a limit enable.

valid?(t)

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

Validates whether the given limit enable is in form valid.

It only validates the struct is valid as per type specification.