summaryrefslogtreecommitdiff
path: root/Documentation/media/uapi/rc/lirc_read.rst
blob: b0b76c3d1d9a5b59bc589f4051b090e50bcd7f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.. -*- coding: utf-8; mode: rst -*-

.. _lirc_read:

*************
LIRC read fop
*************

The lircd userspace daemon reads raw IR data from the LIRC chardev. The
exact format of the data depends on what modes a driver supports, and
what mode has been selected. lircd obtains supported modes and sets the
active mode via the ioctl interface, detailed at :ref:`lirc_ioctl`.
The generally preferred mode is LIRC_MODE_MODE2, in which packets
containing an int value describing an IR signal are read from the
chardev.

See also
`http://www.lirc.org/html/technical.html <http://www.lirc.org/html/technical.html>`__
for more info.