1*ac7f9d02SMauro Carvalho Chehab.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 25f536f4aSMauro Carvalho Chehab.. c:namespace:: RC 354f38fcaSMauro Carvalho Chehab 454f38fcaSMauro Carvalho Chehab.. _lirc_get_min_timeout: 554f38fcaSMauro Carvalho Chehab.. _lirc_get_max_timeout: 654f38fcaSMauro Carvalho Chehab 754f38fcaSMauro Carvalho Chehab**************************************************** 854f38fcaSMauro Carvalho Chehabioctls LIRC_GET_MIN_TIMEOUT and LIRC_GET_MAX_TIMEOUT 954f38fcaSMauro Carvalho Chehab**************************************************** 1054f38fcaSMauro Carvalho Chehab 1154f38fcaSMauro Carvalho ChehabName 1254f38fcaSMauro Carvalho Chehab==== 1354f38fcaSMauro Carvalho Chehab 1454f38fcaSMauro Carvalho ChehabLIRC_GET_MIN_TIMEOUT / LIRC_GET_MAX_TIMEOUT - Obtain the possible timeout 1554f38fcaSMauro Carvalho Chehabrange for IR receive. 1654f38fcaSMauro Carvalho Chehab 1754f38fcaSMauro Carvalho ChehabSynopsis 1854f38fcaSMauro Carvalho Chehab======== 1954f38fcaSMauro Carvalho Chehab 205f536f4aSMauro Carvalho Chehab.. c:macro:: LIRC_GET_MIN_TIMEOUT 2154f38fcaSMauro Carvalho Chehab 225f536f4aSMauro Carvalho Chehab``int ioctl(int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)`` 235f536f4aSMauro Carvalho Chehab 245f536f4aSMauro Carvalho Chehab.. c:macro:: LIRC_GET_MAX_TIMEOUT 255f536f4aSMauro Carvalho Chehab 265f536f4aSMauro Carvalho Chehab``int ioctl(int fd, LIRC_GET_MAX_TIMEOUT, __u32 *timeout)`` 2754f38fcaSMauro Carvalho Chehab 2854f38fcaSMauro Carvalho ChehabArguments 2954f38fcaSMauro Carvalho Chehab========= 3054f38fcaSMauro Carvalho Chehab 3154f38fcaSMauro Carvalho Chehab``fd`` 3254f38fcaSMauro Carvalho Chehab File descriptor returned by open(). 3354f38fcaSMauro Carvalho Chehab 3454f38fcaSMauro Carvalho Chehab``timeout`` 3554f38fcaSMauro Carvalho Chehab Timeout, in microseconds. 3654f38fcaSMauro Carvalho Chehab 3754f38fcaSMauro Carvalho ChehabDescription 3854f38fcaSMauro Carvalho Chehab=========== 3954f38fcaSMauro Carvalho Chehab 4054f38fcaSMauro Carvalho ChehabSome devices have internal timers that can be used to detect when 4154f38fcaSMauro Carvalho Chehabthere's no IR activity for a long time. This can help lircd in 4254f38fcaSMauro Carvalho Chehabdetecting that a IR signal is finished and can speed up the decoding 4354f38fcaSMauro Carvalho Chehabprocess. Returns an integer value with the minimum/maximum timeout 4454f38fcaSMauro Carvalho Chehabthat can be set. 4554f38fcaSMauro Carvalho Chehab 4654f38fcaSMauro Carvalho Chehab.. note:: 4754f38fcaSMauro Carvalho Chehab 4854f38fcaSMauro Carvalho Chehab Some devices have a fixed timeout, in that case 4954f38fcaSMauro Carvalho Chehab both ioctls will return the same value even though the timeout 5054f38fcaSMauro Carvalho Chehab cannot be changed via :ref:`LIRC_SET_REC_TIMEOUT`. 5154f38fcaSMauro Carvalho Chehab 5254f38fcaSMauro Carvalho ChehabReturn Value 5354f38fcaSMauro Carvalho Chehab============ 5454f38fcaSMauro Carvalho Chehab 5554f38fcaSMauro Carvalho ChehabOn success 0 is returned, on error -1 and the ``errno`` variable is set 5654f38fcaSMauro Carvalho Chehabappropriately. The generic error codes are described at the 5754f38fcaSMauro Carvalho Chehab:ref:`Generic Error Codes <gen-errors>` chapter. 58