1 .. -*- coding: utf-8; mode: rst -*-
9 *man FE_READ_STATUS(2)*
11 Returns status information about the front-end. This call only requires
12 read-only access to the device
18 .. c:function:: int ioctl( int fd, int request, unsigned int *status )
24 File descriptor returned by :ref:`open() <frontend_f_open>`.
30 pointer to a bitmask integer filled with the values defined by enum
31 :ref:`fe_status <fe-status>`.
37 All DVB frontend devices support the ``FE_READ_STATUS`` ioctl. It is
38 used to check about the locking status of the frontend after being
39 tuned. The ioctl takes a pointer to an integer where the status will be
42 NOTE: the size of status is actually sizeof(enum fe_status), with
43 varies according with the architecture. This needs to be fixed in the
48 On success 0 is returned, on error -1 and the ``errno`` variable is set
49 appropriately. The generic error codes are described at the
50 :ref:`Generic Error Codes <gen-errors>` chapter.
58 The fe_status parameter is used to indicate the current state and/or
59 state changes of the frontend hardware. It is produced using the enum
60 :ref:`fe_status <fe-status>` values on a bitmask
65 .. flat-table:: enum fe_status
78 - .. _`FE-HAS-SIGNAL`:
82 - The frontend has found something above the noise level
86 - .. _`FE-HAS-CARRIER`:
90 - The frontend has found a DVB signal
94 - .. _`FE-HAS-VITERBI`:
98 - The frontend FEC inner coding (Viterbi, LDPC or other inner code)
107 - Synchronization bytes was found
115 - The DVB were locked and everything is working
123 - no lock within the last about 2 seconds
131 - The frontend was reinitialized, application is recommended to
132 reset DiSEqC, tone and parameters
137 .. ------------------------------------------------------------------------------
138 .. This file was automatically converted from DocBook-XML with the dbxml
139 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
140 .. from the linux kernel, refer to:
142 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
143 .. ------------------------------------------------------------------------------