def _genRead(self, fp, prototypes):
      """Generates all Rte_Read functions"""
      for port_func in prototypes:
         body = C.block(innerIndent=innerIndentDefault)
         if port_func.data_element.com_access['Receive'] is not None:
            com_func = port_func.data_element.com_access['Receive']
            body.code.append(C.statement('return '+str(C.fcall(com_func.name, params=[port_func.proto.args[0].name]))))
         else:
            body.code.append(C.statement('*%s = %s'%(port_func.proto.args[0].name, port_func.data_element.symbol)))
            if port_func.data_element.result_var is not None:
               body.code.append(C.statement('return %s'%port_func.data_element.result_var.name))
            else:
               body.code.append(C.statement('return RTE_E_OK'))