| 1 |
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later |
| 2 |
.. c:namespace:: RC |
| 3 |
|
| 4 |
.. _lirc_set_send_duty_cycle: |
| 5 |
|
| 6 |
****************************** |
| 7 |
ioctl LIRC_SET_SEND_DUTY_CYCLE |
| 8 |
****************************** |
| 9 |
|
| 10 |
Name |
| 11 |
==== |
| 12 |
|
| 13 |
LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle of the carrier signal for |
| 14 |
IR transmit. |
| 15 |
|
| 16 |
Synopsis |
| 17 |
======== |
| 18 |
|
| 19 |
.. c:macro:: LIRC_SET_SEND_DUTY_CYCLE |
| 20 |
|
| 21 |
``int ioctl(int fd, LIRC_SET_SEND_DUTY_CYCLE, __u32 *duty_cycle)`` |
| 22 |
|
| 23 |
Arguments |
| 24 |
========= |
| 25 |
|
| 26 |
``fd`` |
| 27 |
File descriptor returned by open(). |
| 28 |
|
| 29 |
``duty_cycle`` |
| 30 |
Duty cycle, describing the pulse width in percent (from 1 to 99) of |
| 31 |
the total cycle. Values 0 and 100 are reserved. |
| 32 |
|
| 33 |
Description |
| 34 |
=========== |
| 35 |
|
| 36 |
Get/set the duty cycle of the carrier signal for IR transmit. |
| 37 |
|
| 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. |
| 41 |
|
| 42 |
Return Value |
| 43 |
============ |
| 44 |
|
| 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. |