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 6.5.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>CARDGetSectorSize</title>
10</head>
11
12<body>
13
14<h1>CARDGetSectorSize</h1>
15<h2>C Specification</h2>
16
17<dl>
18<dd><pre><code>#include &lt;revolution/card.h&gt;</code></pre>
19  </dd>
20<dd><pre><CODE>s32 CARDGetSectorSize(s32 chan, u32* size);</CODE></pre></dd>
21</dl>
22
23<h2>Arguments</h2>
24<TABLE border="1" cellpadding="3" cellspacing="0.1">
25  <tr>
26<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>chan</code></EM></STRONG></code></strong></em></TD>
27<TD width="520">EXI channel number.</TD>
28    </tr>
29  <tr>
30<TD width="120" bgcolor="#ffffe8"><em><strong><code><em><strong><code>size</code></strong></em></code></strong></em></TD>
31<TD width="520">Pointer to u32 type to get the size.</TD>
32    </tr>
33</TABLE>
34<h2>Return Values</h2>
35
36<P>One of the following codes:</P>
37<p><code>CARD_RESULT_FATAL_ERROR<br> CARD_RESULT_NOCARD<br> CARD_RESULT_BUSY<br> CARD_RESULT_READY</code></p>
38<H2>Description</H2>
39<P>Gets the Memory Card sector size in bytes.&nbsp;The <code><a href="CARDCreate.html">CARDCreate</a></code> and <code><a href="CARDWrite.html">CARDWrite</a></code> functions require that processing be performed in multiples of the returned sector size.&nbsp;The size returned will be 8, 16, 32, 64, or 128 KB.&nbsp;<strong>A game program must support Memory Cards that have a sector size of 8 KB.</strong></P>
40<P><strong>Note:</strong> Nintendo officially discourages the current development of game programs that support memory cards with sectors that are not 8 KB. A game program should call the <CODE><a href="CARDProbeEx.html">CARDProbeEx</a></CODE> or <CODE><a href="CARDGetSectorSize.html">CARDGetSectorSize</a></CODE> function to verify whether the Memory Card is an 8 KB sector Memory Card before proceeding [as of 5/30/2001].</P>
41
42<h2>See Also</h2>
43
44<p><code><a href="CARDCreate.html">CARDCreate</a></code>, <code><a href="CARDCreateAsync.html">CARDCreateAsync</a></code>, <code><a href="CARDWrite.html">CARDWrite</a></code>, <code><a href="CARDWriteAsync.html">CARDWriteAsync</a></code></p>
45<H2>Revision History</H2>
46<P>2006/03/01 Initial version.</P>
47<hr>
48<P>CONFIDENTIAL</p>
49</BODY>
50</HTML>
51