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