blob: 67e53787cc1e26f6b5cf63eab79de79bd83c2a7f [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_DISEQC_RECV_SLAVE_REPLY:
4
5********************************
6ioctl FE_DISEQC_RECV_SLAVE_REPLY
7********************************
8
9*man FE_DISEQC_RECV_SLAVE_REPLY(2)*
10
11Receives reply from a DiSEqC 2.0 command
12
13
14Synopsis
15========
16
Mauro Carvalho Chehabb7e67f62016-07-02 09:49:16 -030017.. cpp:function:: int ioctl( int fd, int request, struct dvb_diseqc_slave_reply *argp )
Markus Heiser5377d912016-06-30 15:18:56 +020018
19Arguments
20=========
21
22``fd``
23 File descriptor returned by :ref:`open() <frontend_f_open>`.
24
25``request``
26 FE_DISEQC_RECV_SLAVE_REPLY
27
28``argp``
29 pointer to struct
30 :ref:`dvb_diseqc_slave_reply <dvb-diseqc-slave-reply>`
31
32
33Description
34===========
35
36Receives reply from a DiSEqC 2.0 command.
37
38RETURN VALUE
39
40On success 0 is returned, on error -1 and the ``errno`` variable is set
41appropriately. The generic error codes are described at the
42:ref:`Generic Error Codes <gen-errors>` chapter.
43
44
45.. _dvb-diseqc-slave-reply:
46
47.. flat-table:: struct dvb_diseqc_slave_reply
48 :header-rows: 0
49 :stub-columns: 0
50 :widths: 1 1 2
51
52
53 - .. row 1
54
55 - uint8_t
56
57 - msg[4]
58
59 - DiSEqC message (framing, data[3])
60
61 - .. row 2
62
63 - uint8_t
64
65 - msg_len
66
67 - Length of the DiSEqC message. Valid values are 0 to 4, where 0
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -030068 means no msg
Markus Heiser5377d912016-06-30 15:18:56 +020069
70 - .. row 3
71
72 - int
73
74 - timeout
75
76 - Return from ioctl after timeout ms with errorcode when no message
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -030077 was received