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 http-equiv="Content-Style-Type" content="text/css">
6<TITLE>NCDIfConfig</TITLE>
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8</HEAD>
9<BODY>
10<H1>NCDIfConfig</H1>
11
12<H2>C Specification</H2>
13<DL>
14  <DD><PRE><CODE>#include &lt;revolution/ncd.h&gt;</CODE></PRE>
15  <DD><PRE><CODE>/* Structure storing the network interface configuration */
16typedef struct NCDIfConfig
17{
18    u8      selectedMedia;      /* NCD_IF_SELECT_* */
19    u8      linkTimeout;
20    union
21    {
22        <A href="NCDWiredProfile.html">NCDWiredProfile</A>     wired;
23        <A href="NCDWirelessProfile.html">NCDWirelessProfile</A>  wireless;
24
25    } netif;
26
27} NCDIfConfig;
28</CODE></PRE>
29</DL>
30
31<H2>Description</H2>
32<P>
33This structure stores the network interface configuration.
34</P>
35<P>
36Set <CODE>selectedMedia</CODE> to one of the following constants to specify which network interface to use for the network connection:
37</P>
38<P>
39<PRE><CODE>#define     NCD_IF_SELECT_NONE              0x00 // no network connection
40#define     NCD_IF_SELECT_WIRELESS          0x01 // use the Wi-Fi module
41#define     NCD_IF_SELECT_WIRED             0x02 // Use the Wii LAN adapter (Ethernet)
42</CODE></PRE>
43</P>
44<P>
45Furthermore, the appropriate structure, either <CODE>wired</CODE> or <CODE>wireless</CODE>, is used for network interface settings based on the value set in <CODE>selectedMedia</CODE>.
46</P>
47<P>
48Set the timeout value of the interface setup (in seconds) in <CODE>linkTimeout</CODE>. When 0 is specified, the default value of 30 seconds is used.
49</P>
50
51<H2>See Also</H2>
52<P>
53None.
54</P>
55
56<H2>Revision History</H2>
57<P>
582007/03/01 Fixed typographical errors.<br>2006/08/14 Added information about linkTimeout.<br>2006/08/09 Initial version.
59</P>
60
61<hr><p>CONFIDENTIAL</p></body>
62</HTML>