blob: 7f6f47f4d30e63369ce692e75fdfb8b559995dc6 [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_READ_SIGNAL_STRENGTH:
4
5***********************
6FE_READ_SIGNAL_STRENGTH
7***********************
8
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -03009NAME
10====
Markus Heiser5377d912016-06-30 15:18:56 +020011
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030012FE_READ_SIGNAL_STRENGTH
Markus Heiser5377d912016-06-30 15:18:56 +020013
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030014SYNOPSIS
15========
Markus Heiser5377d912016-06-30 15:18:56 +020016
Mauro Carvalho Chehab5d468e22016-07-04 12:31:15 -030017.. c:function:: int ioctl( int fd, int request = FE_READ_SIGNAL_STRENGTH, uint16_t *strength)
Markus Heiser5377d912016-06-30 15:18:56 +020018
Markus Heiser5377d912016-06-30 15:18:56 +020019
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030020ARGUMENTS
21=========
Markus Heiser5377d912016-06-30 15:18:56 +020022
23.. flat-table::
24 :header-rows: 0
25 :stub-columns: 0
26
27
28 - .. row 1
29
30 - int fd
31
32 - File descriptor returned by a previous call to open().
33
34 - .. row 2
35
36 - int request
37
38 - Equals
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -030039 :ref:`FE_READ_SIGNAL_STRENGTH`
40 for this command.
Markus Heiser5377d912016-06-30 15:18:56 +020041
42 - .. row 3
43
Mauro Carvalho Chehab5d468e22016-07-04 12:31:15 -030044 - uint16_t \*strength
Markus Heiser5377d912016-06-30 15:18:56 +020045
Mauro Carvalho Chehab5d468e22016-07-04 12:31:15 -030046 - The signal strength value is stored into \*strength.
Markus Heiser5377d912016-06-30 15:18:56 +020047
48
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030049DESCRIPTION
50===========
51
52This ioctl call returns the signal strength value for the signal
53currently received by the front-end. For this command, read-only access
54to the device is sufficient.
55
56
57RETURN VALUE
58============
Markus Heiser5377d912016-06-30 15:18:56 +020059
60On success 0 is returned, on error -1 and the ``errno`` variable is set
61appropriately. The generic error codes are described at the
62:ref:`Generic Error Codes <gen-errors>` chapter.