0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.fe
0003
0004 .. _FE_DISHNETWORK_SEND_LEGACY_CMD:
0005
0006 ******************************
0007 FE_DISHNETWORK_SEND_LEGACY_CMD
0008 ******************************
0009
0010 Name
0011 ====
0012
0013 FE_DISHNETWORK_SEND_LEGACY_CMD
0014
0015 Synopsis
0016 ========
0017
0018 .. c:macro:: FE_DISHNETWORK_SEND_LEGACY_CMD
0019
0020 ``int ioctl(int fd, FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd)``
0021
0022 Arguments
0023 =========
0024
0025 ``fd``
0026 File descriptor returned by :c:func:`open()`.
0027
0028 ``cmd``
0029 Sends the specified raw cmd to the dish via DISEqC.
0030
0031 Description
0032 ===========
0033
0034 .. warning::
0035 This is a very obscure legacy command, used only at stv0299
0036 driver. Should not be used on newer drivers.
0037
0038 It provides a non-standard method for selecting Diseqc voltage on the
0039 frontend, for Dish Network legacy switches.
0040
0041 As support for this ioctl were added in 2004, this means that such
0042 dishes were already legacy in 2004.
0043
0044 Return Value
0045 ============
0046
0047 On success 0 is returned.
0048
0049 On error -1 is returned, and the ``errno`` variable is set
0050 appropriately.
0051
0052 Generic error codes are described at the
0053 :ref:`Generic Error Codes <gen-errors>` chapter.