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><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/camera/Overview.html">camera</a>::<a href="../../../nn/camera/CTR/Overview.html">CTR</a>::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>Parameters</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 calling <CODE><a href="../../../nn/camera/CTR/StartCapture.html">nn::camera::CTR::StartCapture</a></CODE>, and they continue capturing until the beginning of the next camera V-Blank after calling <CODE><a href="../../../nn/camera/CTR/StopCapture.html">nn::camera::CTR::StopCapture</a></CODE>.
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 was stopped by a call to <CODE><a href="../../../nn/camera/CTR/Activate.html">nn::camera::CTR::Activate</a>( SELECT_NONE )</CODE> before calling <CODE><a href="../../../nn/camera/CTR/StopCapture.html">nn::camera::CTR::StopCapture</a></CODE>, then depending on when the <CODE><a href="../../../nn/camera/CTR/Activate.html">nn::camera::CTR::Activate</a></CODE> function was called, it is possible that this function will always return <CODE>true</CODE>. In this case, when the <CODE><a href="../../../nn/camera/CTR/Activate.html">nn::camera::CTR::Activate</a></CODE> function is run on either camera again, this function will return <CODE>false</CODE>. To ensure this function returns <CODE>false</CODE> while the camera is actually stopped, call the <CODE><a href="../../../nn/camera/CTR/StopCapture.html">nn::camera::CTR::StopCapture</a></CODE> function, then, after confirming that this function returns <CODE>false</CODE>, 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