1 .. -*- coding: utf-8; mode: rst -*-
6 **********************************************
7 ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE
8 **********************************************
13 LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
18 .. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 *mode)
19 :name: LIRC_GET_REC_MODE
21 .. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 *mode)
22 :name: LIRC_SET_REC_MODE
28 File descriptor returned by open().
31 Mode used for receive.
36 Get and set the current receive mode. Only
37 :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>` and
38 :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` are supported.
39 Use :ref:`lirc_get_features` to find out which modes the driver supports.
44 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
55 - Device not available.
61 - Device does not support receiving.
67 - Invalid mode or invalid mode for this device.