⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libraw1394.sgml

📁 libraw1394-1.1.0.tar.gz 1394的一个库文件
💻 SGML
📖 第 1 页 / 共 5 页
字号:
 <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      libraw1394 handle    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   If you specified an irq_interval &gt; 1 in   iso_recv_init, you won't be notified for every single iso packet, but   for groups of them. Now e.g. if irq_interval is 100, and you were just   notified about iso packets and after them only 20 more packets arrived,   no notification will be generated (20 &lt; 100). In the case that you know   that there should be more packets at this moment, you can call this   function and all iso packets which are already received by the kernel   will be flushed out to user space. </para></refsect1><refsect1> <title>Returns</title> <para>    0 on success or -1 on failure (sets errno) </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-iso-stop">raw1394_iso_stop</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_iso_stop</refname> <refpurpose>      halt isochronous transmission or reception </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>void <function>raw1394_iso_stop </function></funcdef>   <paramdef>raw1394handle_t <parameter>handle</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      libraw1394 handle    </para>   </listitem>  </varlistentry> </variablelist></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-iso-shutdown">raw1394_iso_shutdown</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_iso_shutdown</refname> <refpurpose>      clean up and deallocate all resources for isochronous transmission or reception </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>void <function>raw1394_iso_shutdown </function></funcdef>   <paramdef>raw1394handle_t <parameter>handle</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      libraw1394 handle    </para>   </listitem>  </varlistentry> </variablelist></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-get-errcode">raw1394_get_errcode</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_get_errcode</refname> <refpurpose>      return error code of async transaction </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>raw1394_errcode_t <function>raw1394_get_errcode </function></funcdef>   <paramdef>raw1394handle_t <parameter>handle</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      libraw1394 handle    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   Some macros are available to extract information from the error code,   <function>raw1394_errcode_to_errno</function> can be used to convert it to an errno number of   roughly the same meaning. </para></refsect1><refsect1> <title>Returns</title> <para>    the error code of the last <function>raw1394_read</function>, <function>raw1394_write</function>,   <function>raw1394_lock</function> or <function>raw1394_iso_write</function>.  The error code is either an internal   error (i.e. not a bus error) or a combination of acknowledge code and   response code, as appropriate. </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-errcode-to-errno">raw1394_errcode_to_errno</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_errcode_to_errno</refname> <refpurpose>      convert libraw1394 errcode to errno </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>int <function>raw1394_errcode_to_errno </function></funcdef>   <paramdef>raw1394_errcode_t <parameter>errcode</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>errcode</parameter></term>   <listitem>    <para>      the error code to convert    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   The error code as retrieved by <function>raw1394_get_errcode</function> is converted into a   roughly equivalent errno number and returned.  <constant>0xdead</constant> is returned for an   illegal errcode.   </para><para>   It is intended to be used to decide what to do (retry, give up, report error)   for those programs that aren't interested in details, since these get lost in   the conversion.  However the returned errnos are equivalent in source code   meaning only, the associated text of e.g. <function>perror</function> is not necessarily   meaningful. </para></refsect1><refsect1> <title>Returns</title> <para>    <constant>EAGAIN</constant> (retrying might succeed, also generation number   mismatch), <constant>EREMOTEIO</constant> (other node had internal problems), <constant>EPERM</constant> (operation   not allowed on this address, e.g. write on read-only location), <constant>EINVAL</constant>   (invalid argument) and <constant>EFAULT</constant> (invalid pointer). </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-new-handle">raw1394_new_handle</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_new_handle</refname> <refpurpose>      create new handle </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>raw1394handle_t <function>raw1394_new_handle </function></funcdef>   <paramdef> <parameter>void</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>void</parameter></term>   <listitem>    <para>     no arguments    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   </para><para>   Creates and returns a new handle which can (after being set up) control one   port.  It is not allowed to use the same handle in multiple threads or forked   processes.  It is allowed to create and use multiple handles, however.  Use   one handle per thread which needs it in the multithreaded case. </para></refsect1><refsect1> <title>Returns</title> <para>    the created handle or <constant>NULL</constant> when initialization fails. In the latter   case errno either contains some OS specific error code or <constant>0</constant> if the error is   that libraw1394 and raw1394 don't support each other's protocol versions. </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-destroy-handle">raw1394_destroy_handle</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_destroy_handle</refname> <refpurpose>      deallocate handle </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>void <function>raw1394_destroy_handle </function></funcdef>   <paramdef>raw1394handle_t <parameter>handle</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      handle to deallocate    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   Closes connection with raw1394 on this handle and deallocates everything   associated with it.  It is safe to pass <constant>NULL</constant> as handle, nothing is done in   this case. </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-new-handle-on-port">raw1394_new_handle_on_port</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_new_handle_on_port</refname> <refpurpose>      create a new handle and bind it to a port </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>raw1394handle_t <function>raw1394_new_handle_on_port </function></funcdef>   <paramdef>int <parameter>port</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>port</parameter></term>   <listitem>    <para>      port to connect to (same as argument to <function>raw1394_set_port</function>)    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Description</title> <para>   Same as <function>raw1394_new_handle</function>, but also binds the handle to the   specified 1394 port. Equivalent to <function>raw1394_new_handle</function> followed by   <function>raw1394_get_port_info</function> and <function>raw1394_set_port</function>. Useful for   command-line programs that already know what port they want. If   <function>raw1394_set_port</function> returns ESTALE, retries automatically. </para></refsect1><refsect1> <title>Returns</title> <para>    the new handle on success or NULL on failure </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-busreset-notify">raw1394_busreset_notify</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_busreset_notify</refname> <refpurpose>      Switch off/on busreset-notification for handle </refpurpose></refnamediv><refsynopsisdiv> <title>Synopsis</title>  <funcsynopsis><funcprototype>   <funcdef>int <function>raw1394_busreset_notify </function></funcdef>   <paramdef>raw1394handle_t <parameter>handle</parameter></paramdef>   <paramdef>int <parameter>off_on_switch</parameter></paramdef>  </funcprototype></funcsynopsis></refsynopsisdiv><refsect1> <title>Arguments</title> <variablelist>  <varlistentry>   <term><parameter>handle</parameter></term>   <listitem>    <para>      libraw1394 handle    </para>   </listitem>  </varlistentry>  <varlistentry>   <term><parameter>off_on_switch</parameter></term>   <listitem>    <para>      RAW1394_NOTIFY_OFF or RAW1394_NOTIFY_ON    </para>   </listitem>  </varlistentry> </variablelist></refsect1><refsect1> <title>Returns</title> <para>    0 on success or -1 on failure (sets errno) </para></refsect1></refentry><refentry><refmeta><refentrytitle><phrase id="API-raw1394-get-fd">raw1394_get_fd</phrase></refentrytitle></refmeta><refnamediv> <refname>raw1394_get_fd</refname> <refpurpose>      get the communication 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -