Skip to main content

Module access_rights

Module access_rights 

Source
Expand description

Access rights model for DLMS/COSEM (IEC 62056-5-3, 5.3.7).

The Association LN object holds an object_list that defines the visible COSEM objects and their access rights. Each object entry contains:

  • class_id, version, logical_name — object identification
  • access_rights — permissions for attributes and methods

Access modes per IEC 62056-5-3:

  • Attribute: no_access(0), read_only(1), write_only(2), read_and_write(3), authenticated_read_only(4), authenticated_write_only(5), authenticated_read_and_write(6)
  • Method: no_access(0), access(1), authenticated_access(2)

Structs§

AccessRights
Complete access rights for an object (IEC 62056-5-3, 5.3.7.2.2).
AttributeAccessItem
Access rights for a single attribute (IEC 62056-5-3, 5.3.7.2.2).
MethodAccessItem
Access rights for a single method (IEC 62056-5-3, 5.3.7.2.2).
ObjectListEntry
An entry in the Association LN object_list (IEC 62056-5-3, 5.3.7.2.2).

Enums§

AttributeAccessMode
Access mode for an attribute (IEC 62056-5-3, 5.3.7.2.2).
MethodAccessMode
Access mode for a method (IEC 62056-5-3, 5.3.7.2.2).

Functions§

full_access_entry
Builds an object_list entry with default read/write access for all attributes.
read_only_entry
Builds an object_list entry with read-only access for all attributes.