Lines Matching +full:write +full:- +full:to +full:- +full:write
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
44 :ref:`lirc_get_features` to get the supported modes and use
47 When in :ref:`LIRC_MODE_PULSE <lirc-mode-PULSE>` mode, the data written to
51 samples. The write function blocks until the data has been transmitted
55 When in :ref:`LIRC_MODE_SCANCODE <lirc-mode-scancode>` mode, one
56 ``struct lirc_scancode`` must be written to the chardev at a time, else
60 set to 0, else ``EINVAL`` is returned. If there is no protocol encoder
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.