BACnet.Protocol.ObjectPropertyRef (bacstack v0.0.1)
View SourceSummary
Functions
Encodes a BACnet object property reference into application tags encoding.
Parses a BACnet object property reference into a struct.
Validates whether the given object property reference is in form valid.
Types
@type t() :: %BACnet.Protocol.ObjectPropertyRef{ object_identifier: BACnet.Protocol.ObjectIdentifier.t(), property_array_index: non_neg_integer() | nil, property_identifier: BACnet.Protocol.Constants.property_identifier() | non_neg_integer() }
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnet object property reference into application tags encoding.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet object property reference into a struct.
Validates whether the given object property reference is in form valid.
It only validates the struct is valid as per type specification.