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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _FE_DISEQC_SEND_MASTER_CMD:
  3. *******************************
  4. ioctl FE_DISEQC_SEND_MASTER_CMD
  5. *******************************
  6. Name
  7. ====
  8. FE_DISEQC_SEND_MASTER_CMD - Sends a DiSEqC command
  9. Synopsis
  10. ========
  11. .. c:function:: int ioctl( int fd, FE_DISEQC_SEND_MASTER_CMD, struct dvb_diseqc_master_cmd *argp )
  12. :name: FE_DISEQC_SEND_MASTER_CMD
  13. Arguments
  14. =========
  15. ``fd``
  16. File descriptor returned by :ref:`open() <frontend_f_open>`.
  17. ``argp``
  18. pointer to struct
  19. :c:type:`dvb_diseqc_master_cmd`
  20. Description
  21. ===========
  22. Sends the DiSEqC command pointed by :c:type:`dvb_diseqc_master_cmd`
  23. to the antenna subsystem.
  24. Return Value
  25. ============
  26. On success 0 is returned.
  27. On error -1 is returned, and the ``errno`` variable is set
  28. appropriately.
  29. Generic error codes are described at the
  30. :ref:`Generic Error Codes <gen-errors>` chapter.