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<title>IsBusy</title>
8  </head>
9  <body>
10<h1><CODE>nn::camera::CTR::IsBusy</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool IsBusy(
15     <a href="../../../nn/camera/CTR/Port.html">Port</a> port
16);
17</pre>
18    </div>
19<h2>Arguments</h2>
20    <div class="section">
21      <table class="arguments">
22        <thead>
23          <tr>
24            <td width="15" />
25<th>Name</th>
26<td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30<td>in</td>
31<th>port</th>
32<td>Specifies the port to check.</td>
33        </tr> </table>
34    </div>
35<h2>Return Values</h2>
36<div class="section">Returns <CODE>true</CODE> if currently capturing; otherwise, returns <CODE>false</CODE>. </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Gets whether the camera is currently capturing image data.</p><P>
40In specific terms, the cameras begin capturing image data at the end of the next camera V-Blank after <a href="../../../nn/camera/CTR/StartCapture.html"><CODE>nn::camera::CTR::StartCapture</CODE></a> is called; they continue to capture image data until the beginning of the next camera V-Blank after <a href="../../../nn/camera/CTR/StopCapture.html"><CODE>nn::camera::CTR::StopCapture</CODE></a> is called.
41            </P><P>
42If the aforementioned functions are called during a camera V-Blank, the camera state is updated during that V-Blank instead of the next V-Blank.
43</P><P>If the camera is stopped by <CODE><a href="../../../nn/camera/CTR/Activate.html">nn::camera::CTR::Activate</a>(SELECT_NONE)</CODE> before the <a href="../../../nn/camera/CTR/StopCapture.html"><CODE>nn::camera::CTR::StopCapture</CODE></a> function is called, this function may enter a state where it always returns <CODE>true</CODE> (depending on when <a href="../../../nn/camera/CTR/Activate.html"><CODE>nn::camera::CTR::Activate</CODE></a> is called). In this case, another call to the <a href="../../../nn/camera/CTR/Activate.html"><CODE>nn::camera::CTR::Activate</CODE></a> function on either camera will cause this function to return <CODE>false</CODE> again. To ensure that this function returns <CODE>false</CODE> while the camera is actually stopped, first call the <a href="../../../nn/camera/CTR/StopCapture.html"><CODE>nn::camera::CTR::StopCapture</CODE></a> function; next, confirm that this function returns <CODE>false</CODE>; and finally stop the camera with <CODE><a href="../../../nn/camera/CTR/Activate.html">nn::camera::CTR::Activate</a>(SELECT_NONE)</CODE>.
44            </P><P>
45Closing the cover of the system automatically stops the camera. For this reason, depending on the timing of when the cover is closed, this function may enter a state where it always returns <CODE>true</CODE>. When the cover is opened, the system automatically restarts the camera, and the above state is cancelled. But when a process to transition from the cover closed to sleep is implemented, be aware that if this function performs polling, it may not be able to exit from the loop.
46            </P></div>
47<h2>Revision History</h2>
48    <div class="section">
49      <dl class="history">
50        <dt>2010/11/01</dt>
51<dd>Added an explanation about behavior when the camera is stopped and when the cover is closed.<br />
52        </dd>
53        <dt>2010/04/09</dt>
54<dd>Added description text.<br />
55        </dd>
56        <dt>2010/01/07</dt>
57<dd>Initial version.<br />
58        </dd>
59      </dl>
60    </div>
61  <hr><p>CONFIDENTIAL</p></body>
62</html>
63