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 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 9 | NAME |
| 10 | ==== |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 11 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 12 | FE_DISEQC_RECV_SLAVE_REPLY - Receives reply from a DiSEqC 2.0 command |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 14 | SYNOPSIS |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 19 | |
| 20 | ARGUMENTS |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 21 | ========= |
| 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 Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 34 | DESCRIPTION |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 35 | =========== |
| 36 | |
| 37 | Receives reply from a DiSEqC 2.0 command. |
| 38 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 39 | .. _dvb-diseqc-slave-reply: |
| 40 | |
Mauro Carvalho Chehab | fc83398 | 2016-07-05 11:36:55 -0300 | [diff] [blame^] | 41 | struct dvb_diseqc_slave_reply |
| 42 | ----------------------------- |
| 43 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 44 | .. 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 Chehab | 0579e6e | 2016-07-04 16:25:48 -0300 | [diff] [blame] | 65 | means no msg |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 66 | |
| 67 | - .. row 3 |
| 68 | |
| 69 | - int |
| 70 | |
| 71 | - timeout |
| 72 | |
| 73 | - Return from ioctl after timeout ms with errorcode when no message |
Mauro Carvalho Chehab | 0579e6e | 2016-07-04 16:25:48 -0300 | [diff] [blame] | 74 | was received |
Mauro Carvalho Chehab | fc83398 | 2016-07-05 11:36:55 -0300 | [diff] [blame^] | 75 | |
| 76 | RETURN VALUE |
| 77 | ============ |
| 78 | |
| 79 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 80 | appropriately. The generic error codes are described at the |
| 81 | :ref:`Generic Error Codes <gen-errors>` chapter. |