1*ac7f9d02SMauro Carvalho Chehab.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 25f536f4aSMauro Carvalho Chehab.. c:namespace:: RC 354f38fcaSMauro Carvalho Chehab 454f38fcaSMauro Carvalho Chehab.. _lirc_get_send_mode: 554f38fcaSMauro Carvalho Chehab.. _lirc_set_send_mode: 654f38fcaSMauro Carvalho Chehab 754f38fcaSMauro Carvalho Chehab************************************************ 854f38fcaSMauro Carvalho Chehabioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE 954f38fcaSMauro Carvalho Chehab************************************************ 1054f38fcaSMauro Carvalho Chehab 1154f38fcaSMauro Carvalho ChehabName 1254f38fcaSMauro Carvalho Chehab==== 1354f38fcaSMauro Carvalho Chehab 1454f38fcaSMauro Carvalho ChehabLIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode. 1554f38fcaSMauro Carvalho Chehab 1654f38fcaSMauro Carvalho ChehabSynopsis 1754f38fcaSMauro Carvalho Chehab======== 1854f38fcaSMauro Carvalho Chehab 195f536f4aSMauro Carvalho Chehab.. c:macro:: LIRC_GET_SEND_MODE 2054f38fcaSMauro Carvalho Chehab 215f536f4aSMauro Carvalho Chehab``int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 *mode)`` 225f536f4aSMauro Carvalho Chehab 235f536f4aSMauro Carvalho Chehab.. c:macro:: LIRC_SET_SEND_MODE 245f536f4aSMauro Carvalho Chehab 255f536f4aSMauro Carvalho Chehab``int ioctl(int fd, LIRC_SET_SEND_MODE, __u32 *mode)`` 2654f38fcaSMauro Carvalho Chehab 2754f38fcaSMauro Carvalho ChehabArguments 2854f38fcaSMauro Carvalho Chehab========= 2954f38fcaSMauro Carvalho Chehab 3054f38fcaSMauro Carvalho Chehab``fd`` 3154f38fcaSMauro Carvalho Chehab File descriptor returned by open(). 3254f38fcaSMauro Carvalho Chehab 3354f38fcaSMauro Carvalho Chehab``mode`` 3454f38fcaSMauro Carvalho Chehab The mode used for transmitting. 3554f38fcaSMauro Carvalho Chehab 3654f38fcaSMauro Carvalho ChehabDescription 3754f38fcaSMauro Carvalho Chehab=========== 3854f38fcaSMauro Carvalho Chehab 3954f38fcaSMauro Carvalho ChehabGet/set current transmit mode. 4054f38fcaSMauro Carvalho Chehab 4154f38fcaSMauro Carvalho ChehabOnly :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` and 4254f38fcaSMauro Carvalho Chehab:ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported by for IR send, 4354f38fcaSMauro Carvalho Chehabdepending on the driver. Use :ref:`lirc_get_features` to find out which 4454f38fcaSMauro Carvalho Chehabmodes the driver supports. 4554f38fcaSMauro Carvalho Chehab 4654f38fcaSMauro Carvalho ChehabReturn Value 4754f38fcaSMauro Carvalho Chehab============ 4854f38fcaSMauro Carvalho Chehab 4954f38fcaSMauro Carvalho Chehab.. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 5054f38fcaSMauro Carvalho Chehab 5154f38fcaSMauro Carvalho Chehab.. flat-table:: 5254f38fcaSMauro Carvalho Chehab :header-rows: 0 5354f38fcaSMauro Carvalho Chehab :stub-columns: 0 5454f38fcaSMauro Carvalho Chehab 5554f38fcaSMauro Carvalho Chehab - .. row 1 5654f38fcaSMauro Carvalho Chehab 5754f38fcaSMauro Carvalho Chehab - ``ENODEV`` 5854f38fcaSMauro Carvalho Chehab 5954f38fcaSMauro Carvalho Chehab - Device not available. 6054f38fcaSMauro Carvalho Chehab 6154f38fcaSMauro Carvalho Chehab - .. row 2 6254f38fcaSMauro Carvalho Chehab 6354f38fcaSMauro Carvalho Chehab - ``ENOTTY`` 6454f38fcaSMauro Carvalho Chehab 6554f38fcaSMauro Carvalho Chehab - Device does not support transmitting. 6654f38fcaSMauro Carvalho Chehab 6754f38fcaSMauro Carvalho Chehab - .. row 3 6854f38fcaSMauro Carvalho Chehab 6954f38fcaSMauro Carvalho Chehab - ``EINVAL`` 7054f38fcaSMauro Carvalho Chehab 7154f38fcaSMauro Carvalho Chehab - Invalid mode or invalid mode for this device. 72