1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1. 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 2 .. c:namespace:: RC 2 .. c:namespace:: RC 3 3 4 .. _lirc_set_send_duty_cycle: 4 .. _lirc_set_send_duty_cycle: 5 5 6 ****************************** 6 ****************************** 7 ioctl LIRC_SET_SEND_DUTY_CYCLE 7 ioctl LIRC_SET_SEND_DUTY_CYCLE 8 ****************************** 8 ****************************** 9 9 10 Name 10 Name 11 ==== 11 ==== 12 12 13 LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle 13 LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle of the carrier signal for 14 IR transmit. 14 IR transmit. 15 15 16 Synopsis 16 Synopsis 17 ======== 17 ======== 18 18 19 .. c:macro:: LIRC_SET_SEND_DUTY_CYCLE 19 .. c:macro:: LIRC_SET_SEND_DUTY_CYCLE 20 20 21 ``int ioctl(int fd, LIRC_SET_SEND_DUTY_CYCLE, 21 ``int ioctl(int fd, LIRC_SET_SEND_DUTY_CYCLE, __u32 *duty_cycle)`` 22 22 23 Arguments 23 Arguments 24 ========= 24 ========= 25 25 26 ``fd`` 26 ``fd`` 27 File descriptor returned by open(). 27 File descriptor returned by open(). 28 28 29 ``duty_cycle`` 29 ``duty_cycle`` 30 Duty cicle, describing the pulse width in 30 Duty cicle, describing the pulse width in percent (from 1 to 99) of 31 the total cycle. Values 0 and 100 are rese 31 the total cycle. Values 0 and 100 are reserved. 32 32 33 Description 33 Description 34 =========== 34 =========== 35 35 36 Get/set the duty cycle of the carrier signal f 36 Get/set the duty cycle of the carrier signal for IR transmit. 37 37 38 Currently, no special meaning is defined for 0 38 Currently, no special meaning is defined for 0 or 100, but this 39 could be used to switch off carrier generation 39 could be used to switch off carrier generation in the future, so 40 these values should be reserved. 40 these values should be reserved. 41 41 42 Return Value 42 Return Value 43 ============ 43 ============ 44 44 45 On success 0 is returned, on error -1 and the 45 On success 0 is returned, on error -1 and the ``errno`` variable is set 46 appropriately. The generic error codes are des 46 appropriately. The generic error codes are described at the 47 :ref:`Generic Error Codes <gen-errors>` chapte 47 :ref:`Generic Error Codes <gen-errors>` chapter.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.