fe-diseqc-send-master-cmd.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 a DiSEqC command to the antenna subsystem.
  23. .. c:type:: dvb_diseqc_master_cmd
  24. .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
  25. .. flat-table:: struct dvb_diseqc_master_cmd
  26. :header-rows: 0
  27. :stub-columns: 0
  28. :widths: 1 1 2
  29. - .. row 1
  30. - uint8_t
  31. - msg[6]
  32. - DiSEqC message (framing, address, command, data[3])
  33. - .. row 2
  34. - uint8_t
  35. - msg_len
  36. - Length of the DiSEqC message. Valid values are 3 to 6
  37. Return Value
  38. ============
  39. On success 0 is returned, on error -1 and the ``errno`` variable is set
  40. appropriately. The generic error codes are described at the
  41. :ref:`Generic Error Codes <gen-errors>` chapter.