lirc-get-features.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _lirc_get_features:
  3. ***********************
  4. ioctl LIRC_GET_FEATURES
  5. ***********************
  6. Name
  7. ====
  8. LIRC_GET_FEATURES - Get the underlying hardware device's features
  9. Synopsis
  10. ========
  11. .. c:function:: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features)
  12. :name: LIRC_GET_FEATURES
  13. Arguments
  14. =========
  15. ``fd``
  16. File descriptor returned by open().
  17. ``features``
  18. Bitmask with the LIRC features.
  19. Description
  20. ===========
  21. Get the underlying hardware device's features. If a driver does not
  22. announce support of certain features, calling of the corresponding ioctls
  23. is undefined.
  24. LIRC features
  25. =============
  26. .. _LIRC-CAN-REC-RAW:
  27. ``LIRC_CAN_REC_RAW``
  28. Unused. Kept just to avoid breaking uAPI.
  29. .. _LIRC-CAN-REC-PULSE:
  30. ``LIRC_CAN_REC_PULSE``
  31. Unused. Kept just to avoid breaking uAPI.
  32. :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` can only be used for transmitting.
  33. .. _LIRC-CAN-REC-MODE2:
  34. ``LIRC_CAN_REC_MODE2``
  35. This is raw IR driver for receiving. This means that
  36. :ref:`LIRC_MODE_MODE2 <lirc-mode-MODE2>` is used. This also implies
  37. that :ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is also supported,
  38. as long as the kernel is recent enough. Use the
  39. :ref:`lirc_set_rec_mode` to switch modes.
  40. .. _LIRC-CAN-REC-LIRCCODE:
  41. ``LIRC_CAN_REC_LIRCCODE``
  42. Unused. Kept just to avoid breaking uAPI.
  43. .. _LIRC-CAN-REC-SCANCODE:
  44. ``LIRC_CAN_REC_SCANCODE``
  45. This is a scancode driver for receiving. This means that
  46. :ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is used.
  47. .. _LIRC-CAN-SET-SEND-CARRIER:
  48. ``LIRC_CAN_SET_SEND_CARRIER``
  49. The driver supports changing the modulation frequency via
  50. :ref:`ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>`.
  51. .. _LIRC-CAN-SET-SEND-DUTY-CYCLE:
  52. ``LIRC_CAN_SET_SEND_DUTY_CYCLE``
  53. The driver supports changing the duty cycle using
  54. :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>`.
  55. .. _LIRC-CAN-SET-TRANSMITTER-MASK:
  56. ``LIRC_CAN_SET_TRANSMITTER_MASK``
  57. The driver supports changing the active transmitter(s) using
  58. :ref:`ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>`.
  59. .. _LIRC-CAN-SET-REC-CARRIER:
  60. ``LIRC_CAN_SET_REC_CARRIER``
  61. The driver supports setting the receive carrier frequency using
  62. :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`.
  63. .. _LIRC-CAN-SET-REC-DUTY-CYCLE-RANGE:
  64. ``LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE``
  65. Unused. Kept just to avoid breaking uAPI.
  66. .. _LIRC-CAN-SET-REC-CARRIER-RANGE:
  67. ``LIRC_CAN_SET_REC_CARRIER_RANGE``
  68. The driver supports
  69. :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>`.
  70. .. _LIRC-CAN-GET-REC-RESOLUTION:
  71. ``LIRC_CAN_GET_REC_RESOLUTION``
  72. The driver supports
  73. :ref:`ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>`.
  74. .. _LIRC-CAN-SET-REC-TIMEOUT:
  75. ``LIRC_CAN_SET_REC_TIMEOUT``
  76. The driver supports
  77. :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`.
  78. .. _LIRC-CAN-SET-REC-FILTER:
  79. ``LIRC_CAN_SET_REC_FILTER``
  80. Unused. Kept just to avoid breaking uAPI.
  81. .. _LIRC-CAN-MEASURE-CARRIER:
  82. ``LIRC_CAN_MEASURE_CARRIER``
  83. The driver supports measuring of the modulation frequency using
  84. :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>`.
  85. .. _LIRC-CAN-USE-WIDEBAND-RECEIVER:
  86. ``LIRC_CAN_USE_WIDEBAND_RECEIVER``
  87. The driver supports learning mode using
  88. :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>`.
  89. .. _LIRC-CAN-NOTIFY-DECODE:
  90. ``LIRC_CAN_NOTIFY_DECODE``
  91. Unused. Kept just to avoid breaking uAPI.
  92. .. _LIRC-CAN-SEND-RAW:
  93. ``LIRC_CAN_SEND_RAW``
  94. Unused. Kept just to avoid breaking uAPI.
  95. .. _LIRC-CAN-SEND-PULSE:
  96. ``LIRC_CAN_SEND_PULSE``
  97. The driver supports sending (also called as IR blasting or IR TX) using
  98. :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>`. This implies that
  99. :ref:`LIRC_MODE_SCANCODE <lirc-mode-SCANCODE>` is also supported for
  100. transmit, as long as the kernel is recent enough. Use the
  101. :ref:`lirc_set_send_mode` to switch modes.
  102. .. _LIRC-CAN-SEND-MODE2:
  103. ``LIRC_CAN_SEND_MODE2``
  104. Unused. Kept just to avoid breaking uAPI.
  105. :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` can only be used for receiving.
  106. .. _LIRC-CAN-SEND-LIRCCODE:
  107. ``LIRC_CAN_SEND_LIRCCODE``
  108. Unused. Kept just to avoid breaking uAPI.
  109. Return Value
  110. ============
  111. On success 0 is returned, on error -1 and the ``errno`` variable is set
  112. appropriately. The generic error codes are described at the
  113. :ref:`Generic Error Codes <gen-errors>` chapter.