1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>MI_GetWramBankOffset</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MI_GetWramBankOffset* <IMG src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <twl/mi.h></CODE><BR> 20 <BR> 21 <CODE>MIWramOffset MI_GetWramBankOffset( <A href="../mi_constant.html">MIWramPos</A> wram, int num )</CODE><br> 22 <CODE>MIWramOffset MI_GetWramBankOffset_A( int num )</CODE><br> 23 <CODE>MIWramOffset MI_GetWramBankOffset_B( int num )</CODE><br> 24 <CODE>MIWramOffset MI_GetWramBankOffset_C( int num )</CODE><br> 25 </dd> 26</dl> 27<h2>Arguments</h2> 28<TABLE border="1" width="100%"> 29 <TBODY> 30 <TR> 31 <TD width="13%"><EM><STRONG>wram</STRONG></EM></TD> 32 <TD width="87%">The WRAM for which to obtain the offset information.</TD> 33 </TR> 34 <TR> 35 <TD><B><I>num</I></B></TD> 36 <TD>The slot number of the WRAM for which to obtain the offset information.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40 41<h2>Return Values</h2> 42<p>The offset information of the specified WRAM region.<BR>Returns <CODE>MI_WRAM_OFFSET_xxxKB</CODE>. For WRAM-A, 0, 64, 128, or 192 will replace the "xxx" portion.<BR>For WRAM-B and WRAM-C, 0, 32, 64, 96, 128, 160, 192, or 224 will replace the "xxx" portion.</p> 43 44<H2>Description</H2> 45<P>Gets the offset value that is assigned to the specified WRAM region.</P> 46<P><B><I>wram</I></B> is of type <CODE><A href="../mi_constant.html">MIWramPos</A></CODE>, and specifies which WRAM's information to obtain.</P> 47<P><B><I>num</I></B> is the slot number of the target WRAM. For WRAM-A it should be 0-3, and for WRAM-B and WRAM-C, it should be 0-7.</P> 48<h2>Internal Operation</h2> 49<p>Accesses I/O registers MBK1-MBK5.</p> 50 51<h2>See Also</h2> 52<P><A href="about_Wram.html">Overview (Work RAM)</A>, <A href="../mi_constant.html">MI-Related Constants</A></P> 53 54<H2>Revision History</H2> 55<P>2007/08/22 Initial version.</P> 56<hr><p>CONFIDENTIAL</p></body> 57</html> 58