fe-get-info.rst 7.1 KB
Newer Older
1 2 3 4 5 6 7 8
.. -*- coding: utf-8; mode: rst -*-

.. _FE_GET_INFO:

*****************
ioctl FE_GET_INFO
*****************

9
Name
10
====
11

12
FE_GET_INFO - Query DVB frontend capabilities and returns information about the - front-end. This call only requires read-only access to the device
13

14 15

Synopsis
16 17
========

18
.. cpp:function:: int ioctl( int fd, int request, struct dvb_frontend_info *argp )
19

20

21
Arguments
22 23 24 25 26 27 28 29 30 31 32 33 34
=========

``fd``
    File descriptor returned by :ref:`open() <frontend_f_open>`.

``request``
    FE_GET_INFO

``argp``
    pointer to struct struct
    :ref:`dvb_frontend_info <dvb-frontend-info>`


35
Description
36 37 38 39 40 41 42 43 44 45 46
===========

All DVB frontend devices support the ``FE_GET_INFO`` ioctl. It is used
to identify kernel devices compatible with this specification and to
obtain information about driver and hardware capabilities. The ioctl
takes a pointer to dvb_frontend_info which is filled by the driver.
When the driver is not compatible with this specification the ioctl
returns an error.

.. _dvb-frontend-info:

47 48 49
struct dvb_frontend_info
========================

50 51
.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|

52 53 54 55 56 57 58 59 60 61
.. flat-table:: struct dvb_frontend_info
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 1 2


    -  .. row 1

       -  char

62
       -  name[128]
63 64 65 66 67 68 69 70 71 72

       -  Name of the frontend

    -  .. row 2

       -  fe_type_t

       -  type

       -  **DEPRECATED**. DVBv3 type. Should not be used on modern programs,
73 74
	  as a frontend may have more than one type. So, the DVBv5 API
	  should be used instead to enumerate and select the frontend type.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148

    -  .. row 3

       -  uint32_t

       -  frequency_min

       -  Minimal frequency supported by the frontend

    -  .. row 4

       -  uint32_t

       -  frequency_max

       -  Maximal frequency supported by the frontend

    -  .. row 5

       -  uint32_t

       -  frequency_stepsize

       -  Frequency step - all frequencies are multiple of this value

    -  .. row 6

       -  uint32_t

       -  frequency_tolerance

       -  Tolerance of the frequency

    -  .. row 7

       -  uint32_t

       -  symbol_rate_min

       -  Minimal symbol rate (for Cable/Satellite systems), in bauds

    -  .. row 8

       -  uint32_t

       -  symbol_rate_max

       -  Maximal symbol rate (for Cable/Satellite systems), in bauds

    -  .. row 9

       -  uint32_t

       -  symbol_rate_tolerance

       -  Maximal symbol rate tolerance, in ppm

    -  .. row 10

       -  uint32_t

       -  notifier_delay

       -  **DEPRECATED**. Not used by any driver.

    -  .. row 11

       -  enum :ref:`fe_caps <fe-caps>`

       -  caps

       -  Capabilities supported by the frontend


149 150 151
.. note::

   The frequencies are specified in Hz for Terrestrial and Cable
152
   systems. They're specified in kHz for Satellite systems
153 154 155 156 157 158 159 160 161 162


.. _fe-caps-t:

frontend capabilities
=====================

Capabilities describe what a frontend can do. Some capabilities are
supported only on some specific frontend types.

163
.. tabularcolumns:: |p{6.5cm}|p{11.0cm}|
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179

.. _fe-caps:

.. flat-table:: enum fe_caps
    :header-rows:  1
    :stub-columns: 0


    -  .. row 1

       -  ID

       -  Description

    -  .. row 2

180
       -  .. _FE-IS-STUPID:
181

182
	  ``FE_IS_STUPID``
183 184

       -  There's something wrong at the frontend, and it can't report its
185
	  capabilities
186 187 188

    -  .. row 3

189
       -  .. _FE-CAN-INVERSION-AUTO:
190

191
	  ``FE_CAN_INVERSION_AUTO``
192 193 194 195 196

       -  The frontend is capable of auto-detecting inversion

    -  .. row 4

197
       -  .. _FE-CAN-FEC-1-2:
198

199
	  ``FE_CAN_FEC_1_2``
200 201 202 203 204

       -  The frontend supports FEC 1/2

    -  .. row 5

205
       -  .. _FE-CAN-FEC-2-3:
206

207
	  ``FE_CAN_FEC_2_3``
208 209 210 211 212

       -  The frontend supports FEC 2/3

    -  .. row 6

213
       -  .. _FE-CAN-FEC-3-4:
214

215
	  ``FE_CAN_FEC_3_4``
216 217 218 219 220

       -  The frontend supports FEC 3/4

    -  .. row 7

221
       -  .. _FE-CAN-FEC-4-5:
222

223
	  ``FE_CAN_FEC_4_5``
224 225 226 227 228

       -  The frontend supports FEC 4/5

    -  .. row 8

229
       -  .. _FE-CAN-FEC-5-6:
230

231
	  ``FE_CAN_FEC_5_6``
232 233 234 235 236

       -  The frontend supports FEC 5/6

    -  .. row 9

