1 .. -*- coding: utf-8; mode: rst -*-
17 .. cpp:function:: int ioctl(int fd, int request = FE_READ_BER, uint32_t *ber)
32 - File descriptor returned by a previous call to open().
38 - Equals :ref:`FE_READ_BER` for this command.
44 - The bit error rate is stored into \*ber.
50 This ioctl call returns the bit error rate for the signal currently
51 received/demodulated by the front-end. For this command, read-only
52 access to the device is sufficient.
58 On success 0 is returned, on error -1 and the ``errno`` variable is set
59 appropriately. The generic error codes are described at the
60 :ref:`Generic Error Codes <gen-errors>` chapter.