equal
deleted
inserted
replaced
313 for name, web_label, c_dtype, web_dtype in BACnet_parameters: |
313 for name, web_label, c_dtype, web_dtype in BACnet_parameters: |
314 # location_str is replaced by extension's value in CTNGenerateC call |
314 # location_str is replaced by extension's value in CTNGenerateC call |
315 GetParamFuncName = "__bacnet_%(location_str)s_get_ConfigParam_" + name |
315 GetParamFuncName = "__bacnet_%(location_str)s_get_ConfigParam_" + name |
316 SetParamFuncName = "__bacnet_%(location_str)s_set_ConfigParam_" + name |
316 SetParamFuncName = "__bacnet_%(location_str)s_set_ConfigParam_" + name |
317 |
317 |
|
318 # XXX TODO : stop reading from PLC .so file. This code is template code |
|
319 # that can use modbus extension build data |
318 GetParamFuncs[name] = getattr(PLCObject.PLClibraryHandle, GetParamFuncName) |
320 GetParamFuncs[name] = getattr(PLCObject.PLClibraryHandle, GetParamFuncName) |
319 GetParamFuncs[name].restype = c_dtype |
321 GetParamFuncs[name].restype = c_dtype |
320 GetParamFuncs[name].argtypes = None |
322 GetParamFuncs[name].argtypes = None |
321 |
323 |
322 SetParamFuncs[name] = getattr(PLCObject.PLClibraryHandle, SetParamFuncName) |
324 SetParamFuncs[name] = getattr(PLCObject.PLClibraryHandle, SetParamFuncName) |