BACnet.Protocol.EventTransitionBits (bacstack v0.0.1)

View Source

Summary

Functions

Encodes a BACnet event transition bits into application tags encoding.

Creates from an application tag bitstring an event transition bits.

Parses a BACnet event transition bits from application tags encoding.

Creates an application tag bitstring from an event transition bits.

Validates whether the given event transition bits is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.EventTransitionBits{
  to_fault: boolean(),
  to_normal: boolean(),
  to_offnormal: boolean()
}

Functions

encode(flags, opts \\ [])

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

Encodes a BACnet event transition bits into application tags encoding.

from_bitstring(bitstring)

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

Creates from an application tag bitstring an event transition bits.

parse(tags)

Parses a BACnet event transition bits from application tags encoding.

to_bitstring(t)

Creates an application tag bitstring from an event transition bits.

valid?(t)

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

Validates whether the given event transition bits is in form valid.

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