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_send_mode: 10 .. _lirc_get_send_mode: 5 .. _lirc_set_send_mode: 11 .. _lirc_set_send_mode: 6 12 7 ********************************************** 13 ************************************************ 8 ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MO 14 ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE 9 ********************************************** 15 ************************************************ 10 16 11 Name 17 Name 12 ==== 18 ==== 13 19 14 LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/se 20 LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode. 15 21 16 Synopsis 22 Synopsis 17 ======== 23 ======== 18 24 19 .. c:macro:: LIRC_GET_SEND_MODE !! 25 .. c:function:: int ioctl( int fd, LIRC_GET_SEND_MODE, __u32 *mode ) >> 26 :name: LIRC_GET_SEND_MODE 20 27 21 ``int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 !! 28 .. c:function:: int ioctl( int fd, LIRC_SET_SEND_MODE, __u32 *mode ) 22 !! 29 :name: LIRC_SET_SEND_MODE 23 .. c:macro:: LIRC_SET_SEND_MODE << 24 << 25 ``int ioctl(int fd, LIRC_SET_SEND_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 The mode used for transmitting. 38 The mode used for transmitting. 35 39 >> 40 36 Description 41 Description 37 =========== 42 =========== 38 43 39 Get/set current transmit mode. 44 Get/set current transmit mode. 40 45 41 Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` 46 Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` and 42 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` 47 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported by for IR send, 43 depending on the driver. Use :ref:`lirc_get_fe 48 depending on the driver. Use :ref:`lirc_get_features` to find out which 44 modes the driver supports. 49 modes the driver supports. 45 50 46 Return Value 51 Return Value 47 ============ 52 ============ 48 53 >> 54 49 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 55 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 50 56 51 .. flat-table:: 57 .. flat-table:: 52 :header-rows: 0 58 :header-rows: 0 53 :stub-columns: 0 59 :stub-columns: 0 >> 60 54 61 55 - .. row 1 62 - .. row 1 56 63 57 - ``ENODEV`` 64 - ``ENODEV`` 58 65 59 - Device not available. 66 - Device not available. 60 67 61 - .. row 2 68 - .. row 2 62 69 63 - ``ENOTTY`` 70 - ``ENOTTY`` 64 71 65 - Device does not support transmitting 72 - Device does not support transmitting. 66 73 67 - .. row 3 74 - .. row 3 68 75 69 - ``EINVAL`` 76 - ``EINVAL`` 70 77 71 - Invalid mode or invalid mode for thi 78 - 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.