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 calling <CODE>StartCapture</CODE>, and they continue capturing until the beginning of the next camera V-Blank after calling <CODE>StopCapture</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>
44When the camera is stopped with Activate( SELECT_NONE ) before calling the StopCapture function, this function may enter a state where it always returns <CODE>true</CODE>, depending on the timing when the Activate function is called. In this case, when either camera is set to the Activate function 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>StopCapture</CODE> function, then, after confirming that this function returns <CODE>false</CODE>, stop the camera with Activate( SELECT_NONE ).
45            </P><P>
46Closing 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.
47            </P></div>
48<h2>Revision History</h2>
49    <div class="section">
50      <dl class="history">
51        <dt>2010/11/01</dt>
52<dd>Added an explanation about behavior when the camera is stopped and when the cover is closed.<br />
53        </dd>
54        <dt>2010/04/09</dt>
55<dd>Added description text.<br />
56        </dd>
57        <dt>2010/01/07</dt>
58<dd>Initial version.<br />
59        </dd>
60      </dl>
61    </div>
62  <hr><p>CONFIDENTIAL</p></body>
63</html>