Lines Matching +full:write +full:- +full:data
1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
4 .. _lirc-write:
7 LIRC write()
13 lirc-write - Write to a LIRC device
18 .. code-block:: c
22 .. c:function:: ssize_t write( int fd, void *buf, size_t count )
31 Buffer with data to be written
39 :c:func:`write()` writes up to ``count`` bytes to the device
43 The exact format of the data depends on what mode a driver is in, use
47 When in :ref:`LIRC_MODE_PULSE <lirc-mode-PULSE>` mode, the data written to
49 are only marked implicitly by their position. The data must start and end
50 with a pulse, therefore, the data must always include an uneven number of
51 samples. The write function blocks until the data has been transmitted
52 by the hardware. If more data is provided than the hardware can send, the
55 When in :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` mode, one
62 ``EINVAL`` is returned. The write function blocks until the scancode
70 of data required for one frame. On error, -1 is returned, and the ``errno``
72 :ref:`Generic Error Codes <gen-errors>` chapter.