BACnet.Protocol.DaysOfWeek (bacstack v0.0.1)
View SourceSummary
Functions
Encodes a BACnet days of week into application tags encoding.
Creates from an application tag bitstring a days of week.
Parses a BACnet days of week from application tags encoding.
Creates an application tag bitstring from a days of week.
Validates whether the given days of week is in form valid.
Types
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnet days of week into application tags encoding.
Creates from an application tag bitstring a days of week.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet days of week from application tags encoding.
@spec to_bitstring(t()) :: BACnet.Protocol.ApplicationTags.primitive_encoding()
Creates an application tag bitstring from a days of week.
Validates whether the given days of week is in form valid.
It only validates the struct is valid as per type specification.