0001 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: RC
0003
0004 .. _lirc_set_send_carrier:
0005
0006 ***************************
0007 ioctl LIRC_SET_SEND_CARRIER
0008 ***************************
0009
0010 Name
0011 ====
0012
0013 LIRC_SET_SEND_CARRIER - Set send carrier used to modulate IR TX.
0014
0015 Synopsis
0016 ========
0017
0018 .. c:macro:: LIRC_SET_SEND_CARRIER
0019
0020 ``int ioctl(int fd, LIRC_SET_SEND_CARRIER, __u32 *frequency)``
0021
0022 Arguments
0023 =========
0024
0025 ``fd``
0026 File descriptor returned by open().
0027
0028 ``frequency``
0029 Frequency of the carrier to be modulated, in Hz.
0030
0031 Description
0032 ===========
0033
0034 Set send carrier used to modulate IR PWM pulses and spaces.
0035
0036 Return Value
0037 ============
0038
0039 On success 0 is returned, on error -1 and the ``errno`` variable is set
0040 appropriately. The generic error codes are described at the
0041 :ref:`Generic Error Codes <gen-errors>` chapter.