Expand description
Clause 21 codec for BACnetAccessRule, the element of an Access Rights
object’s Positive_Access_Rules and Negative_Access_Rules arrays (Clause
12.34.9.1).
A rule is a bare SEQUENCE and a whole array concatenates them with no
wrapper, so the decoder reads one rule at offset and returns the offset
just past it, the way the Access Credential element codecs do.
The decoder checks structure only. It keeps each specifier as received, a value outside the two named ones included, and doesn’t compare a specifier with the presence of its reference; the Access Rights object judges both. A specifier wider than 32 bits is malformed.
Functions§
- decode_
access_ rule - Decode one
BACnetAccessRuleSEQUENCE atoffset. - encode_
access_ rule - Encode one
BACnetAccessRuleSEQUENCE: the time-range specifier as context[0], the time-range reference (when present) inside opening and closing tag 1, the location specifier as context[2], the location reference (when present) inside opening and closing tag 3, and the enable flag as context[4].