237
       -  .. _FE-CAN-FEC-6-7:
238

239
	  ``FE_CAN_FEC_6_7``
240 241 242 243 244

       -  The frontend supports FEC 6/7

    -  .. row 10

245
       -  .. _FE-CAN-FEC-7-8:
246

247
	  ``FE_CAN_FEC_7_8``
248 249 250 251 252

       -  The frontend supports FEC 7/8

    -  .. row 11

253
       -  .. _FE-CAN-FEC-8-9:
254

255
	  ``FE_CAN_FEC_8_9``
256 257 258 259 260

       -  The frontend supports FEC 8/9

    -  .. row 12

261
       -  .. _FE-CAN-FEC-AUTO:
262

263
	  ``FE_CAN_FEC_AUTO``
264 265 266 267 268

       -  The frontend can autodetect FEC.

    -  .. row 13

269
       -  .. _FE-CAN-QPSK:
270

271
	  ``FE_CAN_QPSK``
272 273 274 275 276

       -  The frontend supports QPSK modulation

    -  .. row 14

277
       -  .. _FE-CAN-QAM-16:
278

279
	  ``FE_CAN_QAM_16``
280 281 282 283 284

       -  The frontend supports 16-QAM modulation

    -  .. row 15

285
       -  .. _FE-CAN-QAM-32:
286

287
	  ``FE_CAN_QAM_32``
288 289 290 291 292

       -  The frontend supports 32-QAM modulation

    -  .. row 16

293
       -  .. _FE-CAN-QAM-64:
294

295
	  ``FE_CAN_QAM_64``
296 297 298 299 300

       -  The frontend supports 64-QAM modulation

    -  .. row 17

301
       -  .. _FE-CAN-QAM-128:
302

303
	  ``FE_CAN_QAM_128``
304 305 306 307 308

       -  The frontend supports 128-QAM modulation

    -  .. row 18

309
       -  .. _FE-CAN-QAM-256:
310

311
	  ``FE_CAN_QAM_256``
312 313 314 315 316

       -  The frontend supports 256-QAM modulation

    -  .. row 19

317
       -  .. _FE-CAN-QAM-AUTO:
318

319
	  ``FE_CAN_QAM_AUTO``
320 321 322 323 324

       -  The frontend can autodetect modulation

    -  .. row 20

325
       -  .. _FE-CAN-TRANSMISSION-MODE-AUTO:
326

327
	  ``FE_CAN_TRANSMISSION_MODE_AUTO``
328 329 330 331 332

       -  The frontend can autodetect the transmission mode

    -  .. row 21

333
       -  .. _FE-CAN-BANDWIDTH-AUTO:
334

335
	  ``FE_CAN_BANDWIDTH_AUTO``
336 337 338 339 340

       -  The frontend can autodetect the bandwidth

    -  .. row 22

341
       -  .. _FE-CAN-GUARD-INTERVAL-AUTO:
342

343
	  ``FE_CAN_GUARD_INTERVAL_AUTO``
344 345 346 347 348

       -  The frontend can autodetect the guard interval

    -  .. row 23

349
       -  .. _FE-CAN-HIERARCHY-AUTO:
350

351
	  ``FE_CAN_HIERARCHY_AUTO``
352 353 354 355 356

       -  The frontend can autodetect hierarch

    -  .. row 24

357
       -  .. _FE-CAN-8VSB:
358

359
	  ``FE_CAN_8VSB``
360 361 362 363 364

       -  The frontend supports 8-VSB modulation

    -  .. row 25

365
       -  .. _FE-CAN-16VSB:
366

367
	  ``FE_CAN_16VSB``
368 369 370 371 372

       -  The frontend supports 16-VSB modulation

    -  .. row 26

373
       -  .. _FE-HAS-EXTENDED-CAPS:
374

375
	  ``FE_HAS_EXTENDED_CAPS``
376 377 378 379 380

       -  Currently, unused

    -  .. row 27

381
       -  .. _FE-CAN-MULTISTREAM:
382

383
	  ``FE_CAN_MULTISTREAM``
384 385 386 387 388

       -  The frontend supports multistream filtering

    -  .. row 28

389
       -  .. _FE-CAN-TURBO-FEC:
390

391
	  ``FE_CAN_TURBO_FEC``
392 393 394 395 396

       -  The frontend supports turbo FEC modulation

    -  .. row 29

397
       -  .. _FE-CAN-2G-MODULATION:
398

399
	  ``FE_CAN_2G_MODULATION``
400 401 402 403 404

       -  The frontend supports "2nd generation modulation" (DVB-S2/T2)>

    -  .. row 30

405
       -  .. _FE-NEEDS-BENDING:
406

407
	  ``FE_NEEDS_BENDING``
408 409 410 411 412

       -  Not supported anymore, don't use it

    -  .. row 31

413
       -  .. _FE-CAN-RECOVER:
414

415
	  ``FE_CAN_RECOVER``
416 417 418 419 420

       -  The frontend can recover from a cable unplug automatically

    -  .. row 32

421
       -  .. _FE-CAN-MUTE-TS:
422

423
	  ``FE_CAN_MUTE_TS``
424 425

       -  The frontend can stop spurious TS data output
426

427 428

Return Value
429 430 431 432 433
============

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.