Better code readability
authoretisserant
Thu, 30 Aug 2007 17:01:11 +0200
changeset 260 1eafe582b6a1
parent 259 fefaeb965850
child 261 dbcd80bcab82
Better code readability
objdictgen/node.py
--- a/objdictgen/node.py	Tue Aug 28 14:32:05 2007 +0200
+++ b/objdictgen/node.py	Thu Aug 30 17:01:11 2007 +0200
@@ -57,13 +57,13 @@
 for all sorts of entries use in CAN Open specification
 """
 nosub = 0 # Entry without subindex (only for type declaration)
-var = 1
-array = 3
-rec = 7
+var = OD_Subindex
+array = OD_Subindex | OD_MultipleSubindexes
+rec = OD_Subindex | OD_MultipleSubindexes | OD_IdenticalSubindexes
 # Entries identical on multiple indexes
-plurivar = 9
-pluriarray = 11 # Example : PDO Parameters
-plurirec = 15   # Example : PDO Mapping
+plurivar = OD_Subindex | OD_IdenticalIndexes
+pluriarray = OD_Subindex | OD_MultipleSubindexes | OD_IdenticalIndexes # Example : PDO Parameters
+plurirec = OD_Subindex | OD_MultipleSubindexes | OD_IdenticalSubindexes |OD_IdenticalIndexes   # Example : PDO Mapping
 
 """
 MappingDictionary is the structure used for writing a good organised Object