0001 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: RC
0003
0004 .. _lirc_get_send_mode:
0005 .. _lirc_set_send_mode:
0006
0007 ************************************************
0008 ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE
0009 ************************************************
0010
0011 Name
0012 ====
0013
0014 LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode.
0015
0016 Synopsis
0017 ========
0018
0019 .. c:macro:: LIRC_GET_SEND_MODE
0020
0021 ``int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 *mode)``
0022
0023 .. c:macro:: LIRC_SET_SEND_MODE
0024
0025 ``int ioctl(int fd, LIRC_SET_SEND_MODE, __u32 *mode)``
0026
0027 Arguments
0028 =========
0029
0030 ``fd``
0031 File descriptor returned by open().
0032
0033 ``mode``
0034 The mode used for transmitting.
0035
0036 Description
0037 ===========
0038
0039 Get/set current transmit mode.
0040
0041 Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` and
0042 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported by for IR send,
0043 depending on the driver. Use :ref:`lirc_get_features` to find out which
0044 modes the driver supports.
0045
0046 Return Value
0047 ============
0048
0049 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
0050
0051 .. flat-table::
0052 :header-rows: 0
0053 :stub-columns: 0
0054
0055 - .. row 1
0056
0057 - ``ENODEV``
0058
0059 - Device not available.
0060
0061 - .. row 2
0062
0063 - ``ENOTTY``
0064
0065 - Device does not support transmitting.
0066
0067 - .. row 3
0068
0069 - ``EINVAL``
0070
0071 - Invalid mode or invalid mode for this device.