1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<TITLE>CARDSetIconFormat</TITLE>
5<META content="text/html; charset=windows-1252" http-equiv="Content-Type">
6<META content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows" name="GENERATOR">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9</HEAD>
10<BODY>
11<H1>CARDSetIconFormat</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><code>#include &lt;revolution/card.h&gt;</CODE></PRE>
16  <DD>
17<PRE>#define CARDSetIconFormat(stat, n, f) \
18((stat)-&gt;iconFormat = \
19(u16) (((stat)-&gt;iconFormat &amp; ~(CARD_STAT_ICON_MASK  &lt;&lt; (2 * (n)))) | ((f) &lt;&lt; (2 * (n)))))</PRE>
20</DL>
21<H2>Arguments</H2>
22<TABLE border="1" cellpadding="3" cellspacing="0.1">
23  <TBODY>
24    <TR>
25<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>stat</CODE></EM></STRONG></CODE></STRONG></EM></TD>
26<TD width="520">Pointer to a <a href="CARDStat.html"><code>CARDStat</code></a> structure.</TD>
27    </TR>
28    <TR>
29<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>n</CODE></EM></STRONG></CODE></STRONG></EM></TD>
30<TD width="520">Sequence number of the icon animation.</TD>
31    </TR>
32    <TR>
33<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>f</CODE></EM></STRONG></CODE></STRONG></EM></TD>
34<TD width="520">Icon format.&nbsp;<code>CARD_STAT_ICON_RGB5A</code> or <code>CARD_STAT_ICON_C8</code>.&nbsp;<code>C8</code> and <code>RGB5A</code> can be intermixed in the animation; however, <code>C8</code> must share the same CLUT.</TD>
35    </TR>
36  </TBODY>
37</TABLE>
38<H2>Return Values</H2>
39<P>None.</P>
40<H2>Description</H2>
41<P>Sets the Memory Card icon format to the <a href="CARDStat.html"><code>CARDStat</code></a> structure.</P>
42<P><STRONG>Note:</STRONG>
43 This function is provided for debugging. Do not use in programs.</P>
44<H2>See Also</H2>
45<H2>Revision History</H2>
46<P>2006/03/01 Initial version.</P>
47<hr>
48<P>CONFIDENTIAL</p>
49</BODY>
50</HTML>