fe-dishnetwork-send-legacy-cmd.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _FE_DISHNETWORK_SEND_LEGACY_CMD:
  3. ******************************
  4. FE_DISHNETWORK_SEND_LEGACY_CMD
  5. ******************************
  6. Name
  7. ====
  8. FE_DISHNETWORK_SEND_LEGACY_CMD
  9. Synopsis
  10. ========
  11. .. c:function:: int ioctl(int fd, FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd)
  12. :name: FE_DISHNETWORK_SEND_LEGACY_CMD
  13. Arguments
  14. =========
  15. ``fd``
  16. File descriptor returned by :c:func:`open() <dvb-fe-open>`.
  17. ``cmd``
  18. Sends the specified raw cmd to the dish via DISEqC.
  19. Description
  20. ===========
  21. .. warning::
  22. This is a very obscure legacy command, used only at stv0299
  23. driver. Should not be used on newer drivers.
  24. It provides a non-standard method for selecting Diseqc voltage on the
  25. frontend, for Dish Network legacy switches.
  26. As support for this ioctl were added in 2004, this means that such
  27. dishes were already legacy in 2004.
  28. Return Value
  29. ============
  30. On success 0 is returned.
  31. On error -1 is returned, and the ``errno`` variable is set
  32. appropriately.
  33. Generic error codes are described at the
  34. :ref:`Generic Error Codes <gen-errors>` chapter.