Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > by-pkgid > 5c710d7790f885bcc8dd115ae6a7763f > files > 48

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.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 &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_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>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.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/2.1.0/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#l00287">287</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#l00542">dev_stk6a31_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00652">dev_stk6a33_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00718">dev_stk6a51_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00268">dev_stk6a54_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00250">dev_stk6d51_camera_asleep()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00632">dev_stka311_camera_asleep()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00583">dev_stka821_camera_asleep()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00344">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#l00264">264</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#l00147">STK_ERROR</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00572">dev_stk6a31_init_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00682">dev_stk6a33_init_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00750">dev_stk6a51_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00662">dev_stka311_init_camera()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00613">dev_stka821_init_camera()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00676">usb_stk11xx_probe()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00344">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#l00241">241</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#l00147">STK_ERROR</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-usb_8c_source.html#l00676">usb_stk11xx_probe()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00255">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#l00342">342</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#l00718">dev_stk6a31_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00821">dev_stk6a33_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01432">dev_stk6a51_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00437">dev_stk6a54_camera_settings()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00967">dev_stk6d51_camera_settings()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00819">dev_stka311_camera_settings()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00738">dev_stka821_camera_settings()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00848">dev_stk6a31_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00967">dev_stk6a33_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01531">dev_stk6a51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00502">dev_stk6a54_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l01051">dev_stk6d51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01005">dev_stka311_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00875">dev_stka821_reconf_camera()</a>, <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00255">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#l00170">170</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#l00147">STK_ERROR</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00718">dev_stk6a31_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00155">dev_stk6a31_configure_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00070">dev_stk6a31_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00606">dev_stk6a31_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00765">dev_stk6a31_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00821">dev_stk6a33_camera_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00070">dev_stk6a33_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00711">dev_stk6a33_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00873">dev_stk6a33_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00335">dev_stk6a51_configure_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00070">dev_stk6a51_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00781">dev_stk6a51_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01451">dev_stk6a51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00070">dev_stk6a54_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00314">dev_stk6a54_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00070">dev_stk6d51_initialize_device()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00296">dev_stk6d51_sensor_settings()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00986">dev_stk6d51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00819">dev_stka311_camera_settings()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00393">dev_stka311_configure_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00662">dev_stka311_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00070">dev_stka311_initialize_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00711">dev_stka311_sensor_settings()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00738">dev_stka821_camera_settings()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00316">dev_stka821_configure_device()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00070">dev_stka821_initialize_device()</a>, <a class="el" href="stk11xx-dev-a821_8c_source.html#l00662">dev_stka821_sensor_settings()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00795">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#l00115">115</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#l00572">dev_stk6a31_init_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00682">dev_stk6a33_init_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00750">dev_stk6a51_init_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00298">dev_stk6a54_init_camera()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00280">dev_stk6d51_init_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00662">dev_stka311_init_camera()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00613">dev_stka821_init_camera()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00255">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#l00063">63</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#l00070">dev_stk6a31_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00070">dev_stk6a33_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l00070">dev_stk6a51_initialize_device()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00070">dev_stk6a54_initialize_device()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00070">dev_stk6d51_initialize_device()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00070">dev_stka311_initialize_device()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00070">dev_stka821_initialize_device()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-usb_8c_source.html#l00676">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#l00552">552</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#l00848">dev_stk6a31_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00967">dev_stk6a33_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01531">dev_stk6a51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00502">dev_stk6a54_reconf_camera()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l01051">dev_stk6d51_reconf_camera()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01005">dev_stka311_reconf_camera()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00875">dev_stka821_reconf_camera()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00255">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#l00449">449</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#l00799">dev_stk6a31_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00918">dev_stk6a33_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01485">dev_stk6a51_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00471">dev_stk6a54_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l01020">dev_stk6d51_set_camera_fps()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00916">dev_stka311_set_camera_fps()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00829">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#l00397">397</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#l00765">dev_stk6a31_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00873">dev_stk6a33_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01451">dev_stk6a51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00456">dev_stk6a54_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l00986">dev_stk6d51_set_camera_quality()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00859">dev_stka311_set_camera_quality()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00795">dev_stka821_set_camera_quality()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-sysfs_8c_source.html#l00239">store_brightness()</a>, <a class="el" href="stk11xx-sysfs_8c_source.html#l00376">store_colour()</a>, <a class="el" href="stk11xx-sysfs_8c_source.html#l00284">store_contrast()</a>, and <a class="el" href="stk11xx-sysfs_8c_source.html#l00330">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#l00501">501</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#l00815">dev_stk6a31_start_stream()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00934">dev_stk6a33_start_stream()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01501">dev_stk6a51_start_stream()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00487">dev_stk6a54_start_stream()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l01036">dev_stk6d51_start_stream()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l00975">dev_stka311_start_stream()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00845">dev_stka821_start_stream()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00255">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#l00604">604</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#l00868">dev_stk6a31_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a33_8c_source.html#l00987">dev_stk6a33_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a51_8c_source.html#l01551">dev_stk6a51_stop_stream()</a>, <a class="el" href="stk11xx-dev-6a54_8c_source.html#l00520">dev_stk6a54_stop_stream()</a>, <a class="el" href="stk11xx-dev-6d51_8c_source.html#l01069">dev_stk6d51_stop_stream()</a>, <a class="el" href="stk11xx-dev-a311_8c_source.html#l01046">dev_stka311_stop_stream()</a>, and <a class="el" href="stk11xx-dev-a821_8c_source.html#l00895">dev_stka821_stop_stream()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00612">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00344">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#l00218">218</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#l00147">STK_ERROR</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00572">usb_stk11xx_read_registry()</a>.</p>

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