1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1. !! 1 .. Permission is granted to copy, distribute and/or modify this 2 .. c:namespace:: RC !! 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/userspace-api/media/fdl-appendix.rst. >> 7 .. >> 8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections 3 9 4 .. _lirc_get_rec_mode: 10 .. _lirc_get_rec_mode: 5 .. _lirc_set_rec_mode: 11 .. _lirc_set_rec_mode: 6 12 7 ********************************************** 13 ********************************************** 8 ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE 14 ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE 9 ********************************************** 15 ********************************************** 10 16 11 Name 17 Name 12 ==== 18 ==== 13 19 14 LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set 20 LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode. 15 21 16 Synopsis 22 Synopsis 17 ======== 23 ======== 18 24 19 .. c:macro:: LIRC_GET_REC_MODE !! 25 .. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 *mode) >> 26 :name: LIRC_GET_REC_MODE 20 27 21 ``int ioctl(int fd, LIRC_GET_REC_MODE, __u32 * !! 28 .. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 *mode) 22 !! 29 :name: LIRC_SET_REC_MODE 23 .. c:macro:: LIRC_SET_REC_MODE << 24 << 25 ``int ioctl(int fd, LIRC_SET_REC_MODE, __u32 * << 26 30 27 Arguments 31 Arguments 28 ========= 32 ========= 29 33 30 ``fd`` 34 ``fd`` 31 File descriptor returned by open(). 35 File descriptor returned by open(). 32 36 33 ``mode`` 37 ``mode`` 34 Mode used for receive. 38 Mode used for receive. 35 39 36 Description 40 Description 37 =========== 41 =========== 38 42 39 Get and set the current receive mode. Only 43 Get and set the current receive mode. Only 40 :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and 44 :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and 41 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` 45 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported. 42 Use :ref:`lirc_get_features` to find out which 46 Use :ref:`lirc_get_features` to find out which modes the driver supports. 43 47 44 Return Value 48 Return Value 45 ============ 49 ============ 46 50 47 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 51 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 48 52 49 .. flat-table:: 53 .. flat-table:: 50 :header-rows: 0 54 :header-rows: 0 51 :stub-columns: 0 55 :stub-columns: 0 >> 56 52 57 53 - .. row 1 58 - .. row 1 54 59 55 - ``ENODEV`` 60 - ``ENODEV`` 56 61 57 - Device not available. 62 - Device not available. 58 63 59 - .. row 2 64 - .. row 2 60 65 61 - ``ENOTTY`` 66 - ``ENOTTY`` 62 67 63 - Device does not support receiving. 68 - Device does not support receiving. 64 69 65 - .. row 3 70 - .. row 3 66 71 67 - ``EINVAL`` 72 - ``EINVAL`` 68 73 69 - Invalid mode or invalid mode for thi 74 - Invalid mode or invalid mode for this device.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.