@@ -50,165 +50,6 @@ typedef struct
5050} spy_message_j1850_object;
5151#pragma pack(pop)
5252
53- static PyMemberDef spy_message_object_members[] = {
54- { " StatusBitField" , T_UINT, offsetof (spy_message_object, msg.StatusBitField ), 0 , " StatusBitField" },
55- { " StatusBitField2" , T_UINT, offsetof (spy_message_object, msg.StatusBitField2 ), 0 , " StatusBitField2" },
56- { " TimeHardware" ,
57- T_UINT,
58- offsetof (spy_message_object, msg.TimeHardware ),
59- 0 ,
60- " Hardware time stamp. The TimeStamp is reset on device open" },
61- { " TimeHardware2" ,
62- T_UINT,
63- offsetof (spy_message_object, msg.TimeHardware2 ),
64- 0 ,
65- " Hardware time stamp. The TimeStamp is reset on device open" },
66- { " TimeSystem" ,
67- T_UINT,
68- offsetof (spy_message_object, msg.TimeSystem ),
69- 0 ,
70- " TimeSystem is loaded with the value received from the timeGetTime call in the WIN32 multimedia API." },
71- { " TimeSystem2" ,
72- T_UINT,
73- offsetof (spy_message_object, msg.TimeSystem2 ),
74- 0 ,
75- " TimeSystem is loaded with the value received from the timeGetTime call in the WIN32 multimedia API." },
76- { " TimeStampHardwareID" ,
77- T_UBYTE,
78- offsetof (spy_message_object, msg.TimeStampHardwareID ),
79- 0 ,
80- " This is an identifier of what type of hardware timestamp is used. Since neoVI's timestamp is always the same, "
81- " this doesn't change." },
82- { " TimeStampSystemID" ,
83- T_UBYTE,
84- offsetof (spy_message_object, msg.TimeStampSystemID ),
85- 0 ,
86- " This is an identifier of what type of system timestamp is used. Since WIN32 neoVI's timestamp is always the "
87- " same, "
88- " from the timeGetTime API, this doesn't change." },
89- { " NetworkID" ,
90- T_UBYTE,
91- offsetof (spy_message_object, msg.NetworkID ),
92- 0 ,
93- " This value is used to identify which network this message was received on." },
94- { " NodeID" , T_UBYTE, offsetof (spy_message_object, msg.NodeID ), 0 , " Not Used" },
95- { " Protocol" ,
96- T_UBYTE,
97- offsetof (spy_message_object, msg.Protocol ),
98- 0 ,
99- " Valid values are SPY_PROTOCOL_CAN, SPY_PROTOCOL_J1850VPW, and SPY_PROTOCOL_ISO9141." },
100- { " MessagePieceID" , T_UBYTE, offsetof (spy_message_object, msg.MessagePieceID ), 0 , " Not Used" },
101- { " ExtraDataPtrEnabled" , T_UBYTE, offsetof (spy_message_object, msg.ExtraDataPtrEnabled ), 0 , " " },
102- { " NumberBytesHeader" ,
103- T_UBYTE,
104- offsetof (spy_message_object, msg.NumberBytesHeader ),
105- 0 ,
106- " Used for J1850/ISO messages. It indicates how many bytes are stored in the Header(1 to 4) array." },
107- { " NumberBytesData" ,
108- T_UBYTE,
109- offsetof (spy_message_object, msg.NumberBytesData ),
110- 0 ,
111- " Holds the number of bytes in the Data(1 to 8) array or the number of bytes in a CAN remote frame (The DLC)." },
112- { " NetworkID2" ,
113- T_UBYTE,
114- offsetof (spy_message_object, msg.NetworkID2 ),
115- 0 ,
116- " This value is used to identify which network this message was received on." },
117- { " DescriptionID" , T_SHORT, offsetof (spy_message_object, msg.DescriptionID ), 0 , " Not Used" },
118- { " ArbIDOrHeader" , T_UINT, offsetof (spy_message_object, msg.ArbIDOrHeader ), 0 , " " },
119- { " Data" , T_OBJECT_EX, 0 , 0 , " " },
120- { " StatusBitField3" , T_UINT, offsetof (spy_message_object, msg.StatusBitField3 ), 0 , " StatusBitField3" },
121- { " StatusBitField4" , T_UINT, offsetof (spy_message_object, msg.StatusBitField4 ), 0 , " StatusBitField4" },
122- { " AckBytes" , T_OBJECT_EX, 0 , 0 , " " },
123- { " ExtraDataPtr" , T_OBJECT_EX, offsetof (spy_message_object, msg.ExtraDataPtr ), 0 , " " },
124- { " MiscData" , T_UBYTE, offsetof (spy_message_object, msg.MiscData ), 0 , " " },
125- { " noExtraDataPtrCleanup" ,
126- T_BOOL,
127- offsetof (spy_message_object, noExtraDataPtrCleanup),
128- 0 ,
129- " Tells Python to not clean up ExtraDataPtrMemory, If this is enabled. Ignore, if unsure." },
130- { NULL , 0 , 0 , 0 , NULL },
131- };
132-
133- static PyMemberDef spy_message_j1850_object_members[] = {
134- { " StatusBitField" , T_UINT, offsetof (spy_message_j1850_object, msg.StatusBitField ), 0 , " StatusBitField" },
135- { " StatusBitField2" , T_UINT, offsetof (spy_message_j1850_object, msg.StatusBitField2 ), 0 , " StatusBitField2" },
136- { " TimeHardware" ,
137- T_UINT,
138- offsetof (spy_message_j1850_object, msg.TimeHardware ),
139- 0 ,
140- " Hardware time stamp. The TimeStamp is reset on device open" },
141- { " TimeHardware2" ,
142- T_UINT,
143- offsetof (spy_message_j1850_object, msg.TimeHardware2 ),
144- 0 ,
145- " Hardware time stamp. The TimeStamp is reset on device open" },
146- { " TimeSystem" ,
147- T_UINT,
148- offsetof (spy_message_j1850_object, msg.TimeSystem ),
149- 0 ,
150- " TimeSystem is loaded with the value received from the timeGetTime call in the WIN32 multimedia API." },
151- { " TimeSystem2" ,
152- T_UINT,
153- offsetof (spy_message_j1850_object, msg.TimeSystem2 ),
154- 0 ,
155- " TimeSystem is loaded with the value received from the timeGetTime call in the WIN32 multimedia API." },
156- { " TimeStampHardwareID" ,
157- T_UBYTE,
158- offsetof (spy_message_j1850_object, msg.TimeStampHardwareID ),
159- 0 ,
160- " This is an identifier of what type of hardware timestamp is used. Since neoVI's timestamp is always the same, "
161- " this doesn't change." },
162- { " TimeStampSystemID" ,
163- T_UBYTE,
164- offsetof (spy_message_j1850_object, msg.TimeStampSystemID ),
165- 0 ,
166- " This is an identifier of what type of system timestamp is used. Since WIN32 neoVI's timestamp is always the "
167- " same, "
168- " from the timeGetTime API, this doesn't change." },
169- { " NetworkID" ,
170- T_UBYTE,
171- offsetof (spy_message_j1850_object, msg.NetworkID ),
172- 0 ,
173- " This value is used to identify which network this message was received on." },
174- { " NodeID" , T_UBYTE, offsetof (spy_message_j1850_object, msg.NodeID ), 0 , " Not Used" },
175- { " Protocol" ,
176- T_UBYTE,
177- offsetof (spy_message_j1850_object, msg.Protocol ),
178- 0 ,
179- " Valid values are SPY_PROTOCOL_CAN, SPY_PROTOCOL_J1850VPW, and SPY_PROTOCOL_ISO9141." },
180- { " MessagePieceID" , T_UBYTE, offsetof (spy_message_j1850_object, msg.MessagePieceID ), 0 , " Not Used" },
181- { " ExtraDataPtrEnabled" , T_UBYTE, offsetof (spy_message_j1850_object, msg.ExtraDataPtrEnabled ), 0 , " " },
182- { " NumberBytesHeader" ,
183- T_UBYTE,
184- offsetof (spy_message_j1850_object, msg.NumberBytesHeader ),
185- 0 ,
186- " Used for J1850/ISO messages. It indicates how many bytes are stored in the Header(1 to 4) array." },
187- { " NumberBytesData" ,
188- T_UBYTE,
189- offsetof (spy_message_j1850_object, msg.NumberBytesData ),
190- 0 ,
191- " Holds the number of bytes in the Data(1 to 8) array or the number of bytes in a CAN remote frame (The DLC)." },
192- { " NetworkID2" ,
193- T_UBYTE,
194- offsetof (spy_message_object, msg.NetworkID2 ),
195- 0 ,
196- " This value is used to identify which network this message was received on." },
197- { " DescriptionID" , T_SHORT, offsetof (spy_message_j1850_object, msg.DescriptionID ), 0 , " Not Used" },
198- { " Header" , T_OBJECT_EX, 0 , 0 , " " },
199- { " Data" , T_OBJECT_EX, 0 , 0 , " " },
200- { " StatusBitField3" , T_UINT, offsetof (spy_message_j1850_object, msg.StatusBitField3 ), 0 , " StatusBitField3" },
201- { " StatusBitField4" , T_UINT, offsetof (spy_message_j1850_object, msg.StatusBitField4 ), 0 , " StatusBitField4" },
202- { " AckBytes" , T_OBJECT_EX, 0 , 0 , " " },
203- { " ExtraDataPtr" , T_OBJECT_EX, offsetof (spy_message_j1850_object, msg.ExtraDataPtr ), 0 , " " },
204- { " MiscData" , T_UBYTE, offsetof (spy_message_j1850_object, msg.MiscData ), 0 , " " },
205- { " noExtraDataPtrCleanup" ,
206- T_BOOL,
207- offsetof (spy_message_object, noExtraDataPtrCleanup),
208- 0 ,
209- " Tells Python to not clean up ExtraDataPtrMemory, If this is enabled. Ignore, if unsure." },
210- { NULL , 0 , 0 , 0 , NULL },
211- };
21253
21354extern PyTypeObject spy_message_object_type;
21455extern PyTypeObject spy_message_j1850_object_type;
0 commit comments