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

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