blob: 2b7d06145cb1ec37f8c0ed5600c3b7e7cdea5dd7 [file] [log] [blame]
Mauro Carvalho Chehab059b1c52020-08-26 09:03:09 +02001.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
Mauro Carvalho Chehabf9b2e8a2020-09-24 16:56:00 +02002.. c:namespace:: DTV.fe
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +01003
4.. _FE_READ_SIGNAL_STRENGTH:
5
6***********************
7FE_READ_SIGNAL_STRENGTH
8***********************
9
10Name
11====
12
13FE_READ_SIGNAL_STRENGTH
14
15.. attention:: This ioctl is deprecated.
16
17Synopsis
18========
19
Mauro Carvalho Chehabf9b2e8a2020-09-24 16:56:00 +020020.. c:macro:: FE_READ_SIGNAL_STRENGTH
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +010021
Mauro Carvalho Chehabf9b2e8a2020-09-24 16:56:00 +020022``int ioctl(int fd, FE_READ_SIGNAL_STRENGTH, uint16_t *strength)``
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +010023
24Arguments
25=========
26
27``fd``
Mauro Carvalho Chehabf9b2e8a2020-09-24 16:56:00 +020028 File descriptor returned by :c:func:`open()`.
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +010029
30``strength``
31 The signal strength value is stored into \*strength.
32
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +010033Description
34===========
35
36This ioctl call returns the signal strength value for the signal
37currently received by the front-end. For this command, read-only access
38to the device is sufficient.
39
Mauro Carvalho Chehab54f38fc2020-03-04 10:21:39 +010040Return Value
41============
42
43On success 0 is returned.
44
45On error -1 is returned, and the ``errno`` variable is set
46appropriately.
47
48Generic error codes are described at the
49:ref:`Generic Error Codes <gen-errors>` chapter.