fe-read-ber.rst 819 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _FE_READ_BER:
  3. ***********
  4. FE_READ_BER
  5. ***********
  6. Name
  7. ====
  8. FE_READ_BER
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. ========
  12. .. c:function:: int ioctl(int fd, FE_READ_BER, uint32_t *ber)
  13. :name: FE_READ_BER
  14. Arguments
  15. =========
  16. ``fd``
  17. File descriptor returned by :c:func:`open() <dvb-fe-open>`.
  18. ``ber``
  19. The bit error rate is stored into \*ber.
  20. Description
  21. ===========
  22. This ioctl call returns the bit error rate for the signal currently
  23. received/demodulated by the front-end. For this command, read-only
  24. access to the device is sufficient.
  25. Return Value
  26. ============
  27. On success 0 is returned, on error -1 and the ``errno`` variable is set
  28. appropriately. The generic error codes are described at the
  29. :ref:`Generic Error Codes <gen-errors>` chapter.