1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _lirc_get_rec_mode:
11 .. _lirc_set_rec_mode:
13 **********************************************
14 ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE
15 **********************************************
20 LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
25 .. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 *mode)
26 :name: LIRC_GET_REC_MODE
28 .. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 *mode)
29 :name: LIRC_SET_REC_MODE
35 File descriptor returned by open().
38 Mode used for receive.
43 Get and set the current receive mode. Only
44 :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and
45 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported.
46 Use :ref:`lirc_get_features` to find out which modes the driver supports.
51 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
62 - Device not available.
68 - Device does not support receiving.
74 - Invalid mode or invalid mode for this device.