1 .. -*- coding: utf-8; mode: rst -*-
12 This ioctl call returns the signal-to-noise ratio for the signal
13 currently received by the front-end. For this command, read-only access
14 to the device is sufficient.
19 .. c:function:: int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr)
35 - File descriptor returned by a previous call to open().
41 - Equals :ref:`FE_READ_SNR` for this command.
47 - The signal-to-noise ratio is stored into \*snr.
53 On success 0 is returned, on error -1 and the ``errno`` variable is set
54 appropriately. The generic error codes are described at the
55 :ref:`Generic Error Codes <gen-errors>` chapter.