1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<TITLE>CARDSetIconSpeed</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>CARDSetIconSpeed</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>CARDSetIconSpeed(stat, n, f) \
18((stat)-&gt;iconSpeed  = \
19(u16) (((stat)-&gt;iconSpeed  &amp; ~(CARD_STAT_SPEED_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">Three wait time lengths can be set between each animation frame: <code>CARD_STAT_SPEED_FAST</code>,&nbsp; <code>CARD_STAT_SPEED_MIDDLE</code>, or&nbsp; <code>CARD_STAT_SPEED_SLOW</code>.&nbsp;The speed is determined by the screen refresh rate (60Hz or 50Hz).&nbsp;The wait time lasts the following number of refresh frames: <BR>
35      <TABLE border="0">
36        <TBODY>
37          <TR>
38<TD>CARD_STAT_SPEED_FAST&nbsp;</TD>
39            <TD align="center">4</TD>
40<TD>frames</TD>
41          </TR>
42          <TR>
43<TD>CARD_STAT_SPEED_MIDDLE&nbsp;</TD>
44            <TD align="center">8</TD>
45<TD>frames</TD>
46          </TR>
47          <TR>
48<TD>CARD_STAT_SPEED_SLOW&nbsp;</TD>
49            <TD align="center">12</TD>
50<TD>frames</TD>
51          </TR>
52        </TBODY>
53      </TABLE>
54<br> Use <code>CARD_STAT_SPEED_END</code> to terminate the animation if you are using 8 or fewer icons.</TD>
55    </TR>
56  </TBODY>
57</TABLE>
58<H2>Return Values</H2>
59<P>None.</P>
60<H2>Description</H2>
61<P>Sets the speed of the Memory Card icon animation to the <a href="CARDStat.html"><code>CARDStat</code></a> structure.</P>
62<P><STRONG>Note:</STRONG>
63This function is provided for debugging. Do not use in programs.</P>
64<H2>See Also</H2>
65<H2>Revision History</H2>
66<P>2006/03/01 Initial version.</P>
67<hr>
68<P>CONFIDENTIAL</p>
69</BODY>
70</HTML>