Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 5c710d7790f885bcc8dd115ae6a7763f > files > 36

syntek-2.1.0-1mdv2010.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>SyntekUSBVideoCamera: stk11xx-dev-6a33.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>stk11xx-dev-6a33.c File Reference</h1>Driver for Syntek USB video camera.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;linux/module.h&gt;</code><br>
<code>#include &lt;linux/init.h&gt;</code><br>
<code>#include &lt;linux/kernel.h&gt;</code><br>
<code>#include &lt;linux/version.h&gt;</code><br>
<code>#include &lt;linux/errno.h&gt;</code><br>
<code>#include &lt;linux/slab.h&gt;</code><br>
<code>#include &lt;linux/kref.h&gt;</code><br>
<code>#include &lt;linux/usb.h&gt;</code><br>
<code>#include &lt;media/v4l2-common.h&gt;</code><br>
<code>#include &lt;media/v4l2-ioctl.h&gt;</code><br>
<code>#include &quot;<a class="el" href="stk11xx_8h_source.html">stk11xx.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="stk11xx-dev_8h_source.html">stk11xx-dev.h</a>&quot;</code><br>

<p>
<a href="stk11xx-dev-6a33_8c_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#e852f9117e520a16a0052f3d3f11f288">dev_stk6a33_initialize_device</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to initialize the device.  <a href="#e852f9117e520a16a0052f3d3f11f288"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#ce54aee6616c0730127e589dcc2f984b">dev_stk6a33_configure_device</a> (struct usb_stk11xx *dev, int step)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to configure the device.  <a href="#ce54aee6616c0730127e589dcc2f984b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#cc2b3f307024b553bc380d790bc89358">dev_stk6a33_camera_asleep</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wake-up the camera.  <a href="#cc2b3f307024b553bc380d790bc89358"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#c72989153572e9f60e37187a7b59993f">dev_stk6a33_init_camera</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function initializes the device for the stream.  <a href="#c72989153572e9f60e37187a7b59993f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#d2ec1e9caee6b0774c0b0ee981427062">dev_stk6a33_sensor_settings</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to set default sensor settings.  <a href="#d2ec1e9caee6b0774c0b0ee981427062"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#192efff613fb898669032c539d215d66">dev_stk6a33_camera_settings</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#192efff613fb898669032c539d215d66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#f03d3bfc76211062bb3a7046addcaf1b">dev_stk6a33_set_camera_quality</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#f03d3bfc76211062bb3a7046addcaf1b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#feba8556c0ae088e602c639e7a7f743e">dev_stk6a33_set_camera_fps</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#feba8556c0ae088e602c639e7a7f743e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#e5b093cf50db27de6da76ca49ef6e4a9">dev_stk6a33_start_stream</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function sets the device to start the stream.  <a href="#e5b093cf50db27de6da76ca49ef6e4a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#d9492b13fd87977f4b4f6db169516cc5">dev_stk6a33_reconf_camera</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reconfigure the camera before the stream.  <a href="#d9492b13fd87977f4b4f6db169516cc5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a33_8c.html#767e5d4e5c1ffeee7f0d1e596e7abdae">dev_stk6a33_stop_stream</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function sets the device to stop the stream.  <a href="#767e5d4e5c1ffeee7f0d1e596e7abdae"></a><br></td></tr>
</table>
<hr><h2>Detailed Description</h2>
Driver for Syntek USB video camera. 
<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Nicolas VIVIEN </dd></dl>
<dl class="date" compact><dt><b>Date:</b></dt><dd>2006-10-23 </dd></dl>
<dl class="version" compact><dt><b>Version:</b></dt><dd>v2.0.x</dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Copyright (C) Nicolas VIVIEN</dd></dl>
<dl class="user" compact><dt><b>Licences</b></dt><dd></dd></dl>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.<p>
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p>
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<p>
<dl class="user" compact><dt><b>SubVersion</b></dt><dd></dd></dl>
<dl class="rcs" compact><dt><b>Date</b></dt><dd>2009-03-25 15:13:05 +0100 (mer 25 mar 2009) </dd></dl>
<dl class="rcs" compact><dt><b>Revision</b></dt><dd>84 </dd></dl>
<dl class="rcs" compact><dt><b>Author</b></dt><dd>nicklas79 </dd></dl>
<dl class="rcs" compact><dt><b>HeadURL</b></dt><dd><a href="https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/2.1.0/stk11xx-dev-6a33.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/2.1.0/stk11xx-dev-6a33.c</a> </dd></dl>

<p>Definition in file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="cc2b3f307024b553bc380d790bc89358"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_camera_asleep" ref="cc2b3f307024b553bc380d790bc89358" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_camera_asleep           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Wake-up the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This function permits to wake-up the device. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00652">652</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00287">dev_stk11xx_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00682">dev_stk6a33_init_camera()</a>, and <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00070">dev_stk6a33_initialize_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="192efff613fb898669032c539d215d66"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_camera_settings" ref="192efff613fb898669032c539d215d66" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_camera_settings           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the settings :<ul>
<li>brightness</li><li>contrast</li><li>white balance</li><li>... </li></ul>

