2016-06-30 21:18:56 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _FE_SET_TONE:
|
|
|
|
|
|
|
|
*****************
|
|
|
|
ioctl FE_SET_TONE
|
|
|
|
*****************
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Name
|
2016-07-05 18:58:48 +08:00
|
|
|
====
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
FE_SET_TONE - Sets/resets the generation of the continuous 22kHz tone.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
Synopsis
|
2016-06-30 21:18:56 +08:00
|
|
|
========
|
|
|
|
|
2016-07-06 02:22:59 +08:00
|
|
|
.. cpp:function:: int ioctl( int fd, int request, enum fe_sec_tone_mode *tone )
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Arguments
|
2016-06-30 21:18:56 +08:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by :ref:`open() <frontend_f_open>`.
|
|
|
|
|
|
|
|
``request``
|
|
|
|
FE_SET_TONE
|
|
|
|
|
|
|
|
``tone``
|
|
|
|
pointer to enum :ref:`fe_sec_tone_mode <fe-sec-tone-mode>`
|
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Description
|
2016-06-30 21:18:56 +08:00
|
|
|
===========
|
|
|
|
|
|
|
|
This ioctl is used to set the generation of the continuous 22kHz tone.
|
|
|
|
This call requires read/write permissions.
|
|
|
|
|
|
|
|
Usually, satellite antenna subsystems require that the digital TV device
|
|
|
|
to send a 22kHz tone in order to select between high/low band on some
|
|
|
|
dual-band LNBf. It is also used to send signals to DiSEqC equipment, but
|
|
|
|
this is done using the DiSEqC ioctls.
|
|
|
|
|
2016-07-10 22:57:43 +08:00
|
|
|
.. attention:: If more than one device is connected to the same antenna,
|
|
|
|
setting a tone may interfere on other devices, as they may lose the
|
|
|
|
capability of selecting the band. So, it is recommended that applications
|
|
|
|
would change to SEC_TONE_OFF when the device is not used.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
.. _fe-sec-tone-mode-t:
|
|
|
|
|
|
|
|
enum fe_sec_tone_mode
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. _fe-sec-tone-mode:
|
|
|
|
|
|
|
|
.. flat-table:: enum fe_sec_tone_mode
|
|
|
|
:header-rows: 1
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- ID
|
|
|
|
|
|
|
|
- Description
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _SEC-TONE-ON:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
``SEC_TONE_ON``
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- Sends a 22kHz tone burst to the antenna
|
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _SEC-TONE-OFF:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
``SEC_TONE_OFF``
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- Don't send a 22kHz tone to the antenna (except if the
|
2016-07-05 03:25:48 +08:00
|
|
|
FE_DISEQC_* ioctls are called)
|
2016-07-05 22:36:55 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
Return Value
|
2016-07-05 22:36:55 +08:00
|
|
|
============
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|