lirc-set-send-carrier.rst 790 B

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