<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00821">821</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00170">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00342">dev_stk11xx_camera_settings()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ce54aee6616c0730127e589dcc2f984b"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_configure_device" ref="ce54aee6616c0730127e589dcc2f984b" args="(struct usb_stk11xx *dev, int step)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_configure_device           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>step</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to configure the device. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>step</em>&nbsp;</td><td>The step of configuration [0-11]</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
The configuration of device is composed of 11 steps. This function is called by the initialization process.<p>
We don't know the meaning of these steps ! We only replay the USB log.<p>
The steps 0 to 9 are called during the initialization. Then, the driver choose the last step : 10 : for a resolution from 80x60 to 640x480 11 : for a resolution from 800x600 to 1280x1024 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00368">368</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00711">dev_stk6a33_sensor_settings()</a>, <a class="el" href="stk11xx_8h_source.html#l00149">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00682">dev_stk6a33_init_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00070">dev_stk6a33_initialize_device()</a>, and <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00967">dev_stk6a33_reconf_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c72989153572e9f60e37187a7b59993f"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_init_camera" ref="c72989153572e9f60e37187a7b59993f" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_init_camera           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function initializes the device for the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
It's the start. This function has to be called at first, before enabling the video stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00682">682</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00264">dev_stk11xx_camera_off()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00652">dev_stk6a33_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00368">dev_stk6a33_configure_device()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00474">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00115">dev_stk11xx_init_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e852f9117e520a16a0052f3d3f11f288"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_initialize_device" ref="e852f9117e520a16a0052f3d3f11f288" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_initialize_device           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to initialize the device. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.<p>
This function is written from the USB log. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00070">70</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00170">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00652">dev_stk6a33_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00368">dev_stk6a33_configure_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00149">STK_DEBUG</a>, <a class="el" href="stk11xx_8h_source.html#l00146">STK_INFO</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00474">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00063">dev_stk11xx_initialize_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d9492b13fd87977f4b4f6db169516cc5"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_reconf_camera" ref="d9492b13fd87977f4b4f6db169516cc5" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_reconf_camera           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reconfigure the camera before the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
Before enabling the video stream, you have to reconfigure the device. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00967">967</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00342">dev_stk11xx_camera_settings()</a>, and <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00368">dev_stk6a33_configure_device()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00552">dev_stk11xx_reconf_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d2ec1e9caee6b0774c0b0ee981427062"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_sensor_settings" ref="d2ec1e9caee6b0774c0b0ee981427062" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_sensor_settings           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to set default sensor settings. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00711">711</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00170">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00147">STK_ERROR</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00368">dev_stk6a33_configure_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="feba8556c0ae088e602c639e7a7f743e"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_set_camera_fps" ref="feba8556c0ae088e602c639e7a7f743e" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_set_camera_fps           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the frame rate per second.<p>
0x204 = 0x2e : Fps MSB (by default 0x01) 0x204 = 0x2d : Fps LSB (by default 0x00)<p>
0x2e | 0x2d | Nbr fps -----+------+-------- 0x00 | 0x00 | 30 0x01 | 0x00 | 20 0x02 | 0x00 | 15 0x03 | 0x00 | 12 0x04 | 0x00 | 10 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00918">918</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00449">dev_stk11xx_set_camera_fps()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f03d3bfc76211062bb3a7046addcaf1b"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_set_camera_quality" ref="f03d3bfc76211062bb3a7046addcaf1b" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_set_camera_quality           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the settings :<ul>
<li>brightness</li><li>contrast</li><li>white balance</li><li>...</li></ul>
<p>
0x204 = 0xa1 : unkown (by default 0x00) 0x204 = 0x10 : contrast (by default 0x7c) 0x204 = 0x04 : Mode (unknown) (by default 0x00) (=&gt; already looked 0x01 and 0x02) 0x204 = 0x00 : brightness / white balance (by default 0x00) 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00873">873</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00170">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00149">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00397">dev_stk11xx_set_camera_quality()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e5b093cf50db27de6da76ca49ef6e4a9"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_start_stream" ref="e5b093cf50db27de6da76ca49ef6e4a9" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_start_stream           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function sets the device to start the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00934">934</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00501">dev_stk11xx_start_stream()</a>.</p>

</div>
</div><p>
<a class="anchor" name="767e5d4e5c1ffeee7f0d1e596e7abdae"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a33.c::dev_stk6a33_stop_stream" ref="767e5d4e5c1ffeee7f0d1e596e7abdae" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a33_stop_stream           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function sets the device to stop the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00987">987</a> of file <a class="el" href="stk11xx-dev-6a33_8c_source.html">stk11xx-dev-6a33.c</a>.</p>

<p>References <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00540">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00604">dev_stk11xx_stop_stream()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Nov 11 13:36:59 2009 for SyntekUSBVideoCamera by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>