Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _lirc_set_rec_timeout: |
| 4 | .. _lirc_get_rec_timeout: |
| 5 | |
| 6 | *************************************************** |
| 7 | ioctl LIRC_GET_REC_TIMEOUT and LIRC_SET_REC_TIMEOUT |
| 8 | *************************************************** |
| 9 | |
| 10 | Name |
| 11 | ==== |
| 12 | |
| 13 | LIRC_GET_REC_TIMEOUT/LIRC_SET_REC_TIMEOUT - Get/set the integer value for IR inactivity timeout. |
| 14 | |
| 15 | Synopsis |
| 16 | ======== |
| 17 | |
| 18 | .. c:function:: int ioctl( int fd, LIRC_GET_REC_TIMEOUT, __u32 *timeout ) |
| 19 | :name: LIRC_GET_REC_TIMEOUT |
| 20 | |
| 21 | .. c:function:: int ioctl( int fd, LIRC_SET_REC_TIMEOUT, __u32 *timeout ) |
| 22 | :name: LIRC_SET_REC_TIMEOUT |
| 23 | |
| 24 | Arguments |
| 25 | ========= |
| 26 | |
| 27 | ``fd`` |
| 28 | File descriptor returned by open(). |
| 29 | |
| 30 | ``timeout`` |
| 31 | Timeout, in microseconds. |
| 32 | |
| 33 | |
| 34 | Description |
| 35 | =========== |
| 36 | |
| 37 | Get and set the integer value for IR inactivity timeout. |
| 38 | |
| 39 | If supported by the hardware, setting it to 0 disables all hardware timeouts |
| 40 | and data should be reported as soon as possible. If the exact value |
| 41 | cannot be set, then the next possible value _greater_ than the |
| 42 | given value should be set. |
| 43 | |
| 44 | .. note:: |
| 45 | |
| 46 | The range of supported timeout is given by :ref:`LIRC_GET_MIN_TIMEOUT`. |
| 47 | |
| 48 | |
| 49 | Return Value |
| 50 | ============ |
| 51 | |
| 52 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 53 | appropriately. The generic error codes are described at the |
| 54 | :ref:`Generic Error Codes <gen-errors>` chapter. |