WIP FPC-III support
[linux/fpc-iii.git] / Documentation / userspace-api / media / rc / lirc-set-rec-timeout-reports.rst
blobaebe81012939f1336479ae47831019d2c7733c9f
1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: RC
4 .. _lirc_set_rec_timeout_reports:
6 **********************************
7 ioctl LIRC_SET_REC_TIMEOUT_REPORTS
8 **********************************
10 Name
11 ====
13 LIRC_SET_REC_TIMEOUT_REPORTS - enable or disable timeout reports for IR receive
15 Synopsis
16 ========
18 .. c:macro:: LIRC_SET_REC_TIMEOUT_REPORTS
20 ``int ioctl(int fd, LIRC_SET_REC_TIMEOUT_REPORTS, __u32 *enable)``
22 Arguments
23 =========
25 ``fd``
26     File descriptor returned by open().
28 ``enable``
29     enable = 1 means enable timeout report, enable = 0 means disable timeout
30     reports.
32 Description
33 ===========
35 .. _lirc-mode2-timeout:
37 Enable or disable timeout reports for IR receive. By default, timeout reports
38 should be turned off.
40 .. note::
42    This ioctl is only valid for :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`.
44 Return Value
45 ============
47 On success 0 is returned, on error -1 and the ``errno`` variable is set
48 appropriately. The generic error codes are described at the
49 :ref:`Generic Error Codes <gen-errors>` chapter.