lirc-set-send-carrier.rst 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: RC
  3. .. _lirc_set_send_carrier:
  4. ***************************
  5. ioctl LIRC_SET_SEND_CARRIER
  6. ***************************
  7. Name
  8. ====
  9. LIRC_SET_SEND_CARRIER - Set send carrier used to modulate IR TX.
  10. Synopsis
  11. ========
  12. .. c:macro:: LIRC_SET_SEND_CARRIER
  13. ``int ioctl(int fd, LIRC_SET_SEND_CARRIER, __u32 *frequency)``
  14. Arguments
  15. =========
  16. ``fd``
  17. File descriptor returned by open().
  18. ``frequency``
  19. Frequency of the carrier to be modulated, in Hz.
  20. Description
  21. ===========
  22. Set send carrier used to modulate IR PWM pulses and spaces.
  23. Return Value
  24. ============
  25. On success 0 is returned, on error -1 and the ``errno`` variable is set
  26. appropriately. The generic error codes are described at the
  27. :ref:`Generic Error Codes <gen-errors>` chapter.