lirc-get-timeout.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _lirc_get_min_timeout:
  3. .. _lirc_get_max_timeout:
  4. ****************************************************
  5. ioctls LIRC_GET_MIN_TIMEOUT and LIRC_GET_MAX_TIMEOUT
  6. ****************************************************
  7. Name
  8. ====
  9. LIRC_GET_MIN_TIMEOUT / LIRC_GET_MAX_TIMEOUT - Obtain the possible timeout
  10. range for IR receive.
  11. Synopsis
  12. ========
  13. .. c:function:: int ioctl( int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)
  14. :name: LIRC_GET_MIN_TIMEOUT
  15. .. c:function:: int ioctl( int fd, LIRC_GET_MAX_TIMEOUT, __u32 *timeout)
  16. :name: LIRC_GET_MAX_TIMEOUT
  17. Arguments
  18. =========
  19. ``fd``
  20. File descriptor returned by open().
  21. ``timeout``
  22. Timeout, in microseconds.
  23. Description
  24. ===========
  25. Some devices have internal timers that can be used to detect when
  26. there's no IR activity for a long time. This can help lircd in
  27. detecting that a IR signal is finished and can speed up the decoding
  28. process. Returns an integer value with the minimum/maximum timeout
  29. that can be set.
  30. .. note::
  31. Some devices have a fixed timeout, in that case
  32. both ioctls will return the same value even though the timeout
  33. cannot be changed via :ref:`LIRC_SET_REC_TIMEOUT`.
  34. Return Value
  35. ============
  36. On success 0 is returned, on error -1 and the ``errno`` variable is set
  37. appropriately. The generic error codes are described at the
  38. :ref:`Generic Error Codes <gen-errors>` chapter.