2018-08-30 22:15:26 +08:00
|
|
|
.. Permission is granted to copy, distribute and/or modify this
|
|
|
|
.. document under the terms of the GNU Free Documentation License,
|
|
|
|
.. Version 1.1 or any later version published by the Free Software
|
|
|
|
.. Foundation, with no Invariant Sections, no Front-Cover Texts
|
|
|
|
.. and no Back-Cover Texts. A copy of the license is included at
|
|
|
|
.. Documentation/media/uapi/fdl-appendix.rst.
|
|
|
|
..
|
|
|
|
.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
|
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
.. _lirc_get_features:
|
|
|
|
|
|
|
|
***********************
|
|
|
|
ioctl LIRC_GET_FEATURES
|
|
|
|
***********************
|
|
|
|
|
|
|
|
Name
|
|
|
|
====
|
|
|
|
|
|
|
|
LIRC_GET_FEATURES - Get the underlying hardware device's features
|
|
|
|
|
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
2016-08-20 03:59:31 +08:00
|
|
|
.. c:function:: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features)
|
|
|
|
:name: LIRC_GET_FEATURES
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
Arguments
|
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by open().
|
|
|
|
|
|
|
|
``features``
|
|
|
|
Bitmask with the LIRC features.
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
|
|
|
|
|
|
|
Get the underlying hardware device's features. If a driver does not
|
|
|
|
announce support of certain features, calling of the corresponding ioctls
|
|
|
|
is undefined.
|
|
|
|
|
|
|
|
LIRC features
|
|
|
|
=============
|
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-REC-RAW:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_REC_RAW``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-12 17:12:32 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-REC-PULSE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_REC_PULSE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2017-02-09 01:10:30 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
|
|
|
:ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` can only be used for transmitting.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-REC-MODE2:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_REC_MODE2``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2017-12-29 03:58:26 +08:00
|
|
|
This is raw IR driver for receiving. This means that
|
|
|
|
:ref:`LIRC_MODE_MODE2 <lirc-mode-MODE2>` is used. This also implies
|
|
|
|
that :ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is also supported,
|
|
|
|
as long as the kernel is recent enough. Use the
|
|
|
|
:ref:`lirc_set_rec_mode` to switch modes.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-REC-LIRCCODE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_REC_LIRCCODE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2017-06-08 17:10:41 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2017-02-25 19:51:34 +08:00
|
|
|
.. _LIRC-CAN-REC-SCANCODE:
|
|
|
|
|
|
|
|
``LIRC_CAN_REC_SCANCODE``
|
|
|
|
|
2017-12-29 03:58:26 +08:00
|
|
|
This is a scancode driver for receiving. This means that
|
|
|
|
:ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is used.
|
2017-02-25 19:51:34 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-SEND-CARRIER:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_SEND_CARRIER``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports changing the modulation frequency via
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-SEND-DUTY-CYCLE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_SEND_DUTY_CYCLE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports changing the duty cycle using
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-TRANSMITTER-MASK:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_TRANSMITTER_MASK``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports changing the active transmitter(s) using
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-REC-CARRIER:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_REC_CARRIER``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports setting the receive carrier frequency using
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-REC-DUTY-CYCLE-RANGE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 21:27:32 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-REC-CARRIER-RANGE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_REC_CARRIER_RANGE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-GET-REC-RESOLUTION:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_GET_REC_RESOLUTION``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-REC-TIMEOUT:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_REC_TIMEOUT``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SET-REC-FILTER:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SET_REC_FILTER``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 21:27:32 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-MEASURE-CARRIER:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_MEASURE_CARRIER``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports measuring of the modulation frequency using
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-USE-WIDEBAND-RECEIVER:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_USE_WIDEBAND_RECEIVER``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
The driver supports learning mode using
|
2016-07-11 22:46:57 +08:00
|
|
|
:ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>`.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-NOTIFY-DECODE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_NOTIFY_DECODE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2016-07-11 21:27:32 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2016-07-11 22:46:57 +08:00
|
|
|
.. _LIRC-CAN-SEND-RAW:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SEND_RAW``
|
|
|
|
|
2016-07-12 17:12:32 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 22:46:57 +08:00
|
|
|
|
|
|
|
.. _LIRC-CAN-SEND-PULSE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SEND_PULSE``
|
|
|
|
|
2017-02-09 01:10:30 +08:00
|
|
|
The driver supports sending (also called as IR blasting or IR TX) using
|
2017-12-29 03:58:26 +08:00
|
|
|
:ref:`LIRC_MODE_PULSE <lirc-mode-pulse>`. This implies that
|
|
|
|
:ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is also supported for
|
|
|
|
transmit, as long as the kernel is recent enough. Use the
|
|
|
|
:ref:`lirc_set_send_mode` to switch modes.
|
2016-07-11 22:46:57 +08:00
|
|
|
|
|
|
|
.. _LIRC-CAN-SEND-MODE2:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SEND_MODE2``
|
|
|
|
|
2017-02-09 01:10:30 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
|
|
|
:ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` can only be used for receiving.
|
2016-07-11 22:46:57 +08:00
|
|
|
|
|
|
|
.. _LIRC-CAN-SEND-LIRCCODE:
|
2016-07-11 09:33:57 +08:00
|
|
|
|
|
|
|
``LIRC_CAN_SEND_LIRCCODE``
|
2016-07-11 22:46:57 +08:00
|
|
|
|
2017-06-08 17:10:41 +08:00
|
|
|
Unused. Kept just to avoid breaking uAPI.
|
2016-07-11 09:33:57 +08:00
|
|
|
|
2017-02-25 19:51:34 +08:00
|
|
|
|
2016-07-11 09:33:57 +08:00
|
|
|
Return Value
|
|
|
|
============
|
|
|
|
|
|
|
|
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.
|