fe-diseqc-recv-slave-reply.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _FE_DISEQC_RECV_SLAVE_REPLY:
  3. ********************************
  4. ioctl FE_DISEQC_RECV_SLAVE_REPLY
  5. ********************************
  6. Name
  7. ====
  8. FE_DISEQC_RECV_SLAVE_REPLY - Receives reply from a DiSEqC 2.0 command
  9. Synopsis
  10. ========
  11. .. c:function:: int ioctl( int fd, FE_DISEQC_RECV_SLAVE_REPLY, struct dvb_diseqc_slave_reply *argp )
  12. :name: FE_DISEQC_RECV_SLAVE_REPLY
  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_slave_reply`
  20. Description
  21. ===========
  22. Receives reply from a DiSEqC 2.0 command.
  23. .. c:type:: dvb_diseqc_slave_reply
  24. .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
  25. .. flat-table:: struct dvb_diseqc_slave_reply
  26. :header-rows: 0
  27. :stub-columns: 0
  28. :widths: 1 1 2
  29. - .. row 1
  30. - uint8_t
  31. - msg[4]
  32. - DiSEqC message (framing, data[3])
  33. - .. row 2
  34. - uint8_t
  35. - msg_len
  36. - Length of the DiSEqC message. Valid values are 0 to 4, where 0
  37. means no msg
  38. - .. row 3
  39. - int
  40. - timeout
  41. - Return from ioctl after timeout ms with errorcode when no message
  42. was received
  43. Return Value
  44. ============
  45. On success 0 is returned, on error -1 and the ``errno`` variable is set
  46. appropriately. The generic error codes are described at the
  47. :ref:`Generic Error Codes <gen-errors>` chapter.