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
|
|
|
========
|
|
|
|
|
2017-06-21 17:51:51 +08:00
|
|
|
.. c:function:: int ioctl( int fd, FE_SET_TONE, enum fe_sec_tone_mode tone )
|
2016-08-20 03:56:15 +08:00
|
|
|
:name: FE_SET_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>`.
|
|
|
|
|
|
|
|
``tone``
|
2017-06-21 17:51:51 +08:00
|
|
|
an integer enumered value described at :c:type:`fe_sec_tone_mode`
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
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.
|