blob: 2aed487f5c993612151d334bb6fcbdffa07b9cb0 [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_READ_SNR:
4
5***********
6FE_READ_SNR
7***********
8
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -03009Name
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030010====
Markus Heiser5377d912016-06-30 15:18:56 +020011
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030012FE_READ_SNR
Markus Heiser5377d912016-06-30 15:18:56 +020013
Mauro Carvalho Chehabcf8076c2016-08-19 16:56:15 -030014.. attention:: This ioctl is deprecated.
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030015
16Synopsis
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030017========
Markus Heiser5377d912016-06-30 15:18:56 +020018
Mauro Carvalho Chehabcf8076c2016-08-19 16:56:15 -030019.. c:function:: int ioctl(int fd, FE_READ_SNR, int16_t *snr)
20 :name: FE_READ_SNR
Markus Heiser5377d912016-06-30 15:18:56 +020021
Markus Heiser5377d912016-06-30 15:18:56 +020022
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030023Arguments
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030024=========
Markus Heiser5377d912016-06-30 15:18:56 +020025
Mauro Carvalho Chehabcf8076c2016-08-19 16:56:15 -030026``fd``
27 File descriptor returned by :c:func:`open() <dvb-fe-open>`.
Markus Heiser5377d912016-06-30 15:18:56 +020028
Mauro Carvalho Chehabcf8076c2016-08-19 16:56:15 -030029``snr``
30 The signal-to-noise ratio is stored into \*snr.
Markus Heiser5377d912016-06-30 15:18:56 +020031
32
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030033Description
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030034===========
35
36This ioctl call returns the signal-to-noise ratio for the signal
37currently received by the front-end. For this command, read-only access
38to the device is sufficient.
39
40
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030041Return Value
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030042============
Markus Heiser5377d912016-06-30 15:18:56 +020043
44On success 0 is returned, on error -1 and the ``errno`` variable is set
45appropriately. The generic error codes are described at the
46:ref:`Generic Error Codes <gen-errors>` chapter.