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_send_mode:
11 .. _lirc_set_send_mode:
13 ************************************************
14 ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE
15 ************************************************
20 LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode.
25 .. c:function:: int ioctl( int fd, LIRC_GET_SEND_MODE, __u32 *mode )
26 :name: LIRC_GET_SEND_MODE
28 .. c:function:: int ioctl( int fd, LIRC_SET_SEND_MODE, __u32 *mode )
29 :name: LIRC_SET_SEND_MODE
35 File descriptor returned by open().
38 The mode used for transmitting.
44 Get/set current transmit mode.
46 Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` and
47 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported by for IR send,
48 depending on the driver. Use :ref:`lirc_get_features` to find out which
49 modes the driver supports.
55 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
66 - Device not available.
72 - Device does not support transmitting.
78 - Invalid mode or invalid mode for this device.