1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::cec::CTR::CecControl</title> 49 </head> 50 <body> 51<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/cec/Overview.html">cec</a>::<a href="../../../../nn/cec/CTR/Overview.html">CTR</a>::CecControl</CODE> Class</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54<pre class="definition">class CecControl</pre> 55 </div> 56<h2>Description</h2> 57 <div class="section"> 58<p>Changes StreetPass (CEC) status and gets information.</p><p>The StreetPass daemon state is managed by the system and the daemon runs automatically.<br />When you access a message box (using <CODE>OpenMessageBox</CODE>, <CODE>ReadMessage</CODE>, <CODE>WriteMessage</CODE> or similar), the StreetPass daemon operations are suspended and it enters the IDLE state.<br /><br />In order to conserve power, each time the system performs communication it records the communication peer, and will not communicate with that peer again until an average of four hours (zero to eight hours) and no more than eight hours have passed.<br />Communication peers are remembered if (1) one or more items of data were sent or received or (2) communication was started, but no data was available to be sent or received (for example, if the inbox was full).<br />Powering off the system does not erase this information. Up to 255 peers can be stored in memory.<br />Note that you cannot use this class to begin communication and deliver data to communication peers at specified times.<br />For debugging purposes, there is a method to reset the past communication peer information and allow exchanging data again with the same peer(s). To reset the information, specify <CODE>true</CODE> as an argument to <CODE><a href="../../../../nn/cec/CTR/CecControl/StartScanning.html">StartScanning</a></CODE>. This function is only available when debugging mode is enabled.</p><!-- write here --></div> 59 <a name="enum" id="enum"> 60<h2>Enumerated Types</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <td width="100"> </td> 65 <th> 66<a href="../../../../nn/cec/CTR/CecControl/DaemonState.html"><CODE>DaemonState</CODE></a> 67 </th> 68<td>Value indicating the StreetPass (CEC) state returned by the <a href="../../../../nn/cec/CTR/CecControl/GetCecState.html"><CODE>GetCecState</CODE></a> function. A message box can only be accessed when this is <CODE>DAEMON_STATE_IDLE</CODE>.</td> 69 </tr> </table> 70 </div> 71 </a> <a name="function" id="function"> 72<h2>Member Functions</h2> 73 <div class="section"> 74 <table class="members"> 75 <tr> 76 <td width="100"> 77<span class="static_style" title="static">S</span> </td> 78 <th> 79<a href="../../../../nn/cec/CTR/CecControl/StartScanning.html"><CODE>StartScanning</CODE></a> 80 </th> 81<td>Starts up StreetPass (<a href="../../../../nn/cec/Overview.html">CEC</a>) operations.</td> 82 </tr> 83 <tr> 84 <td width="100"> 85<span class="static_style" title="static">S</span> </td> 86 <th> 87<a href="../../../../nn/cec/CTR/CecControl/StopScanning.html"><CODE>StopScanning</CODE></a> 88 </th> 89<td>Manually halts StreetPass (<a href="../../../../nn/cec/Overview.html">CEC</a>) operations.</td> 90 </tr> 91 <tr> 92 <td width="100"> 93<span class="static_style" title="static">S</span> </td> 94 <th> 95<a href="../../../../nn/cec/CTR/CecControl/GetCecState.html"><CODE>GetCecState</CODE></a> 96 </th> 97<td>Obtains the StreetPass state.</td> 98 </tr> 99 <tr> 100 <td width="100"> 101<span class="static_style" title="static">S</span> </td> 102 <th> 103<a href="../../../../nn/cec/CTR/CecControl/EnterExclusiveState.html"><CODE>EnterExclusiveState</CODE></a> 104 </th> 105<td>Enters exclusive mode. (Used for debugging.)</td> 106 </tr> 107 <tr> 108 <td width="100"> 109<span class="static_style" title="static">S</span> </td> 110 <th> 111<a href="../../../../nn/cec/CTR/CecControl/LeaveExclusiveState.html"><CODE>LeaveExclusiveState</CODE></a> 112 </th> 113<td>Ends exclusive mode. (Used for debugging.)</td> 114 </tr> </table> 115 </div> 116 </a> 117<h2>Revision History</h2> 118 <div class="section"> 119 <dl class="history"> 120 <dt>2010/08/16</dt> 121<dd>Initial version.<br /> 122 </dd> 123 </dl> 124 </div> 125 <hr><p>CONFIDENTIAL</p></body> 126</html> 127