1338 "variables_pointer_type_table_count": |
1338 "variables_pointer_type_table_count": |
1339 len(self._VariablesList), |
1339 len(self._VariablesList), |
1340 "for_each_variable_do_code":"\n".join([ |
1340 "for_each_variable_do_code":"\n".join([ |
1341 {"EXT":" (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n", |
1341 {"EXT":" (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n", |
1342 "IN":" (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n", |
1342 "IN":" (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n", |
1343 "OUT":" (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n", |
1343 "OUT":" (*fp)((void*)&%(C_path)s,%(type)s_O_ENUM);\n", |
1344 "VAR":" (*fp)((void*)&%(C_path)s,%(type)s_ENUM);\n"}[v["vartype"]]%v |
1344 "VAR":" (*fp)((void*)&%(C_path)s,%(type)s_ENUM);\n"}[v["vartype"]]%v |
1345 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypes ]), |
1345 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypes ]), |
1346 "find_variable_case_code":"\n".join([ |
1346 "find_variable_case_code":"\n".join([ |
1347 " case %(num)s:\n"%v+ |
1347 " case %(num)s:\n"%v+ |
1348 " *varp = (void*)&%(C_path)s;\n"%v+ |
1348 " *varp = (void*)&%(C_path)s;\n"%v+ |
1349 {"EXT":" return %(type)s_P_ENUM;\n", |
1349 {"EXT":" return %(type)s_P_ENUM;\n", |
1350 "IN":" return %(type)s_P_ENUM;\n", |
1350 "IN":" return %(type)s_P_ENUM;\n", |
1351 "OUT":" return %(type)s_P_ENUM;\n", |
1351 "OUT":" return %(type)s_O_ENUM;\n", |
1352 "VAR":" return %(type)s_ENUM;\n"}[v["vartype"]]%v |
1352 "VAR":" return %(type)s_ENUM;\n"}[v["vartype"]]%v |
1353 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypes ])} |
1353 for v in self._VariablesList if v["vartype"] != "FB" and v["type"] in DebugTypes ])} |
1354 |
1354 |
1355 return debug_code |
1355 return debug_code |
1356 |
1356 |