def _create_data_element_getter(self, component, port, data_element):
      data_type = data_element.dataType
      func_name='%s_GetWriteData_%s_%s_%s'%(self.prefix, component.name, port.name, data_element.name)
      short_name='%s_GetWriteData_%s_%s'%(self.prefix, port.name, data_element.name)
      suffix = '*' if data_type.isComplexType else ''
      proto=C.function(func_name, data_type.name+suffix)
      rte_func = autosar.rte.base.DataElementFunction(proto, port, data_element)
      #self._createPortVariable(component, port, data_element)
      var_name = self._createDataElementVariable(component, port, data_element)
      self.partition.upperLayerAPI.get[short_name] = autosar.rte.base.GetPortFunction(short_name, proto, data_element)