blob: bc0dc2a55f1980a2a6d022d4d2e478458e640c70 [file] [log] [blame]
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -03001<refentry id="FE_READ_STATUS">
2 <refmeta>
3 <refentrytitle>ioctl FE_READ_STATUS</refentrytitle>
4 &manvol;
5 </refmeta>
6
7 <refnamediv>
8 <refname>FE_READ_STATUS</refname>
9 <refpurpose>Returns status information about the front-end. This call only
10 requires read-only access to the device</refpurpose>
11 </refnamediv>
12
13 <refsynopsisdiv>
14 <funcsynopsis>
15 <funcprototype>
16 <funcdef>int <function>ioctl</function></funcdef>
17 <paramdef>int <parameter>fd</parameter></paramdef>
18 <paramdef>int <parameter>request</parameter></paramdef>
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030019 <paramdef>unsigned int *<parameter>status</parameter></paramdef>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030020 </funcprototype>
21 </funcsynopsis>
22 </refsynopsisdiv>
23
24 <refsect1>
25 <title>Arguments</title>
26 <variablelist>
27 <varlistentry>
28 <term><parameter>fd</parameter></term>
29 <listitem>
Mauro Carvalho Chehabc130d882015-05-26 09:03:55 -030030 <para>&fe_fd;</para>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030031 </listitem>
32 </varlistentry>
33 <varlistentry>
34 <term><parameter>request</parameter></term>
35 <listitem>
36 <para>FE_READ_STATUS</para>
37 </listitem>
38 </varlistentry>
39 <varlistentry>
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030040 <term><parameter>status</parameter></term>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030041 <listitem>
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030042 <para>pointer to a bitmask integer filled with the values defined by
43 &fe-status;.</para>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030044 </listitem>
45 </varlistentry>
46 </variablelist>
47 </refsect1>
48
49 <refsect1>
50 <title>Description</title>
51
52 <para>All DVB frontend devices support the
53<constant>FE_READ_STATUS</constant> ioctl. It is used to check about the
54locking status of the frontend after being tuned. The ioctl takes a
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030055pointer to an integer where the status will be written.
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030056</para>
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030057<para>NOTE: the size of status is actually sizeof(enum fe_status), with varies
58 according with the architecture. This needs to be fixed in the future.</para>
59&return-value-dvb;
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030060</refsect1>
61
Hans Verkuil595d0412015-05-31 09:59:11 -030062<refsect1 id="fe-status-t">
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030063<title>int fe_status</title>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030064
Mauro Carvalho Chehabd27518c2015-05-28 14:43:06 -030065<para>The fe_status parameter is used to indicate the current state
66 and/or state changes of the frontend hardware. It is produced using
67 the &fe-status; values on a bitmask</para>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030068
69<table pgwide="1" frame="none" id="fe-status">
70 <title>enum fe_status</title>
71 <tgroup cols="2">
72 &cs-def;
73 <thead>
74 <row>
75 <entry>ID</entry>
76 <entry>Description</entry>
77 </row>
78 </thead>
79 <tbody valign="top">
80 <row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030081 <entry align="char" id="FE-HAS-SIGNAL"><constant>FE_HAS_SIGNAL</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030082 <entry align="char">The frontend has found something above the noise level</entry>
83 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030084 <entry align="char" id="FE-HAS-CARRIER"><constant>FE_HAS_CARRIER</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030085 <entry align="char">The frontend has found a DVB signal</entry>
86 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030087 <entry align="char" id="FE-HAS-VITERBI"><constant>FE_HAS_VITERBI</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030088 <entry align="char">The frontend FEC inner coding (Viterbi, LDPC or other inner code) is stable</entry>
89 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030090 <entry align="char" id="FE-HAS-SYNC"><constant>FE_HAS_SYNC</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030091 <entry align="char">Synchronization bytes was found</entry>
92 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030093 <entry align="char" id="FE-HAS-LOCK"><constant>FE_HAS_LOCK</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030094 <entry align="char">The DVB were locked and everything is working</entry>
95 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030096 <entry align="char" id="FE-TIMEDOUT"><constant>FE_TIMEDOUT</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -030097 <entry align="char">no lock within the last about 2 seconds</entry>
98 </row><row>
Mauro Carvalho Chehabe7852572015-06-07 06:09:57 -030099 <entry align="char" id="FE-REINIT"><constant>FE_REINIT</constant></entry>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -0300100 <entry align="char">The frontend was reinitialized, application is
101 recommended to reset DiSEqC, tone and parameters</entry>
102 </row>
103 </tbody>
104 </tgroup>
105</table>
Hans Verkuil595d0412015-05-31 09:59:11 -0300106</refsect1>
Mauro Carvalho Chehab5b233e12015-05-26 08:17:53 -0300107</refentry>