lirc-get-rec-mode.rst 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _lirc_get_rec_mode:
  3. .. _lirc_set_rec_mode:
  4. **********************************************
  5. ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE
  6. **********************************************
  7. Name
  8. ====
  9. LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set supported receive modes.
  10. Synopsis
  11. ========
  12. .. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 rx_modes)
  13. :name: LIRC_GET_REC_MODE
  14. .. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 rx_modes)
  15. :name: LIRC_SET_REC_MODE
  16. Arguments
  17. =========
  18. ``fd``
  19. File descriptor returned by open().
  20. ``rx_modes``
  21. Bitmask with the supported transmit modes.
  22. Description
  23. ===========
  24. Get/set supported receive modes. Only :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`
  25. and :ref:`LIRC_MODE_LIRCCODE <lirc-mode-lirccode>` are supported for IR
  26. receive.
  27. Return Value
  28. ============
  29. On success 0 is returned, on error -1 and the ``errno`` variable is set
  30. appropriately. The generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.