lirc-set-rec-timeout.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _lirc_set_rec_timeout:
  3. .. _lirc_get_rec_timeout:
  4. ***************************************************
  5. ioctl LIRC_GET_REC_TIMEOUT and LIRC_SET_REC_TIMEOUT
  6. ***************************************************
  7. Name
  8. ====
  9. LIRC_GET_REC_TIMEOUT/LIRC_SET_REC_TIMEOUT - Get/set the integer value for IR inactivity timeout.
  10. Synopsis
  11. ========
  12. .. c:function:: int ioctl( int fd, LIRC_GET_REC_TIMEOUT, __u32 *timeout )
  13. :name: LIRC_GET_REC_TIMEOUT
  14. .. c:function:: int ioctl( int fd, LIRC_SET_REC_TIMEOUT, __u32 *timeout )
  15. :name: LIRC_SET_REC_TIMEOUT
  16. Arguments
  17. =========
  18. ``fd``
  19. File descriptor returned by open().
  20. ``timeout``
  21. Timeout, in microseconds.
  22. Description
  23. ===========
  24. Get and set the integer value for IR inactivity timeout.
  25. If supported by the hardware, setting it to 0 disables all hardware timeouts
  26. and data should be reported as soon as possible. If the exact value
  27. cannot be set, then the next possible value _greater_ than the
  28. given value should be set.
  29. .. note::
  30. The range of supported timeout is given by :ref:`LIRC_GET_MIN_TIMEOUT`.
  31. Return Value
  32. ============
  33. On success 0 is returned, on error -1 and the ``errno`` variable is set
  34. appropriately. The generic error codes are described at the
  35. :ref:`Generic Error Codes <gen-errors>` chapter.