1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
7 **********************************************
8 ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE
9 **********************************************
14 LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
19 .. c:macro:: LIRC_GET_REC_MODE
21 ``int ioctl(int fd, LIRC_GET_REC_MODE, __u32 *mode)``
23 .. c:macro:: LIRC_SET_REC_MODE
25 ``int ioctl(int fd, LIRC_SET_REC_MODE, __u32 *mode)``
31 File descriptor returned by open().
34 Mode used for receive.
39 Get and set the current receive mode. Only
40 :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and
41 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported.
42 Use :ref:`lirc_get_features` to find out which modes the driver supports.
47 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
57 - Device not available.
63 - Device does not support receiving.
69 - Invalid mode or invalid mode for this device.