2016-06-30 13:18:56 +00:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _FE_DISEQC_RECV_SLAVE_REPLY:
|
|
|
|
|
|
|
|
********************************
|
|
|
|
ioctl FE_DISEQC_RECV_SLAVE_REPLY
|
|
|
|
********************************
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Name
|
2016-07-05 10:58:48 +00:00
|
|
|
====
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
FE_DISEQC_RECV_SLAVE_REPLY - Receives reply from a DiSEqC 2.0 command
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
|
|
|
|
Synopsis
|
2016-06-30 13:18:56 +00:00
|
|
|
========
|
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
.. c:function:: int ioctl( int fd, FE_DISEQC_RECV_SLAVE_REPLY, struct dvb_diseqc_slave_reply *argp )
|
|
|
|
:name: FE_DISEQC_RECV_SLAVE_REPLY
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Arguments
|
2016-06-30 13:18:56 +00:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by :ref:`open() <frontend_f_open>`.
|
|
|
|
|
|
|
|
``argp``
|
|
|
|
pointer to struct
|
2016-08-29 20:37:59 +00:00
|
|
|
:c:type:`dvb_diseqc_slave_reply`
|
2016-06-30 13:18:56 +00:00
|
|
|
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Description
|
2016-06-30 13:18:56 +00:00
|
|
|
===========
|
|
|
|
|
|
|
|
Receives reply from a DiSEqC 2.0 command.
|
|
|
|
|
2016-08-29 20:37:59 +00:00
|
|
|
.. c:type:: dvb_diseqc_slave_reply
|
2016-06-30 13:18:56 +00:00
|
|
|
|
[media] docs-rst: add tabularcolumns to all tables
LaTeX doesn't handle too well auto-width on tables, and ReST
markup requires an special tag to give it the needed hints.
As we're using A4 paper, we have 17cm of useful spaces. As
most media tables have widths, let's use it to generate the
needed via the following perl script:
my ($line_size, $table_header, $has_cols) = (17.5, 0, 0);
my $out;
my $header = "";
my @widths = ();
sub round { $_[0] > 0 ? int($_[0] + .5) : -int(-$_[0] + .5) }
while (<>) {
if (!$table_header) {
$has_cols = 1 if (m/..\s+tabularcolumns::/);
if (m/..\s+flat-table::/) {
$table_header = 1;
$header = $_;
next;
}
$out .= $_;
next;
}
$header .= $_;
@widths = split(/ /, $1) if (m/:widths:\s+(.*)/);
if (m/^\n$/) {
if (!$has_cols && @widths) {
my ($tot, $t, $i) = (0, 0, 0);
foreach my $v(@widths) { $tot += $v; };
$out .= ".. tabularcolumns:: |";
for ($i = 0; $i < scalar @widths - 1; $i++) {
my $v = $widths[$i];
my $w = round(10 * ($v * $line_size) / $tot) / 10;
$out .= sprintf "p{%.1fcm}|", $w;
$t += $w;
}
my $w = $line_size - $t;
$out .= sprintf "p{%.1fcm}|\n\n", $w;
}
$out .= $header;
$table_header = 0;
$has_cols = 0;
$header = "";
@widths = ();
}
}
print $out;
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-08-17 11:14:19 +00:00
|
|
|
.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
|
|
|
|
|
2016-06-30 13:18:56 +00:00
|
|
|
.. flat-table:: struct dvb_diseqc_slave_reply
|
|
|
|
:header-rows: 0
|
|
|
|
:stub-columns: 0
|
|
|
|
:widths: 1 1 2
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- uint8_t
|
|
|
|
|
2016-07-13 11:43:30 +00:00
|
|
|
- msg[4]
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-13 11:43:30 +00:00
|
|
|
- DiSEqC message (framing, data[3])
|
2016-06-30 13:18:56 +00:00
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
|
|
|
- uint8_t
|
|
|
|
|
|
|
|
- msg_len
|
|
|
|
|
|
|
|
- Length of the DiSEqC message. Valid values are 0 to 4, where 0
|
2016-07-04 19:25:48 +00:00
|
|
|
means no msg
|
2016-06-30 13:18:56 +00:00
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
|
|
|
- int
|
|
|
|
|
|
|
|
- timeout
|
|
|
|
|
|
|
|
- Return from ioctl after timeout ms with errorcode when no message
|
2016-07-04 19:25:48 +00:00
|
|
|
was received
|
2016-07-05 14:36:55 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
|
|
|
|
Return Value
|
2016-07-05 14:36:55 +00:00
|
|
|
============
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|