1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
4 .. _lirc_set_send_duty_cycle:
6 ******************************
7 ioctl LIRC_SET_SEND_DUTY_CYCLE
8 ******************************
13 LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle of the carrier signal for
19 .. c:macro:: LIRC_SET_SEND_DUTY_CYCLE
21 ``int ioctl(int fd, LIRC_SET_SEND_DUTY_CYCLE, __u32 *duty_cycle)``
27 File descriptor returned by open().
30 Duty cicle, describing the pulse width in percent (from 1 to 99) of
31 the total cycle. Values 0 and 100 are reserved.
36 Get/set the duty cycle of the carrier signal for IR transmit.
38 Currently, no special meaning is defined for 0 or 100, but this
39 could be used to switch off carrier generation in the future, so
40 these values should be reserved.
45 On success 0 is returned, on error -1 and the ``errno`` variable is set
46 appropriately. The generic error codes are described at the
47 :ref:`Generic Error Codes <gen-errors>` chapter.