Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _FE_SET_TONE: |
| 4 | |
| 5 | ***************** |
| 6 | ioctl FE_SET_TONE |
| 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_SET_TONE - Sets/resets the generation of the continuous 22kHz tone. |
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 |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 16 | ======== |
| 17 | |
Mauro Carvalho Chehab | affd250 | 2017-06-21 06:51:51 -0300 | [diff] [blame] | 18 | .. c:function:: int ioctl( int fd, FE_SET_TONE, enum fe_sec_tone_mode tone ) |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame] | 19 | :name: FE_SET_TONE |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 20 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 21 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 22 | Arguments |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 23 | ========= |
| 24 | |
| 25 | ``fd`` |
| 26 | File descriptor returned by :ref:`open() <frontend_f_open>`. |
| 27 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 28 | ``tone`` |
Mauro Carvalho Chehab | affd250 | 2017-06-21 06:51:51 -0300 | [diff] [blame] | 29 | an integer enumered value described at :c:type:`fe_sec_tone_mode` |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 30 | |
| 31 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 32 | Description |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 33 | =========== |
| 34 | |
| 35 | This ioctl is used to set the generation of the continuous 22kHz tone. |
| 36 | This call requires read/write permissions. |
| 37 | |
| 38 | Usually, satellite antenna subsystems require that the digital TV device |
| 39 | to send a 22kHz tone in order to select between high/low band on some |
| 40 | dual-band LNBf. It is also used to send signals to DiSEqC equipment, but |
| 41 | this is done using the DiSEqC ioctls. |
| 42 | |
Mauro Carvalho Chehab | 706f8a9 | 2016-07-10 11:57:43 -0300 | [diff] [blame] | 43 | .. attention:: If more than one device is connected to the same antenna, |
| 44 | setting a tone may interfere on other devices, as they may lose the |
| 45 | capability of selecting the band. So, it is recommended that applications |
| 46 | would change to SEC_TONE_OFF when the device is not used. |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 47 | |
Mauro Carvalho Chehab | 836cf1d | 2016-08-30 10:21:03 -0300 | [diff] [blame] | 48 | .. c:type:: fe_sec_tone_mode |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 49 | |
| 50 | .. flat-table:: enum fe_sec_tone_mode |
| 51 | :header-rows: 1 |
| 52 | :stub-columns: 0 |
| 53 | |
| 54 | |
| 55 | - .. row 1 |
| 56 | |
| 57 | - ID |
| 58 | |
| 59 | - Description |
| 60 | |
| 61 | - .. row 2 |
| 62 | |
Mauro Carvalho Chehab | 6aeb3f6 | 2016-07-07 15:53:44 -0300 | [diff] [blame] | 63 | - .. _SEC-TONE-ON: |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 64 | |
Mauro Carvalho Chehab | 0579e6e | 2016-07-04 16:25:48 -0300 | [diff] [blame] | 65 | ``SEC_TONE_ON`` |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 66 | |
| 67 | - Sends a 22kHz tone burst to the antenna |
| 68 | |
| 69 | - .. row 3 |
| 70 | |
Mauro Carvalho Chehab | 6aeb3f6 | 2016-07-07 15:53:44 -0300 | [diff] [blame] | 71 | - .. _SEC-TONE-OFF: |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 72 | |
Mauro Carvalho Chehab | 0579e6e | 2016-07-04 16:25:48 -0300 | [diff] [blame] | 73 | ``SEC_TONE_OFF`` |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 74 | |
| 75 | - Don't send a 22kHz tone to the antenna (except if the |
Mauro Carvalho Chehab | 0579e6e | 2016-07-04 16:25:48 -0300 | [diff] [blame] | 76 | FE_DISEQC_* ioctls are called) |
Mauro Carvalho Chehab | fc83398 | 2016-07-05 11:36:55 -0300 | [diff] [blame] | 77 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 78 | |
| 79 | Return Value |
Mauro Carvalho Chehab | fc83398 | 2016-07-05 11:36:55 -0300 | [diff] [blame] | 80 | ============ |
| 81 | |
| 82 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 83 | appropriately. The generic error codes are described at the |
| 84 | :ref:`Generic Error Codes <gen-errors>` chapter. |