lirc-get-features.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. The driver is capable of receiving using
  32. :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>`.
  33. .. _LIRC-CAN-REC-MODE2:
  34. ``LIRC_CAN_REC_MODE2``
  35. The driver is capable of receiving using
  36. :ref:`LIRC_MODE_MODE2 <lirc-mode-MODE2>`.
  37. .. _LIRC-CAN-REC-LIRCCODE:
  38. ``LIRC_CAN_REC_LIRCCODE``
  39. The driver is capable of receiving using
  40. :ref:`LIRC_MODE_LIRCCODE <lirc-mode-LIRCCODE>`.
  41. .. _LIRC-CAN-SET-SEND-CARRIER:
  42. ``LIRC_CAN_SET_SEND_CARRIER``
  43. The driver supports changing the modulation frequency via
  44. :ref:`ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>`.
  45. .. _LIRC-CAN-SET-SEND-DUTY-CYCLE:
  46. ``LIRC_CAN_SET_SEND_DUTY_CYCLE``
  47. The driver supports changing the duty cycle using
  48. :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>`.
  49. .. _LIRC-CAN-SET-TRANSMITTER-MASK:
  50. ``LIRC_CAN_SET_TRANSMITTER_MASK``
  51. The driver supports changing the active transmitter(s) using
  52. :ref:`ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>`.
  53. .. _LIRC-CAN-SET-REC-CARRIER:
  54. ``LIRC_CAN_SET_REC_CARRIER``
  55. The driver supports setting the receive carrier frequency using
  56. :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`.
  57. .. _LIRC-CAN-SET-REC-DUTY-CYCLE-RANGE:
  58. ``LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE``
  59. Unused. Kept just to avoid breaking uAPI.
  60. .. _LIRC-CAN-SET-REC-CARRIER-RANGE:
  61. ``LIRC_CAN_SET_REC_CARRIER_RANGE``
  62. The driver supports
  63. :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>`.
  64. .. _LIRC-CAN-GET-REC-RESOLUTION:
  65. ``LIRC_CAN_GET_REC_RESOLUTION``
  66. The driver supports
  67. :ref:`ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>`.
  68. .. _LIRC-CAN-SET-REC-TIMEOUT:
  69. ``LIRC_CAN_SET_REC_TIMEOUT``
  70. The driver supports
  71. :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`.
  72. .. _LIRC-CAN-SET-REC-FILTER:
  73. ``LIRC_CAN_SET_REC_FILTER``
  74. Unused. Kept just to avoid breaking uAPI.
  75. .. _LIRC-CAN-MEASURE-CARRIER:
  76. ``LIRC_CAN_MEASURE_CARRIER``
  77. The driver supports measuring of the modulation frequency using
  78. :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>`.
  79. .. _LIRC-CAN-USE-WIDEBAND-RECEIVER:
  80. ``LIRC_CAN_USE_WIDEBAND_RECEIVER``
  81. The driver supports learning mode using
  82. :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>`.
  83. .. _LIRC-CAN-NOTIFY-DECODE:
  84. ``LIRC_CAN_NOTIFY_DECODE``
  85. Unused. Kept just to avoid breaking uAPI.
  86. .. _LIRC-CAN-SEND-RAW:
  87. ``LIRC_CAN_SEND_RAW``
  88. Unused. Kept just to avoid breaking uAPI.
  89. .. _LIRC-CAN-SEND-PULSE:
  90. ``LIRC_CAN_SEND_PULSE``
  91. The driver supports sending using :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>`.
  92. .. _LIRC-CAN-SEND-MODE2:
  93. ``LIRC_CAN_SEND_MODE2``
  94. The driver supports sending using :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`.
  95. .. _LIRC-CAN-SEND-LIRCCODE:
  96. ``LIRC_CAN_SEND_LIRCCODE``
  97. The driver supports sending codes (also called as IR blasting or IR TX).
  98. Return Value
  99. ============
  100. On success 0 is returned, on error -1 and the ``errno`` variable is set
  101. appropriately. The generic error codes are described at the
  102. :ref:`Generic Error Codes <gen-errors>` chapter.