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 supported receive modes.
18 .. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 rx_modes)
19 :name: LIRC_GET_REC_MODE
21 .. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 rx_modes)
22 :name: LIRC_SET_REC_MODE
28 File descriptor returned by open().
31 Bitmask with the supported transmit modes.
36 Get/set supported receive modes. Only :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`
37 and :ref:`LIRC_MODE_LIRCCODE <lirc-mode-lirccode>` are supported for IR
44 On success 0 is returned, on error -1 and the ``errno`` variable is set
45 appropriately. The generic error codes are described at the
46 :ref:`Generic Error Codes <gen-errors>` chapter.