BACnet.Protocol.NotificationClassPriority (bacstack v0.0.1)
View SourceThe notification class priority BACnet array is used to convey the priority used for event notifications. A lower number indicates a higher priority.
Summary
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
Functions
@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.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
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.
It only validates the struct is valid as per type specification.