Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _FE_DISEQC_SEND_MASTER_CMD: | |
4 | ||
5 | ******************************* | |
6 | ioctl FE_DISEQC_SEND_MASTER_CMD | |
7 | ******************************* | |
8 | ||
9 | *man FE_DISEQC_SEND_MASTER_CMD(2)* | |
10 | ||
11 | Sends a DiSEqC command | |
12 | ||
13 | ||
14 | Synopsis | |
15 | ======== | |
16 | ||
17 | .. c:function:: int ioctl( int fd, int request, struct dvb_diseqc_master_cmd *argp ) | |
18 | ||
19 | Arguments | |
20 | ========= | |
21 | ||
22 | ``fd`` | |
23 | File descriptor returned by :ref:`open() <frontend_f_open>`. | |
24 | ||
25 | ``request`` | |
26 | FE_DISEQC_SEND_MASTER_CMD | |
27 | ||
28 | ``argp`` | |
29 | pointer to struct | |
30 | :ref:`dvb_diseqc_master_cmd <dvb-diseqc-master-cmd>` | |
31 | ||
32 | ||
33 | Description | |
34 | =========== | |
35 | ||
36 | Sends a DiSEqC command to the antenna subsystem. | |
37 | ||
38 | RETURN VALUE | |
39 | ||
40 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
41 | appropriately. The generic error codes are described at the | |
42 | :ref:`Generic Error Codes <gen-errors>` chapter. | |
43 | ||
44 | ||
45 | .. _dvb-diseqc-master-cmd: | |
46 | ||
47 | .. flat-table:: struct dvb_diseqc_master_cmd | |
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[6] | |
58 | ||
59 | - DiSEqC message (framing, address, command, data[3]) | |
60 | ||
61 | - .. row 2 | |
62 | ||
63 | - uint8_t | |
64 | ||
65 | - msg_len | |
66 | ||
67 | - Length of the DiSEqC message. Valid values are 3 to 6 | |
68 | ||
69 | ||
70 | ||
71 | ||
72 | .. ------------------------------------------------------------------------------ | |
73 | .. This file was automatically converted from DocBook-XML with the dbxml | |
74 | .. library (https://github.com/return42/sphkerneldoc). The origin XML comes | |
75 | .. from the linux kernel, refer to: | |
76 | .. | |
77 | .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook | |
78 | .. ------------------------------------------------------------------------------ |