Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _FE_DISEQC_RECV_SLAVE_REPLY: |
| 4 | |
| 5 | ******************************** |
| 6 | ioctl FE_DISEQC_RECV_SLAVE_REPLY |
| 7 | ******************************** |
| 8 | |
| 9 | *man FE_DISEQC_RECV_SLAVE_REPLY(2)* |
| 10 | |
| 11 | Receives reply from a DiSEqC 2.0 command |
| 12 | |
| 13 | |
| 14 | Synopsis |
| 15 | ======== |
| 16 | |
Mauro Carvalho Chehab | b7e67f6 | 2016-07-02 09:49:16 -0300 | [diff] [blame] | 17 | .. cpp:function:: int ioctl( int fd, int request, struct dvb_diseqc_slave_reply *argp ) |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 18 | |
| 19 | Arguments |
| 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 | |
| 33 | Description |
| 34 | =========== |
| 35 | |
| 36 | Receives reply from a DiSEqC 2.0 command. |
| 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-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 |
| 68 | means no msg |
| 69 | |
| 70 | - .. row 3 |
| 71 | |
| 72 | - int |
| 73 | |
| 74 | - timeout |
| 75 | |
| 76 | - Return from ioctl after timeout ms with errorcode when no message |
| 77 | was received |