Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _FE_DISHNETWORK_SEND_LEGACY_CMD: |
| 4 | |
| 5 | ****************************** |
| 6 | FE_DISHNETWORK_SEND_LEGACY_CMD |
| 7 | ****************************** |
| 8 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 9 | Name |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 10 | ==== |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 11 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 12 | FE_DISHNETWORK_SEND_LEGACY_CMD |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 14 | |
| 15 | Synopsis |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 16 | ======== |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 17 | |
Mauro Carvalho Chehab | 5929cb1 | 2016-07-05 15:22:59 -0300 | [diff] [blame] | 18 | .. cpp:function:: int ioctl(int fd, int request = FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd) |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 19 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 20 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 21 | Arguments |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 22 | ========= |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 23 | |
| 24 | .. flat-table:: |
| 25 | :header-rows: 0 |
| 26 | :stub-columns: 0 |
| 27 | |
| 28 | |
| 29 | - .. row 1 |
| 30 | |
| 31 | - unsigned long cmd |
| 32 | |
| 33 | - sends the specified raw cmd to the dish via DISEqC. |
| 34 | |
| 35 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 36 | Description |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 37 | =========== |
| 38 | |
| 39 | WARNING: This is a very obscure legacy command, used only at stv0299 |
| 40 | driver. Should not be used on newer drivers. |
| 41 | |
| 42 | It provides a non-standard method for selecting Diseqc voltage on the |
| 43 | frontend, for Dish Network legacy switches. |
| 44 | |
| 45 | As support for this ioctl were added in 2004, this means that such |
| 46 | dishes were already legacy in 2004. |
| 47 | |
| 48 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 49 | Return Value |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 50 | ============ |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 51 | |
| 52 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 53 | appropriately. The generic error codes are described at the |
| 54 | :ref:`Generic Error Codes <gen-errors>` chapter. |