def _create_data_element_setter(self, component, port, data_element):
      var_name = self._createDataElementVariable(component, port, data_element)
      port_func = autosar.rte.base.SetReadDataFunction(self.prefix, component, port, data_element, var_name)
      self.partition.upperLayerAPI.setReadData[port_func.shortname] = port_func                  
      port_func = autosar.rte.base.SetReadResultFunction(self.prefix, component, port, data_element)
      self.partition.upperLayerAPI.setReadResult[port_func.shortname]=port_func
      self.extra_static_vars[port_func.static_var.name]=port_func.static_var
      self.extra_rte_start.append(C.statement('%s = RTE_E_OK'%(data_element.result_var.name)))