BACnet.Protocol.EventTransitionBits (bacstack v0.0.1)
View SourceSummary
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
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnet event transition bits into application tags encoding.
Creates from an application tag bitstring an event transition bits.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet event transition bits from application tags encoding.
@spec to_bitstring(t()) :: BACnet.Protocol.ApplicationTags.primitive_encoding()
Creates an application tag bitstring from an event transition bits.
Validates whether the given event transition bits is in form valid.
It only validates the struct is valid as per type specification.