1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>EL_Link*</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">EL_Link* <img src="../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15<CODE>#include <twl/el.h></CODE><BR> 16 <BR> 17 <CODE>ELDlld EL_Link( <A href="ELReadImage.html">ELReadImage</A> readfunc, u32 len, void* buf );</CODE><br> 18 <CODE>ELDlld EL_LinkFile( const char* FilePath, void* buf);</CODE><br> 19 <CODE>ELDlld EL_LinkImage( void* obj_image, u32 obj_len, void* buf );</CODE> 20 </DD> 21</DL> 22<H2>Arguments</H2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26<TD><SPAN class="argument">readfunc</SPAN></TD> 27<TD>Developer-specific read function.</TD> 28 </TR> 29 <TR> 30<TD><SPAN class="argument">FilePath</SPAN></TD> 31<TD>Path name of the dynamic module to be registered.</TD> 32 </TR> 33 <TR> 34<TD><SPAN class="argument">obj_image</SPAN></TD> 35<TD>Memory address of the dynamic module to be registered.</TD> 36 </TR> 37 <TR> 38<TD><SPAN class="argument">len / obj_len</SPAN></TD> 39<TD>Size of the dynamic module to be registered.</TD> 40 </TR> 41 <TR> 42<TD><SPAN class="argument">buf</SPAN></TD> 43<TD>Buffer in which the dynamic module will be registered.</TD> 44 </TR> 45 </TBODY> 46</TABLE> 47 48<H2>Return Values</H2> 49<P> 50Returns the registered dynamic module when registration succeeded.<BR>Returns 0 when registration failed. 51</P> 52 53<H2>Description</H2> 54<P> 55Registers a dynamic module with the EL library.<BR><BR> The <code>EL_Link</code> function loads the dynamic module using the read function specified by the developer. The <code>EL_LinkFile</code> function loads the dynamic module to be registered from ROM. The <code>EL_LinkImage</code> function uses a dynamic module that has been loaded into memory. <BR>You must secure a region for <SPAN class="argument">buf</SPAN> that is larger than the size determined by the <a href="EL_CalcEnoughBufferSizeforLink.html"><CODE>EL_CalcEnoughBufferSizeforLink*</CODE></a> functions. Also be aware that, because <SPAN class="argument">buf</SPAN> is where the dynamic module is registered, if the <code>EL_LinkImage</code> function performs the task of registering the dynamic module, you temporarily need an additional buffer (<SPAN class="argument">obj_image</SPAN>) equal in size to the dynamic module (ELF file). 56<P><B>Note:</B> You can use a debugger to debug the dynamic module only if the <code>EL_LinkFile</code> function has been used. 57</P> 58 59<H2>See Also</H2> 60<P><A href="EL_CalcEnoughBufferSizeforLink.html"><CODE>EL_CalcEnoughBufferSizeforLink*</CODE></A><BR> <A href="ELReadImage.html"><CODE>ELReadImage</CODE></A></P> 61<H2>Revision History</H2> 62<P> 632009/01/30 Changed the explanation about the size secured for <SPAN class="argument">buf</SPAN>.<br> 2008/10/02 Added a description about the size secured for <SPAN class="argument">buf</SPAN>.<br> 2008/04/22 Added mention of debuggers.<br> 2008/04/14 Changed the specification for <code>EL_LinkFile</code>.<br> 2007/08/21 Initial version.</P> 64<hr><p>CONFIDENTIAL</p></body> 65</HTML> 66