blob: 7ddbce6bcd7ee64ccf6e94fbe9bacf2acbbf7094 [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
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -03009NAME
10====
Markus Heiser5377d912016-06-30 15:18:56 +020011
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030012FE_DISEQC_RECV_SLAVE_REPLY - Receives reply from a DiSEqC 2.0 command
Markus Heiser5377d912016-06-30 15:18:56 +020013
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030014SYNOPSIS
Markus Heiser5377d912016-06-30 15:18:56 +020015========
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
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030019
20ARGUMENTS
Markus Heiser5377d912016-06-30 15:18:56 +020021=========
22
23``fd``
24 File descriptor returned by :ref:`open() <frontend_f_open>`.
25
26``request``
27 FE_DISEQC_RECV_SLAVE_REPLY
28
29``argp``
30 pointer to struct
31 :ref:`dvb_diseqc_slave_reply <dvb-diseqc-slave-reply>`
32
33
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030034DESCRIPTION
Markus Heiser5377d912016-06-30 15:18:56 +020035===========
36
37Receives reply from a DiSEqC 2.0 command.
38
Markus Heiser5377d912016-06-30 15:18:56 +020039.. _dvb-diseqc-slave-reply:
40
Mauro Carvalho Chehabfc833982016-07-05 11:36:55 -030041struct dvb_diseqc_slave_reply
42-----------------------------
43
Markus Heiser5377d912016-06-30 15:18:56 +020044.. flat-table:: struct dvb_diseqc_slave_reply
45 :header-rows: 0
46 :stub-columns: 0
47 :widths: 1 1 2
48
49
50 - .. row 1
51
52 - uint8_t
53
54 - msg[4]
55
56 - DiSEqC message (framing, data[3])
57
58 - .. row 2
59
60 - uint8_t
61
62 - msg_len
63
64 - Length of the DiSEqC message. Valid values are 0 to 4, where 0
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -030065 means no msg
Markus Heiser5377d912016-06-30 15:18:56 +020066
67 - .. row 3
68
69 - int
70
71 - timeout
72
73 - Return from ioctl after timeout ms with errorcode when no message
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -030074 was received
Mauro Carvalho Chehabfc833982016-07-05 11:36:55 -030075
76RETURN VALUE
77============
78
79On success 0 is returned, on error -1 and the ``errno`` variable is set
80appropriately. The generic error codes are described at the
81:ref:`Generic Error Codes <gen-errors>` chapter.