Merge remote-tracking branch 'keys/keys-next'
[deliverable/linux.git] / Documentation / media / uapi / rc / lirc-get-rec-mode.rst
CommitLineData
dbe678dd
MCC
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _lirc_get_rec_mode:
048eb3ef 4.. _lirc_set_rec_mode:
dbe678dd 5
048eb3ef
MCC
6**********************************************
7ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE
8**********************************************
dbe678dd
MCC
9
10Name
11====
12
15c19014 13LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set supported receive modes.
dbe678dd
MCC
14
15Synopsis
16========
17
15c19014
MCC
18.. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 rx_modes)
19 :name: LIRC_GET_REC_MODE
20
21.. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 rx_modes)
22 :name: LIRC_SET_REC_MODE
dbe678dd
MCC
23
24Arguments
25=========
26
27``fd``
28 File descriptor returned by open().
29
dbe678dd
MCC
30``rx_modes``
31 Bitmask with the supported transmit modes.
32
33Description
34===========
35
048eb3ef
MCC
36Get/set supported receive modes. Only :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`
37and :ref:`LIRC_MODE_LIRCCODE <lirc-mode-lirccode>` are supported for IR
38receive.
dbe678dd
MCC
39
40
41Return Value
42============
43
44On success 0 is returned, on error -1 and the ``errno`` variable is set
45appropriately. The generic error codes are described at the
46:ref:`Generic Error Codes <gen-errors>` chapter.
This page took 0.042213 seconds and 5 git commands to generate.