This file is indexed.

/usr/share/doc/libcomedi-dev/html/func-ref-comedi-from-physical.html is in libcomedi-dev 0.10.1-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>comedi_from_physical</title><link rel="stylesheet" type="text/css" href="comedilib.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Comedi"><link rel="up" href="functionreference.html#idp75192624" title="5.4.1.&#160;Core Functions"><link rel="prev" href="func-ref-comedi-from-phys.html" title="comedi_from_phys"><link rel="next" href="func-ref-comedi-get-board-name.html" title="comedi_get_board_name"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">comedi_from_physical</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="func-ref-comedi-from-phys.html">Prev</a>&#160;</td><th width="60%" align="center">5.4.1.&#160;Core Functions</th><td width="20%" align="right">&#160;<a accesskey="n" href="func-ref-comedi-get-board-name.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="func-ref-comedi-from-physical"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>comedi_from_physical &#8212; convert physical units to sample using calibration data</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;comedilib.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">lsampl_t <b class="fsfunc">comedi_from_physical</b>(</code></td><td>double <var class="pdparam">data</var>, </td></tr><tr><td>&#160;</td><td>const comedi_polynomial_t * <var class="pdparam">conversion_polynomial</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp74962624"></a><h2>
      Description
    </h2><p>
Converts <em class="parameter"><code>data</code></em> given in physical units into Comedi's
integer sample values
(<span class="type">lsampl_t</span>, between <code class="literal">0</code> and maxdata &#8212;
see <code class="function"><a class="link" href="func-ref-comedi-get-maxdata.html" title="comedi_get_maxdata">comedi_get_maxdata</a></code>).
The <em class="parameter"><code>conversion_polynomial</code></em>
parameter is obtained from either
<code class="function"><a class="link" href="func-ref-comedi-get-hardcal-converter.html" title="comedi_get_hardcal_converter">comedi_get_hardcal_converter</a></code> or
<code class="function"><a class="link" href="func-ref-comedi-get-softcal-converter.html" title="comedi_get_softcal_converter">comedi_get_softcal_converter</a></code>. The allows non linear and board specific
correction.
The result will be rounded
using the C library's current rounding direction.
No range checking of the input
<em class="parameter"><code>data</code></em> is performed.  It is up to you to ensure
your data is within the limits of the output range you are using.
    </p></div><div class="refsect1"><a name="idp74955088"></a><h2>
      Return value
    </h2><p>
Comedi sample value corresponding to input physical value.
</p><p>
    </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="func-ref-comedi-from-phys.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="functionreference.html#idp75192624">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="func-ref-comedi-get-board-name.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">comedi_from_phys&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;comedi_get_board_name</td></tr></table></div></body></html>