Sophie

Sophie

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

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.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.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_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_8c.html#1ea9ddc0b8dd43b676ce106c6b562bcb">dev_stk11xx_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="#1ea9ddc0b8dd43b676ce106c6b562bcb"></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_8c.html#e3ca760fb15d38628de5bfd1e43d6f29">dev_stk11xx_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="#e3ca760fb15d38628de5bfd1e43d6f29"></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_8c.html#f2171ad3523330d845d822fa2502a158">dev_stk11xx_check_device</a> (struct usb_stk11xx *dev, int nbr)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to check the device in reading the register 0x0201.  <a href="#f2171ad3523330d845d822fa2502a158"></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_8c.html#b6a8938b1423e69a210dc8a6ce6747cb">dev_stk11xx_watchdog_camera</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A espece of software watchdog.  <a href="#b6a8938b1423e69a210dc8a6ce6747cb"></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_8c.html#e978d7adfeabe3e7c31076fddee9a744">dev_stk11xx_camera_on</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function switchs on the camera.  <a href="#e978d7adfeabe3e7c31076fddee9a744"></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_8c.html#865eb05993bb42c88ce5c73fb39b210d">dev_stk11xx_camera_off</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function switchs off the camera.  <a href="#865eb05993bb42c88ce5c73fb39b210d"></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_8c.html#33117e9ffbc424c68d29dad93f6675c2">dev_stk11xx_camera_asleep</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wake-up the camera.  <a href="#33117e9ffbc424c68d29dad93f6675c2"></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_8c.html#9421e6bf87f9bef9f468acfd60a11562">dev_stk11xx_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="#9421e6bf87f9bef9f468acfd60a11562"></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_8c.html#7bd381d18244bcd3f8c9eb5514ad6d7a">dev_stk11xx_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 quality video of the camera.  <a href="#7bd381d18244bcd3f8c9eb5514ad6d7a"></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_8c.html#9226489b28f8cd22fcd55188e0c993bb">dev_stk11xx_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 fps of the camera.  <a href="#9226489b28f8cd22fcd55188e0c993bb"></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_8c.html#b21443fb38d3de22db64c6d4435babbc">dev_stk11xx_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="#b21443fb38d3de22db64c6d4435babbc"></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_8c.html#5c487b95ff9a43ca810016c688052bfa">dev_stk11xx_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="#5c487b95ff9a43ca810016c688052bfa"></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_8c.html#939f02cad30ad386080f8024741237bd">dev_stk11xx_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="#939f02cad30ad386080f8024741237bd"></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>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.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/1.3.1/stk11xx-dev.c</a> </dd></dl>

<p>Definition in file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="33117e9ffbc424c68d29dad93f6675c2"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_camera_asleep" ref="33117e9ffbc424c68d29dad93f6675c2" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00270">270</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00541">dev_stk6a31_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00651">dev_stk6a33_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00717">dev_stk6a51_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00267">dev_stk6a54_camera_asleep()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00631">dev_stka311_camera_asleep()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00582">dev_stka821_camera_asleep()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00339">v4l_stk11xx_release()</a>.</p>

</div>
</div><p>
<a class="anchor" name="865eb05993bb42c88ce5c73fb39b210d"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_camera_off" ref="865eb05993bb42c88ce5c73fb39b210d" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_camera_off           </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 switchs off 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>
In fact, we choose the alternate interface '0'. 
<p>Definition at line <a class="el" href="stk11xx-dev_8c_source.html#l00247">247</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx_8h_source.html#l00146">STK_ERROR</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00571">dev_stk6a31_init_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00681">dev_stk6a33_init_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00749">dev_stk6a51_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00661">dev_stka311_init_camera()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00612">dev_stka821_init_camera()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00679">usb_stk11xx_probe()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00339">v4l_stk11xx_release()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e978d7adfeabe3e7c31076fddee9a744"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_camera_on" ref="e978d7adfeabe3e7c31076fddee9a744" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_camera_on           </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 switchs on 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>
In fact, we choose the alternate interface '5'. 
<p>Definition at line <a class="el" href="stk11xx-dev_8c_source.html#l00224">224</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx_8h_source.html#l00146">STK_ERROR</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-usb_8c_source.html#l00679">usb_stk11xx_probe()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9421e6bf87f9bef9f468acfd60a11562"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_camera_settings" ref="9421e6bf87f9bef9f468acfd60a11562" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00321">321</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00717">dev_stk6a31_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00820">dev_stk6a33_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01431">dev_stk6a51_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00436">dev_stk6a54_camera_settings()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00818">dev_stka311_camera_settings()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00737">dev_stka821_camera_settings()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00847">dev_stk6a31_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00966">dev_stk6a33_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01530">dev_stk6a51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00501">dev_stk6a54_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01004">dev_stka311_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00874">dev_stka821_reconf_camera()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f2171ad3523330d845d822fa2502a158"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_check_device" ref="f2171ad3523330d845d822fa2502a158" args="(struct usb_stk11xx *dev, int nbr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_check_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>nbr</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 check the device in reading the register 0x0201. 
<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>nbr</em>&nbsp;</td><td>Number of tries</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
When we configure the stk11xx, this function is used to check the device status.<ul>
<li>If the read value is 0x00, then the device isn't ready.</li><li>If the read value is 0x04, then the device is ready.</li><li>If the read value is other, then the device is misconfigured. </li></ul>

