18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci.. c:namespace:: RC
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci.. _lirc_set_rec_carrier_range:
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci********************************
78c2ecf20Sopenharmony_ciioctl LIRC_SET_REC_CARRIER_RANGE
88c2ecf20Sopenharmony_ci********************************
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciName
118c2ecf20Sopenharmony_ci====
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciLIRC_SET_REC_CARRIER_RANGE - Set lower bound of the carrier used to modulate
148c2ecf20Sopenharmony_ciIR receive.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciSynopsis
178c2ecf20Sopenharmony_ci========
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci.. c:macro:: LIRC_SET_REC_CARRIER_RANGE
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci``int ioctl(int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency)``
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciArguments
248c2ecf20Sopenharmony_ci=========
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci``fd``
278c2ecf20Sopenharmony_ci    File descriptor returned by open().
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci``frequency``
308c2ecf20Sopenharmony_ci    Frequency of the carrier that modulates PWM data, in Hz.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciDescription
338c2ecf20Sopenharmony_ci===========
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciThis ioctl sets the upper range of carrier frequency that will be recognized
368c2ecf20Sopenharmony_ciby the IR receiver.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci.. note::
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci   To set a range use :ref:`LIRC_SET_REC_CARRIER_RANGE
418c2ecf20Sopenharmony_ci   <LIRC_SET_REC_CARRIER_RANGE>` with the lower bound first and later call
428c2ecf20Sopenharmony_ci   :ref:`LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>` with the upper bound.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciReturn Value
458c2ecf20Sopenharmony_ci============
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciOn success 0 is returned, on error -1 and the ``errno`` variable is set
488c2ecf20Sopenharmony_ciappropriately. The generic error codes are described at the
498c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter.
50