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>CARD_Init</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">CARD_Init <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/card.h&gt;</CODE><BR>
16  <BR>
17  <CODE>void CARD_Init( void );</CODE><br>
18  <br>
19  </dd>
20</dl>
21<h2>Arguments</h2>
22<p>
23None.
24</p>
25<h2>Return Values</h2>
26<p>None.</p>
27<H2>Description</H2>
28<P>This function initializes the CARD module. It must be called at least once before any CARD function is called. However, if you call <code>CARD_Init</code> more than once, nothing happens. Note that this function is called from within the <A href="../../os/init/OS_Init.html"><CODE>OS_Init</CODE></A> function, so there is no need for the application to call it again. This function generates an asynchronous process thread during initialization processing. This thread is used internally when restrictions on arguments or the operating environment prevent <A href="../rom/CARD_ReadRomAsync.html"><CODE>CARD_ReadRomAsync</CODE></A> and other asynchronous functions from running in an interrupt handler alone. The priority of this thread is set to <code><A href="../card_thread_priority_default_const.html">CARD_THREAD_PRIORITY_DEFAULT</A></code> by default. It can be changed with the <code><A href="CARD_SetThreadPriority.html">CARD_SetThreadPriority</A></code> function. <br>
29</p>
30<h2>See Also</h2>
31<p><code><a href="CARD_IsAvailable.html">CARD_IsAvailable</a><BR> <a href="../../os/init/OS_Init.html">OS_Init</a></code></P>
32<H2>Revision History</H2>
332005/04/11 Mentioned that asynchronous threads are generated automatically. <br>2004/10/18 Explained that this is called from the <CODE>OS_Init</CODE> function. <br>2004/07/05 Initial version.<br>
34</P>
35<hr><p>CONFIDENTIAL</p></body>
36</html>
37