<p>Definition at line <a class="el" href="stk11xx-dev_8c_source.html#l00161">161</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

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

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00717">dev_stk6a31_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">dev_stk6a31_configure_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00069">dev_stk6a31_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00605">dev_stk6a31_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00764">dev_stk6a31_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00820">dev_stk6a33_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00069">dev_stk6a33_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00710">dev_stk6a33_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00872">dev_stk6a33_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00334">dev_stk6a51_configure_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00069">dev_stk6a51_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00780">dev_stk6a51_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01450">dev_stk6a51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00069">dev_stk6a54_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00313">dev_stk6a54_sensor_settings()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00818">dev_stka311_camera_settings()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00392">dev_stka311_configure_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00661">dev_stka311_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00069">dev_stka311_initialize_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00710">dev_stka311_sensor_settings()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00737">dev_stka821_camera_settings()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00315">dev_stka821_configure_device()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00069">dev_stka821_initialize_device()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00661">dev_stka821_sensor_settings()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00794">dev_stka821_set_camera_quality()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e3ca760fb15d38628de5bfd1e43d6f29"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_init_camera" ref="e3ca760fb15d38628de5bfd1e43d6f29" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00110">110</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00571">dev_stk6a31_init_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00681">dev_stk6a33_init_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00749">dev_stk6a51_init_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00297">dev_stk6a54_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00661">dev_stka311_init_camera()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00612">dev_stka821_init_camera()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="1ea9ddc0b8dd43b676ce106c6b562bcb"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_initialize_device" ref="1ea9ddc0b8dd43b676ce106c6b562bcb" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00062">62</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00069">dev_stk6a31_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00069">dev_stk6a33_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00069">dev_stk6a51_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00069">dev_stk6a54_initialize_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00069">dev_stka311_initialize_device()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00069">dev_stka821_initialize_device()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-usb_8c_source.html#l00679">usb_stk11xx_probe()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5c487b95ff9a43ca810016c688052bfa"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_reconf_camera" ref="5c487b95ff9a43ca810016c688052bfa" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00515">515</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00847">dev_stk6a31_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00966">dev_stk6a33_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01530">dev_stk6a51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00501">dev_stk6a54_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01004">dev_stka311_reconf_camera()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00874">dev_stka821_reconf_camera()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9226489b28f8cd22fcd55188e0c993bb"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_set_camera_fps" ref="9226489b28f8cd22fcd55188e0c993bb" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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 fps 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 of the camera. So the number of images per second. 
<p>Definition at line <a class="el" href="stk11xx-dev_8c_source.html#l00420">420</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00798">dev_stk6a31_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00917">dev_stk6a33_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01484">dev_stk6a51_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00470">dev_stk6a54_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00915">dev_stka311_set_camera_fps()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00828">dev_stka821_set_camera_fps()</a>.</p>

</div>
</div><p>
<a class="anchor" name="7bd381d18244bcd3f8c9eb5514ad6d7a"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_set_camera_quality" ref="7bd381d18244bcd3f8c9eb5514ad6d7a" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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 quality video 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_8c_source.html#l00372">372</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00764">dev_stk6a31_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00872">dev_stk6a33_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01450">dev_stk6a51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00455">dev_stk6a54_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00858">dev_stka311_set_camera_quality()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00794">dev_stka821_set_camera_quality()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-sysfs_8c_source.html#l00263">store_brightness()</a>, <a class="el" href="stk11xx-sysfs_8c_source.html#l00424">store_colour()</a>, <a class="el" href="stk11xx-sysfs_8c_source.html#l00316">store_contrast()</a>, and <a class="el" href="stk11xx-sysfs_8c_source.html#l00370">store_whitebalance()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b21443fb38d3de22db64c6d4435babbc"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_start_stream" ref="b21443fb38d3de22db64c6d4435babbc" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00468">468</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00814">dev_stk6a31_start_stream()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00933">dev_stk6a33_start_stream()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01500">dev_stk6a51_start_stream()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00486">dev_stk6a54_start_stream()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00974">dev_stka311_start_stream()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00844">dev_stka821_start_stream()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="939f02cad30ad386080f8024741237bd"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_stop_stream" ref="939f02cad30ad386080f8024741237bd" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_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_8c_source.html#l00563">563</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00867">dev_stk6a31_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00986">dev_stk6a33_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01550">dev_stk6a51_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00519">dev_stk6a54_stop_stream()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01045">dev_stka311_stop_stream()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00894">dev_stka821_stop_stream()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00339">v4l_stk11xx_release()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b6a8938b1423e69a210dc8a6ce6747cb"></a><!-- doxytag: member="stk11xx&#45;dev.c::dev_stk11xx_watchdog_camera" ref="b6a8938b1423e69a210dc8a6ce6747cb" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk11xx_watchdog_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>
A espece of software watchdog. 
<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>Value of register 0x0001</dd></dl>
This function reads periodically the value of register 0x0001.<p>
We don't know the purpose. I assume that it seems to a software watchdog. 
<p>Definition at line <a class="el" href="stk11xx-dev_8c_source.html#l00201">201</a> of file <a class="el" href="stk11xx-dev_8c_source.html">stk11xx-dev.c</a>.</p>

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

<p>Referenced by <a class="el" href="stk11xx-buf_8c_source.html#l00408">stk11xx_handle_frame()</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>