doc-rst: linux_tv: dvb: use lowercase for filenames
[deliverable/linux.git] / Documentation / linux_tv / media / dvb / fe-read-status.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_READ_STATUS:
4
5********************
6ioctl FE_READ_STATUS
7********************
8
586027ce
MCC
9NAME
10====
5377d91f 11
586027ce 12FE_READ_STATUS - Returns status information about the front-end. This call only requires - read-only access to the device
5377d91f 13
586027ce 14SYNOPSIS
5377d91f
MH
15========
16
b7e67f6c 17.. cpp:function:: int ioctl( int fd, int request, unsigned int *status )
5377d91f 18
586027ce
MCC
19
20ARGUMENTS
5377d91f
MH
21=========
22
23``fd``
24 File descriptor returned by :ref:`open() <frontend_f_open>`.
25
26``request``
27 FE_READ_STATUS
28
29``status``
30 pointer to a bitmask integer filled with the values defined by enum
31 :ref:`fe_status <fe-status>`.
32
33
586027ce 34DESCRIPTION
5377d91f
MH
35===========
36
37All DVB frontend devices support the ``FE_READ_STATUS`` ioctl. It is
38used to check about the locking status of the frontend after being
39tuned. The ioctl takes a pointer to an integer where the status will be
40written.
41
42NOTE: the size of status is actually sizeof(enum fe_status), with
43varies according with the architecture. This needs to be fixed in the
44future.
45
586027ce 46
5377d91f 47RETURN VALUE
586027ce 48============
5377d91f
MH
49
50On success 0 is returned, on error -1 and the ``errno`` variable is set
51appropriately. The generic error codes are described at the
52:ref:`Generic Error Codes <gen-errors>` chapter.
53
54
55.. _fe-status-t:
56
57int fe_status
58=============
59
60The fe_status parameter is used to indicate the current state and/or
61state changes of the frontend hardware. It is produced using the enum
62:ref:`fe_status <fe-status>` values on a bitmask
63
64
65.. _fe-status:
66
67.. flat-table:: enum fe_status
68 :header-rows: 1
69 :stub-columns: 0
70
71
72 - .. row 1
73
74 - ID
75
76 - Description
77
78 - .. row 2
79
80 - .. _`FE-HAS-SIGNAL`:
81
0579e6e3 82 ``FE_HAS_SIGNAL``
5377d91f
MH
83
84 - The frontend has found something above the noise level
85
86 - .. row 3
87
88 - .. _`FE-HAS-CARRIER`:
89
0579e6e3 90 ``FE_HAS_CARRIER``
5377d91f
MH
91
92 - The frontend has found a DVB signal
93
94 - .. row 4
95
96 - .. _`FE-HAS-VITERBI`:
97
0579e6e3 98 ``FE_HAS_VITERBI``
5377d91f
MH
99
100 - The frontend FEC inner coding (Viterbi, LDPC or other inner code)
0579e6e3 101 is stable
5377d91f
MH
102
103 - .. row 5
104
105 - .. _`FE-HAS-SYNC`:
106
0579e6e3 107 ``FE_HAS_SYNC``
5377d91f
MH
108
109 - Synchronization bytes was found
110
111 - .. row 6
112
113 - .. _`FE-HAS-LOCK`:
114
0579e6e3 115 ``FE_HAS_LOCK``
5377d91f
MH
116
117 - The DVB were locked and everything is working
118
119 - .. row 7
120
121 - .. _`FE-TIMEDOUT`:
122
0579e6e3 123 ``FE_TIMEDOUT``
5377d91f
MH
124
125 - no lock within the last about 2 seconds
126
127 - .. row 8
128
129 - .. _`FE-REINIT`:
130
0579e6e3 131 ``FE_REINIT``
5377d91f
MH
132
133 - The frontend was reinitialized, application is recommended to
0579e6e3 134 reset DiSEqC, tone and parameters
This page took 0.033918 seconds and 5 git commands to generate.