BACnet.Protocol.NotificationClassPriority (bacstack v0.0.1)

View Source

The notification class priority BACnet array is used to convey the priority used for event notifications. A lower number indicates a higher priority.

Summary

Types

t()

Represents the notification class priority array (three priorities).

Functions

Encodes a BACnet notification class priority (BACnetArray[3] of Unsigned) into BACnet application tags encoding.

Parses a BACnet notification class priority (BACnetArray[3] of Unsigned) from BACnet application tags encoding.

Validates whether the given notification class priority is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.NotificationClassPriority{
  to_fault: 0..255,
  to_normal: 0..255,
  to_offnormal: 0..255
}

Represents the notification class priority array (three priorities).

Functions

encode(priority, opts \\ [])

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

Encodes a BACnet notification class priority (BACnetArray[3] of Unsigned) into BACnet application tags encoding.

parse(tags)

Parses a BACnet notification class priority (BACnetArray[3] of Unsigned) from BACnet application tags encoding.

valid?(t)

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

Validates whether the given notification class priority is in form valid.

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