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 10
NAME
====
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
SYNOPSIS
15 16
========

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

19 20

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

``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>`


34
DESCRIPTION
35 36 37 38 39 40 41 42 43 44 45
===========

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:

46 47 48
struct dvb_frontend_info
========================

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
.. flat-table:: struct dvb_frontend_info
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 1 2


    -  .. row 1

       -  char

       -  name[128]

       -  Name of the frontend

    -  .. row 2

       -  fe_type_t

       -  type

       -  **DEPRECATED**. DVBv3 type. Should not be used on modern programs,
70 71
	  as a frontend may have more than one type. So, the DVBv5 API
	  should be used instead to enumerate and select the frontend type.
72 73 74 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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175

    -  .. 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


NOTE: The frequencies are specified in Hz for Terrestrial and Cable
systems. They're specified in kHz for Satellite systems


.. _fe-caps-t:

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

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


.. _fe-caps:

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


    -  .. row 1

       -  ID

       -  Description

    -  .. row 2

       -  .. _`FE-IS-STUPID`:

176
	  ``FE_IS_STUPID``
177 178

       -  There's something wrong at the frontend, and it can't report its
179
	  capabilities
180 181 182 183 184

    -  .. row 3

       -  .. _`FE-CAN-INVERSION-AUTO`:

185
	  ``FE_CAN_INVERSION_AUTO``
186 187 188 189 190 191 192

       -  The frontend is capable of auto-detecting inversion

    -  .. row 4

       -  .. _`FE-CAN-FEC-1-2`:

193
	  ``FE_CAN_FEC_1_2``
194 195 196 197 198 199 200

       -  The frontend supports FEC 1/2

    -  .. row 5

       -  .. _`FE-CAN-FEC-2-3`:

201
	  ``FE_CAN_FEC_2_3``
202 203 204 205 206 207 208

       -  The frontend supports FEC 2/3

    -  .. row 6

       -  .. _`FE-CAN-FEC-3-4`:

209
	  ``FE_CAN_FEC_3_4``
210 211 212 213 214 215 216

       -  The frontend supports FEC 3/4

    -  .. row 7

       -  .. _`FE-CAN-FEC-4-5`:

217
	  ``FE_CAN_FEC_4_5``
218 219 220 221 222 223 224

       -  The frontend supports FEC 4/5

    -  .. row 8

       -  .. _`FE-CAN-FEC-5-6`:

225
	  ``FE_CAN_FEC_5_6``
226 227 228 229 230 231 232

       -  The frontend supports FEC 5/6

    -  .. row 9

       -  .. _`FE-CAN-FEC-6-7`:

233
	  ``FE_CAN_FEC_6_7``
234 235 236 237 238 239 240

       -  The frontend supports FEC 6/7

    -  .. row 10

       -  .. _`FE-CAN-FEC-7-8`:

241
	  ``FE_CAN_FEC_7_8``
242 243 244 245 246 247 248

       -  The frontend supports FEC 7/8

    -  .. row 11

       -  .. _`FE-CAN-FEC-8-9`:

249
	  ``FE_CAN_FEC_8_9``
250 251 252 253 254 255 256

       -  The frontend supports FEC 8/9

    -  .. row 12

       -  .. _`FE-CAN-FEC-AUTO`:

257
	  ``FE_CAN_FEC_AUTO``
258 259 260 261 262 263 264

       -  The frontend can autodetect FEC.

    -  .. row 13

       -  .. _`FE-CAN-QPSK`:

265
	  ``FE_CAN_QPSK``
266 267 268 269 270 271 272

       -  The frontend supports QPSK modulation

    -  .. row 14

       -  .. _`FE-CAN-QAM-16`:

273
	  ``FE_CAN_QAM_16``
274 275 276 277 278 279 280

       -  The frontend supports 16-QAM modulation

    -  .. row 15

       -  .. _`FE-CAN-QAM-32`:

281
	  ``FE_CAN_QAM_32``
282 283 284 285 286 287 288

       -  The frontend supports 32-QAM modulation

    -  .. row 16

       -  .. _`FE-CAN-QAM-64`:

289
	  ``FE_CAN_QAM_64``
290 291 292 293 294 295 296

       -  The frontend supports 64-QAM modulation

    -  .. row 17

       -  .. _`FE-CAN-QAM-128`:

297
	  ``FE_CAN_QAM_128``
298 299 300 301 302 303 304

       -  The frontend supports 128-QAM modulation

    -  .. row 18

       -  .. _`FE-CAN-QAM-256`:

305
	  ``FE_CAN_QAM_256``
306 307 308 309 310 311 312

       -  The frontend supports 256-QAM modulation

    -  .. row 19

       -  .. _`FE-CAN-QAM-AUTO`:

313
	  ``FE_CAN_QAM_AUTO``
314 315 316 317 318 319 320

       -  The frontend can autodetect modulation

    -  .. row 20

       -  .. _`FE-CAN-TRANSMISSION-MODE-AUTO`:

321
	  ``FE_CAN_TRANSMISSION_MODE_AUTO``
322 323 324 325 326 327 328

       -  The frontend can autodetect the transmission mode

    -  .. row 21

       -  .. _`FE-CAN-BANDWIDTH-AUTO`:

329
	  ``FE_CAN_BANDWIDTH_AUTO``
330 331 332 333 334 335 336

       -  The frontend can autodetect the bandwidth

    -  .. row 22

       -  .. _`FE-CAN-GUARD-INTERVAL-AUTO`:

337
	  ``FE_CAN_GUARD_INTERVAL_AUTO``
338 339 340 341 342 343 344

       -  The frontend can autodetect the guard interval

    -  .. row 23

       -  .. _`FE-CAN-HIERARCHY-AUTO`:

345
	  ``FE_CAN_HIERARCHY_AUTO``
346 347 348 349 350 351 352

       -  The frontend can autodetect hierarch

    -  .. row 24

       -  .. _`FE-CAN-8VSB`:

353
	  ``FE_CAN_8VSB``
354 355 356 357 358 359 360

       -  The frontend supports 8-VSB modulation

    -  .. row 25

       -  .. _`FE-CAN-16VSB`:

361
	  ``FE_CAN_16VSB``
362 363 364 365 366 367 368

       -  The frontend supports 16-VSB modulation

    -  .. row 26

       -  .. _`FE-HAS-EXTENDED-CAPS`:

369
	  ``FE_HAS_EXTENDED_CAPS``
370 371 372 373 374 375 376

       -  Currently, unused

    -  .. row 27

       -  .. _`FE-CAN-MULTISTREAM`:

377
	  ``FE_CAN_MULTISTREAM``
378 379 380 381 382 383 384

       -  The frontend supports multistream filtering

    -  .. row 28

       -  .. _`FE-CAN-TURBO-FEC`:

385
	  ``FE_CAN_TURBO_FEC``
386 387 388 389 390 391 392

       -  The frontend supports turbo FEC modulation

    -  .. row 29

       -  .. _`FE-CAN-2G-MODULATION`:

393
	  ``FE_CAN_2G_MODULATION``
394 395 396 397 398 399 400

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

    -  .. row 30

       -  .. _`FE-NEEDS-BENDING`:

401
	  ``FE_NEEDS_BENDING``
402 403 404 405 406 407 408

       -  Not supported anymore, don't use it

    -  .. row 31

       -  .. _`FE-CAN-RECOVER`:

409
	  ``FE_CAN_RECOVER``
410 411 412 413 414 415 416

       -  The frontend can recover from a cable unplug automatically

    -  .. row 32

       -  .. _`FE-CAN-MUTE-TS`:

417
	  ``FE_CAN_MUTE_TS``
418 419

       -  The frontend can stop spurious TS data output
420 421 422 423 424 425 426

RETURN VALUE
============

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.