BACnet.Protocol.GroupChannelValue (bacstack v0.0.1)
View SourceSummary
Functions
Encodes a group channel value struct into application tags encoding.
Parses a BACnet group channel value into a struct.
Validates whether the given BACnet group channel value is in form valid.
Types
@type t() :: %BACnet.Protocol.GroupChannelValue{ channel: BACnet.Protocol.ApplicationTags.unsigned16(), overriding_priority: 1..16 | nil, value: BACnet.Protocol.ApplicationTags.Encoding.t() | (lightning_command :: [BACnet.Protocol.ApplicationTags.Encoding.t()]) }
Represents a BACnet Group Channel Value.
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a group channel value struct into application tags encoding.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet group channel value into a struct.
Validates whether the given BACnet group channel value is in form valid.
It only validates the struct is valid as per type specification.