You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eds: Add first-class support for CiA 306 ObjFlags and Denotation
ObjFlags (UNSIGNED32 bitfield) and Denotation (DCF-only string) are
standard CiA 306 fields that are now parsed and exported explicitly.
Changes:
* ODVariable, ODRecord and ODArray gain an obj_flags: int = 0 attribute.
* ODVariable gains a denotation: str = '' attribute.
* _get_obj_flags() helper reads and validates the ObjFlags integer value.
* ObjFlags is parsed for VAR/DOMAIN (via build_variable), ARRAY and RECORD.
* ObjFlags is exported whenever non-zero.
* Denotation is read in build_variable() and written only in DCF mode
(device_commisioning=True), matching the CiA 306 specification.
* Adds test object 0x3060 (ObjFlags=0x1) to sample.eds and four new tests
covering read, round-trip and DCF export for both fields.
Co-authored-by: FedericoSpada <FedericoSpada@users.noreply.github.com>
0 commit comments