fe-diseqc-send-master-cmd.rst 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.fe
  3. .. _FE_DISEQC_SEND_MASTER_CMD:
  4. *******************************
  5. ioctl FE_DISEQC_SEND_MASTER_CMD
  6. *******************************
  7. Name
  8. ====
  9. FE_DISEQC_SEND_MASTER_CMD - Sends a DiSEqC command
  10. Synopsis
  11. ========
  12. .. c:macro:: FE_DISEQC_SEND_MASTER_CMD
  13. ``int ioctl(int fd, FE_DISEQC_SEND_MASTER_CMD, struct dvb_diseqc_master_cmd *argp)``
  14. Arguments
  15. =========
  16. ``fd``
  17. File descriptor returned by :c:func:`open()`.
  18. ``argp``
  19. pointer to struct
  20. :c:type:`dvb_diseqc_master_cmd`
  21. Description
  22. ===========
  23. Sends the DiSEqC command pointed by :c:type:`dvb_diseqc_master_cmd`
  24. to the antenna subsystem.
  25. Return Value
  26. ============
  27. On success 0 is returned.
  28. On error -1 is returned, and the ``errno`` variable is set
  29. appropriately.
  30. Generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.