Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b7b6877999d0754e8ed227e0b2f603dc > files > 38

syntek-1.3.1-6mdv2010.0.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-6a51.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-6a51.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 &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-6a51_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-6a51_8c.html#0774499a38e9c4d87a61c85afa5663c2">dev_stk6a51_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="#0774499a38e9c4d87a61c85afa5663c2"></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-6a51_8c.html#af26cd04c814ee205a32eb9cefd75112">dev_stk6a51_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="#af26cd04c814ee205a32eb9cefd75112"></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-6a51_8c.html#e3be47290d31f77f0229bb0997021ff9">dev_stk6a51_camera_asleep</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wake-up the camera.  <a href="#e3be47290d31f77f0229bb0997021ff9"></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-6a51_8c.html#3f8844e49d4a2fce0e410c7a94eef9c7">dev_stk6a51_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="#3f8844e49d4a2fce0e410c7a94eef9c7"></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-6a51_8c.html#47c30deee42b186ac37e51f01143db48">dev_stk6a51_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="#47c30deee42b186ac37e51f01143db48"></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-6a51_8c.html#5dd55183d061e2b115edf270289fa520">dev_stk6a51_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="#5dd55183d061e2b115edf270289fa520"></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-6a51_8c.html#68ac7c816f1fc77750d5f9b9db300ccc">dev_stk6a51_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="#68ac7c816f1fc77750d5f9b9db300ccc"></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-6a51_8c.html#6b4817c3d1006153a02d9321986d0ee1">dev_stk6a51_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="#6b4817c3d1006153a02d9321986d0ee1"></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-6a51_8c.html#e71a975ac4854150bb2c3249ea4057d4">dev_stk6a51_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="#e71a975ac4854150bb2c3249ea4057d4"></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-6a51_8c.html#85082f15df85f027f3c00c4ea41f847f">dev_stk6a51_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="#85082f15df85f027f3c00c4ea41f847f"></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-6a51_8c.html#f0da45afc51fd63c4971ca150312757f">dev_stk6a51_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="#f0da45afc51fd63c4971ca150312757f"></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>2007-12-07 </dd></dl>
<dl class="version" compact><dt><b>Version:</b></dt><dd>v1.3.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>2007-12-11 14:50:16 +0100 (mar, 11 déc 2007) </dd></dl>
<dl class="rcs" compact><dt><b>Revision</b></dt><dd>70 </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/1.3.1/stk11xx-dev-6a51.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/1.3.1/stk11xx-dev-6a51.c</a> </dd></dl>

<p>Definition in file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="e3be47290d31f77f0229bb0997021ff9"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_camera_asleep" ref="e3be47290d31f77f0229bb0997021ff9" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l00717">717</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00270">dev_stk11xx_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00749">dev_stk6a51_init_camera()</a>, and <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00069">dev_stk6a51_initialize_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5dd55183d061e2b115edf270289fa520"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_camera_settings" ref="5dd55183d061e2b115edf270289fa520" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l01431">1431</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="af26cd04c814ee205a32eb9cefd75112"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_configure_device" ref="af26cd04c814ee205a32eb9cefd75112" args="(struct usb_stk11xx *dev, int step)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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 12 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>Definition at line <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">334</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00780">dev_stk6a51_sensor_settings()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00749">dev_stk6a51_init_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00069">dev_stk6a51_initialize_device()</a>, and <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01530">dev_stk6a51_reconf_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3f8844e49d4a2fce0e410c7a94eef9c7"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_init_camera" ref="3f8844e49d4a2fce0e410c7a94eef9c7" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l00749">749</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00247">dev_stk11xx_camera_off()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00717">dev_stk6a51_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">dev_stk6a51_configure_device()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00478">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="0774499a38e9c4d87a61c85afa5663c2"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_initialize_device" ref="0774499a38e9c4d87a61c85afa5663c2" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l00069">69</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00717">dev_stk6a51_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">dev_stk6a51_configure_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, <a class="el" href="stk11xx_8h_source.html#l00145">STK_INFO</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00478">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="85082f15df85f027f3c00c4ea41f847f"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_reconf_camera" ref="85082f15df85f027f3c00c4ea41f847f" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l01530">1530</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00321">dev_stk11xx_camera_settings()</a>, and <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">dev_stk6a51_configure_device()</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="47c30deee42b186ac37e51f01143db48"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_sensor_settings" ref="47c30deee42b186ac37e51f01143db48" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l00780">780</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

<p>Referenced by <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">dev_stk6a51_configure_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6b4817c3d1006153a02d9321986d0ee1"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_set_camera_fps" ref="6b4817c3d1006153a02d9321986d0ee1" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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>Definition at line <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01484">1484</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="68ac7c816f1fc77750d5f9b9db300ccc"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_set_camera_quality" ref="68ac7c816f1fc77750d5f9b9db300ccc" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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>Definition at line <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01450">1450</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

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

</div>
</div><p>
<a class="anchor" name="e71a975ac4854150bb2c3249ea4057d4"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_start_stream" ref="e71a975ac4854150bb2c3249ea4057d4" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l01500">1500</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

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

</div>
</div><p>
<a class="anchor" name="f0da45afc51fd63c4971ca150312757f"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a51.c::dev_stk6a51_stop_stream" ref="f0da45afc51fd63c4971ca150312757f" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a51_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-6a51_8c_source.html#l01550">1550</a> of file <a class="el" href="stk11xx-dev-6a51_8c_source.html">stk11xx-dev-6a51.c</a>.</p>

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

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Sep 20 12:18:50 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>