brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · 628fe31 Raw
70 lines · plain
1.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later2.. c:namespace:: RC3 4.. _lirc_get_rec_mode:5.. _lirc_set_rec_mode:6 7**********************************************8ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE9**********************************************10 11Name12====13 14LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.15 16Synopsis17========18 19.. c:macro:: LIRC_GET_REC_MODE20 21``int ioctl(int fd, LIRC_GET_REC_MODE, __u32 *mode)``22 23.. c:macro:: LIRC_SET_REC_MODE24 25``int ioctl(int fd, LIRC_SET_REC_MODE, __u32 *mode)``26 27Arguments28=========29 30``fd``31    File descriptor returned by open().32 33``mode``34    Mode used for receive.35 36Description37===========38 39Get and set the current receive mode. Only40:ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and41:ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported.42Use :ref:`lirc_get_features` to find out which modes the driver supports.43 44Return Value45============46 47.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|48 49.. flat-table::50    :header-rows:  051    :stub-columns: 052 53    -  .. row 154 55       -  ``ENODEV``56 57       -  Device not available.58 59    -  .. row 260 61       -  ``ENOTTY``62 63       -  Device does not support receiving.64 65    -  .. row 366 67       -  ``EINVAL``68 69       -  Invalid mode or invalid mode for this device.70