lirc-get-send-mode.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: RC
  3. .. _lirc_get_send_mode:
  4. .. _lirc_set_send_mode:
  5. ************************************************
  6. ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE
  7. ************************************************
  8. Name
  9. ====
  10. LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode.
  11. Synopsis
  12. ========
  13. .. c:macro:: LIRC_GET_SEND_MODE
  14. ``int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 *mode)``
  15. .. c:macro:: LIRC_SET_SEND_MODE
  16. ``int ioctl(int fd, LIRC_SET_SEND_MODE, __u32 *mode)``
  17. Arguments
  18. =========
  19. ``fd``
  20. File descriptor returned by open().
  21. ``mode``
  22. The mode used for transmitting.
  23. Description
  24. ===========
  25. Get/set current transmit mode.
  26. Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` and
  27. :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported by for IR send,
  28. depending on the driver. Use :ref:`lirc_get_features` to find out which
  29. modes the driver supports.
  30. Return Value
  31. ============
  32. .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
  33. .. flat-table::
  34. :header-rows: 0
  35. :stub-columns: 0
  36. - .. row 1
  37. - ``ENODEV``
  38. - Device not available.
  39. - .. row 2
  40. - ``ENOTTY``
  41. - Device does not support transmitting.
  42. - .. row 3
  43. - ``EINVAL``
  44. - Invalid mode or invalid mode for this device.