12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766 |
- <title>DVB Frontend API</title>
- <para>The DVB frontend device controls the tuner and DVB demodulator
- hardware. It can be accessed through <emphasis
- role="tt">/dev/dvb/adapter0/frontend0</emphasis>. Data types and and
- ioctl definitions can be accessed by including <emphasis
- role="tt">linux/dvb/frontend.h</emphasis> in your application.</para>
- <para>DVB frontends come in three varieties: DVB-S (satellite), DVB-C
- (cable) and DVB-T (terrestrial). Transmission via the internet (DVB-IP)
- is not yet handled by this API but a future extension is possible. For
- DVB-S the frontend device also supports satellite equipment control
- (SEC) via DiSEqC and V-SEC protocols. The DiSEqC (digital SEC)
- specification is available from
- <ulink url="http://www.eutelsat.com/satellites/4_5_5.html">Eutelsat</ulink>.</para>
- <para>Note that the DVB API may also be used for MPEG decoder-only PCI
- cards, in which case there exists no frontend device.</para>
- <section id="frontend_types">
- <title>Frontend Data Types</title>
- <section id="frontend_type">
- <title>frontend type</title>
- <para>For historical reasons frontend types are named after the type of modulation used in
- transmission.</para>
- <programlisting>
- typedef enum fe_type {
- FE_QPSK, /⋆ DVB-S ⋆/
- FE_QAM, /⋆ DVB-C ⋆/
- FE_OFDM /⋆ DVB-T ⋆/
- } fe_type_t;
- </programlisting>
- </section>
- <section id="frontend_caps">
- <title>frontend capabilities</title>
- <para>Capabilities describe what a frontend can do. Some capabilities can only be supported for
- a specific frontend type.</para>
- <programlisting>
- typedef enum fe_caps {
- FE_IS_STUPID = 0,
- FE_CAN_INVERSION_AUTO = 0x1,
- FE_CAN_FEC_1_2 = 0x2,
- FE_CAN_FEC_2_3 = 0x4,
- FE_CAN_FEC_3_4 = 0x8,
- FE_CAN_FEC_4_5 = 0x10,
- FE_CAN_FEC_5_6 = 0x20,
- FE_CAN_FEC_6_7 = 0x40,
- FE_CAN_FEC_7_8 = 0x80,
- FE_CAN_FEC_8_9 = 0x100,
- FE_CAN_FEC_AUTO = 0x200,
- FE_CAN_QPSK = 0x400,
- FE_CAN_QAM_16 = 0x800,
- FE_CAN_QAM_32 = 0x1000,
- FE_CAN_QAM_64 = 0x2000,
- FE_CAN_QAM_128 = 0x4000,
- FE_CAN_QAM_256 = 0x8000,
- FE_CAN_QAM_AUTO = 0x10000,
- FE_CAN_TRANSMISSION_MODE_AUTO = 0x20000,
- FE_CAN_BANDWIDTH_AUTO = 0x40000,
- FE_CAN_GUARD_INTERVAL_AUTO = 0x80000,
- FE_CAN_HIERARCHY_AUTO = 0x100000,
- FE_CAN_MUTE_TS = 0x80000000,
- FE_CAN_CLEAN_SETUP = 0x40000000
- } fe_caps_t;
- </programlisting>
- </section>
- <section id="frontend_info">
- <title>frontend information</title>
- <para>Information about the frontend ca be queried with FE_GET_INFO.</para>
- <programlisting>
- struct dvb_frontend_info {
- char name[128];
- fe_type_t type;
- uint32_t frequency_min;
- uint32_t frequency_max;
- uint32_t frequency_stepsize;
- uint32_t frequency_tolerance;
- uint32_t symbol_rate_min;
- uint32_t symbol_rate_max;
- uint32_t symbol_rate_tolerance; /⋆ ppm ⋆/
- uint32_t notifier_delay; /⋆ ms ⋆/
- fe_caps_t caps;
- };
- </programlisting>
- </section>
- <section id="frontend_diseqc">
- <title>diseqc master command</title>
- <para>A message sent from the frontend to DiSEqC capable equipment.</para>
- <programlisting>
- struct dvb_diseqc_master_cmd {
- uint8_t msg [6]; /⋆ { framing, address, command, data[3] } ⋆/
- uint8_t msg_len; /⋆ valid values are 3...6 ⋆/
- };
- </programlisting>
- </section>
- <section role="subsection">
- <title>diseqc slave reply</title>
- <para>A reply to the frontend from DiSEqC 2.0 capable equipment.</para>
- <programlisting>
- struct dvb_diseqc_slave_reply {
- uint8_t msg [4]; /⋆ { framing, data [3] } ⋆/
- uint8_t msg_len; /⋆ valid values are 0...4, 0 means no msg ⋆/
- int timeout; /⋆ return from ioctl after timeout ms with ⋆/
- }; /⋆ errorcode when no message was received ⋆/
- </programlisting>
- </section>
- <section id="frontend_diseqc_slave_reply">
- <title>diseqc slave reply</title>
- <para>The voltage is usually used with non-DiSEqC capable LNBs to switch the polarzation
- (horizontal/vertical). When using DiSEqC epuipment this voltage has to be switched
- consistently to the DiSEqC commands as described in the DiSEqC spec.</para>
- <programlisting>
- typedef enum fe_sec_voltage {
- SEC_VOLTAGE_13,
- SEC_VOLTAGE_18
- } fe_sec_voltage_t;
- </programlisting>
- </section>
- <section id="frontend_sec_tone">
- <title>SEC continuous tone</title>
- <para>The continous 22KHz tone is usually used with non-DiSEqC capable LNBs to switch the
- high/low band of a dual-band LNB. When using DiSEqC epuipment this voltage has to
- be switched consistently to the DiSEqC commands as described in the DiSEqC
- spec.</para>
- <programlisting>
- typedef enum fe_sec_tone_mode {
- SEC_TONE_ON,
- SEC_TONE_OFF
- } fe_sec_tone_mode_t;
- </programlisting>
- </section>
- <section id="frontend_sec_burst">
- <title>SEC tone burst</title>
- <para>The 22KHz tone burst is usually used with non-DiSEqC capable switches to select
- between two connected LNBs/satellites. When using DiSEqC epuipment this voltage has to
- be switched consistently to the DiSEqC commands as described in the DiSEqC
- spec.</para>
- <programlisting>
- typedef enum fe_sec_mini_cmd {
- SEC_MINI_A,
- SEC_MINI_B
- } fe_sec_mini_cmd_t;
- </programlisting>
- <para></para>
- </section>
- <section id="frontend_status">
- <title>frontend status</title>
- <para>Several functions of the frontend device use the fe_status data type defined
- by</para>
- <programlisting>
- typedef enum fe_status {
- FE_HAS_SIGNAL = 0x01, /⋆ found something above the noise level ⋆/
- FE_HAS_CARRIER = 0x02, /⋆ found a DVB signal ⋆/
- FE_HAS_VITERBI = 0x04, /⋆ FEC is stable ⋆/
- FE_HAS_SYNC = 0x08, /⋆ found sync bytes ⋆/
- FE_HAS_LOCK = 0x10, /⋆ everything's working... ⋆/
- FE_TIMEDOUT = 0x20, /⋆ no lock within the last ~2 seconds ⋆/
- FE_REINIT = 0x40 /⋆ frontend was reinitialized, ⋆/
- } fe_status_t; /⋆ application is recommned to reset ⋆/
- </programlisting>
- <para>to indicate the current state and/or state changes of the frontend hardware.
- </para>
- </section>
- <section id="frontend_params">
- <title>frontend parameters</title>
- <para>The kind of parameters passed to the frontend device for tuning depend on
- the kind of hardware you are using. All kinds of parameters are combined as an
- union in the FrontendParameters structure:</para>
- <programlisting>
- struct dvb_frontend_parameters {
- uint32_t frequency; /⋆ (absolute) frequency in Hz for QAM/OFDM ⋆/
- /⋆ intermediate frequency in kHz for QPSK ⋆/
- fe_spectral_inversion_t inversion;
- union {
- struct dvb_qpsk_parameters qpsk;
- struct dvb_qam_parameters qam;
- struct dvb_ofdm_parameters ofdm;
- } u;
- };
- </programlisting>
- <para>For satellite QPSK frontends you have to use the <constant>QPSKParameters</constant> member defined by</para>
- <programlisting>
- struct dvb_qpsk_parameters {
- uint32_t symbol_rate; /⋆ symbol rate in Symbols per second ⋆/
- fe_code_rate_t fec_inner; /⋆ forward error correction (see above) ⋆/
- };
- </programlisting>
- <para>for cable QAM frontend you use the <constant>QAMParameters</constant> structure</para>
- <programlisting>
- struct dvb_qam_parameters {
- uint32_t symbol_rate; /⋆ symbol rate in Symbols per second ⋆/
- fe_code_rate_t fec_inner; /⋆ forward error correction (see above) ⋆/
- fe_modulation_t modulation; /⋆ modulation type (see above) ⋆/
- };
- </programlisting>
- <para>DVB-T frontends are supported by the <constant>OFDMParamters</constant> structure
- </para>
- <programlisting>
- struct dvb_ofdm_parameters {
- fe_bandwidth_t bandwidth;
- fe_code_rate_t code_rate_HP; /⋆ high priority stream code rate ⋆/
- fe_code_rate_t code_rate_LP; /⋆ low priority stream code rate ⋆/
- fe_modulation_t constellation; /⋆ modulation type (see above) ⋆/
- fe_transmit_mode_t transmission_mode;
- fe_guard_interval_t guard_interval;
- fe_hierarchy_t hierarchy_information;
- };
- </programlisting>
- <para>In the case of QPSK frontends the <constant>Frequency</constant> field specifies the intermediate
- frequency, i.e. the offset which is effectively added to the local oscillator frequency (LOF) of
- the LNB. The intermediate frequency has to be specified in units of kHz. For QAM and
- OFDM frontends the Frequency specifies the absolute frequency and is given in
- Hz.
- </para>
- <para>The Inversion field can take one of these values:
- </para>
- <programlisting>
- typedef enum fe_spectral_inversion {
- INVERSION_OFF,
- INVERSION_ON,
- INVERSION_AUTO
- } fe_spectral_inversion_t;
- </programlisting>
- <para>It indicates if spectral inversion should be presumed or not. In the automatic setting
- (<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by
- itself.
- </para>
- <para>The possible values for the <constant>FEC_inner</constant> field are
- </para>
- <programlisting>
- typedef enum fe_code_rate {
- FEC_NONE = 0,
- FEC_1_2,
- FEC_2_3,
- FEC_3_4,
- FEC_4_5,
- FEC_5_6,
- FEC_6_7,
- FEC_7_8,
- FEC_8_9,
- FEC_AUTO
- } fe_code_rate_t;
- </programlisting>
- <para>which correspond to error correction rates of 1/2, 2/3, etc., no error correction or auto
- detection.
- </para>
- <para>For cable and terrestrial frontends (QAM and OFDM) one also has to specify the quadrature
- modulation mode which can be one of the following:
- </para>
- <programlisting>
- typedef enum fe_modulation {
- QPSK,
- QAM_16,
- QAM_32,
- QAM_64,
- QAM_128,
- QAM_256,
- QAM_AUTO
- } fe_modulation_t;
- </programlisting>
- <para>Finally, there are several more parameters for OFDM:
- </para>
- <programlisting>
- typedef enum fe_transmit_mode {
- TRANSMISSION_MODE_2K,
- TRANSMISSION_MODE_8K,
- TRANSMISSION_MODE_AUTO
- } fe_transmit_mode_t;
- </programlisting>
- <programlisting>
- typedef enum fe_bandwidth {
- BANDWIDTH_8_MHZ,
- BANDWIDTH_7_MHZ,
- BANDWIDTH_6_MHZ,
- BANDWIDTH_AUTO
- } fe_bandwidth_t;
- </programlisting>
- <programlisting>
- typedef enum fe_guard_interval {
- GUARD_INTERVAL_1_32,
- GUARD_INTERVAL_1_16,
- GUARD_INTERVAL_1_8,
- GUARD_INTERVAL_1_4,
- GUARD_INTERVAL_AUTO
- } fe_guard_interval_t;
- </programlisting>
- <programlisting>
- typedef enum fe_hierarchy {
- HIERARCHY_NONE,
- HIERARCHY_1,
- HIERARCHY_2,
- HIERARCHY_4,
- HIERARCHY_AUTO
- } fe_hierarchy_t;
- </programlisting>
- </section>
- <section id="frontend_events">
- <title>frontend events</title>
- <programlisting>
- struct dvb_frontend_event {
- fe_status_t status;
- struct dvb_frontend_parameters parameters;
- };
- </programlisting>
- </section>
- </section>
- <section id="frontend_fcalls">
- <title>Frontend Function Calls</title>
- <section id="frontend_f_open">
- <title>open()</title>
- <para>DESCRIPTION</para>
- <informaltable><tgroup cols="1"><tbody><row>
- <entry align="char">
- <para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
- for subsequent use. Usually the first thing to do after a successful open is to
- find out the frontend type with FE_GET_INFO.</para>
- <para>The device can be opened in read-only mode, which only allows monitoring of
- device status and statistics, or read/write mode, which allows any kind of use
- (e.g. performing tuning operations.)
- </para>
- <para>In a system with multiple front-ends, it is usually the case that multiple devices
- cannot be open in read/write mode simultaneously. As long as a front-end
- device is opened in read/write mode, other open() calls in read/write mode will
- either fail or block, depending on whether non-blocking or blocking mode was
- specified. A front-end device opened in blocking mode can later be put into
- non-blocking mode (and vice versa) using the F_SETFL command of the fcntl
- system call. This is a standard system call, documented in the Linux manual
- page for fcntl. When an open() call has succeeded, the device will be ready
- for use in the specified mode. This implies that the corresponding hardware is
- powered up, and that other front-ends may have been powered down to make
- that possible.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS</para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int open(const char ⋆deviceName, int flags);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>const char
- *deviceName</para>
- </entry><entry
- align="char">
- <para>Name of specific video device.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int flags</para>
- </entry><entry
- align="char">
- <para>A bit-wise OR of the following flags:</para>
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>O_RDONLY read-only access</para>
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>O_RDWR read/write access</para>
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>O_NONBLOCK open in non-blocking mode</para>
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>(blocking mode is the default)</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>ENODEV</para>
- </entry><entry
- align="char">
- <para>Device driver not loaded/available.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EBUSY</para>
- </entry><entry
- align="char">
- <para>Device or resource busy.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Invalid argument.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_f_close">
- <title>close()</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This system call closes a previously opened front-end device. After closing
- a front-end device, its corresponding hardware might be powered down
- automatically.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int close(int fd);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_read_status">
- <title>FE_READ_STATUS</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns status information about the front-end. This call only
- requires read-only access to the device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_READ_STATUS,
- fe_status_t ⋆status);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_READ_STATUS for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct fe_status_t
- *status</para>
- </entry><entry
- align="char">
- <para>Points to the location where the front-end status word is
- to be stored.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>status points to invalid address.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_read_ber">
- <title>FE_READ_BER</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns the bit error rate for the signal currently
- received/demodulated by the front-end. For this command, read-only access to
- the device is sufficient.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_READ_BER,
- uint32_t ⋆ber);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_READ_BER for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>uint32_t *ber</para>
- </entry><entry
- align="char">
- <para>The bit error rate is stored into *ber.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>ber points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSIGNAL</para>
- </entry><entry
- align="char">
- <para>There is no signal, thus no meaningful bit error rate. Also
- returned if the front-end is not turned on.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSYS</para>
- </entry><entry
- align="char">
- <para>Function not available for this device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_read_snr">
- <title>FE_READ_SNR</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns the signal-to-noise ratio for the signal currently received
- by the front-end. For this command, read-only access to the device is sufficient.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_READ_SNR, int16_t
- ⋆snr);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_READ_SNR for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int16_t *snr</para>
- </entry><entry
- align="char">
- <para>The signal-to-noise ratio is stored into *snr.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>snr points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSIGNAL</para>
- </entry><entry
- align="char">
- <para>There is no signal, thus no meaningful signal strength
- value. Also returned if front-end is not turned on.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSYS</para>
- </entry><entry
- align="char">
- <para>Function not available for this device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_read_signal_strength">
- <title>FE_READ_SIGNAL_STRENGTH</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns the signal strength value for the signal currently received
- by the front-end. For this command, read-only access to the device is sufficient.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl( int fd, int request =
- FE_READ_SIGNAL_STRENGTH, int16_t ⋆strength);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_READ_SIGNAL_STRENGTH for this
- command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int16_t *strength</para>
- </entry><entry
- align="char">
- <para>The signal strength value is stored into *strength.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>status points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSIGNAL</para>
- </entry><entry
- align="char">
- <para>There is no signal, thus no meaningful signal strength
- value. Also returned if front-end is not turned on.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSYS</para>
- </entry><entry
- align="char">
- <para>Function not available for this device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_read_ub">
- <title>FE_READ_UNCORRECTED_BLOCKS</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns the number of uncorrected blocks detected by the device
- driver during its lifetime. For meaningful measurements, the increment in block
- count during a specific time interval should be calculated. For this command,
- read-only access to the device is sufficient.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>Note that the counter will wrap to zero after its maximum count has been
- reached.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl( int fd, int request =
- FE_READ_UNCORRECTED_BLOCKS, uint32_t ⋆ublocks);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_READ_UNCORRECTED_BLOCKS for this
- command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>uint32_t *ublocks</para>
- </entry><entry
- align="char">
- <para>The total number of uncorrected blocks seen by the driver
- so far.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>ublocks points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>ENOSYS</para>
- </entry><entry
- align="char">
- <para>Function not available for this device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_set_fe">
- <title>FE_SET_FRONTEND</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call starts a tuning operation using specified parameters. The result
- of this call will be successful if the parameters were valid and the tuning could
- be initiated. The result of the tuning operation in itself, however, will arrive
- asynchronously as an event (see documentation for FE_GET_EVENT and
- FrontendEvent.) If a new FE_SET_FRONTEND operation is initiated before
- the previous one was completed, the previous operation will be aborted in favor
- of the new one. This command requires read/write access to the device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_SET_FRONTEND,
- struct dvb_frontend_parameters ⋆p);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_SET_FRONTEND for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_frontend_parameters
- *p</para>
- </entry><entry
- align="char">
- <para>Points to parameters for tuning operation.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>p points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Maximum supported symbol rate reached.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_get_fe">
- <title>FE_GET_FRONTEND</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call queries the currently effective frontend parameters. For this
- command, read-only access to the device is sufficient.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_GET_FRONTEND,
- struct dvb_frontend_parameters ⋆p);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_SET_FRONTEND for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_frontend_parameters
- *p</para>
- </entry><entry
- align="char">
- <para>Points to parameters for tuning operation.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>p points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Maximum supported symbol rate reached.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_get_event">
- <title>FE_GET_EVENT</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns a frontend event if available. If an event is not
- available, the behavior depends on whether the device is in blocking or
- non-blocking mode. In the latter case, the call fails immediately with errno
- set to EWOULDBLOCK. In the former case, the call blocks until an event
- becomes available.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>The standard Linux poll() and/or select() system calls can be used with the
- device file descriptor to watch for new events. For select(), the file descriptor
- should be included in the exceptfds argument, and for poll(), POLLPRI should
- be specified as the wake-up condition. Since the event queue allocated is
- rather small (room for 8 events), the queue must be serviced regularly to avoid
- overflow. If an overflow happens, the oldest event is discarded from the queue,
- and an error (EOVERFLOW) occurs the next time the queue is read. After
- reporting the error condition in this fashion, subsequent FE_GET_EVENT
- calls will return events from the queue as usual.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>For the sake of implementation simplicity, this command requires read/write
- access to the device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = QPSK_GET_EVENT,
- struct dvb_frontend_event ⋆ev);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_GET_EVENT for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_frontend_event
- *ev</para>
- </entry><entry
- align="char">
- <para>Points to the location where the event,</para>
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>if any, is to be stored.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>ev points to invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EWOULDBLOCK</para>
- </entry><entry
- align="char">
- <para>There is no event pending, and the device is in
- non-blocking mode.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EOVERFLOW</para>
- </entry><entry
- align="char">
- </entry>
- </row><row><entry
- align="char">
- </entry><entry
- align="char">
- <para>Overflow in event queue - one or more events were lost.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_get_info">
- <title>FE_GET_INFO</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call returns information about the front-end. This call only requires
- read-only access to the device.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para> int ioctl(int fd, int request = FE_GET_INFO, struct
- dvb_frontend_info ⋆info);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_GET_INFO for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_frontend_info
- *info</para>
- </entry><entry
- align="char">
- <para>Points to the location where the front-end information is
- to be stored.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid open file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>info points to invalid address.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_diseqc_reset_overload">
- <title>FE_DISEQC_RESET_OVERLOAD</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>If the bus has been automatically powered off due to power overload, this ioctl
- call restores the power to the bus. The call requires read/write access to the
- device. This call has no effect if the device is manually powered off. Not all
- DVB adapters support this ioctl.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request =
- FE_DISEQC_RESET_OVERLOAD);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_DISEQC_RESET_OVERLOAD for this
- command.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>Permission denied (needs read/write access).</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_diseqc_send_master_cmd">
- <title>FE_DISEQC_SEND_MASTER_CMD</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call is used to send a a DiSEqC command.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request =
- FE_DISEQC_SEND_MASTER_CMD, struct
- dvb_diseqc_master_cmd ⋆cmd);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_DISEQC_SEND_MASTER_CMD for this
- command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_diseqc_master_cmd
- *cmd</para>
- </entry><entry
- align="char">
- <para>Pointer to the command to be transmitted.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>Seq points to an invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>The data structure referred to by seq is invalid in some
- way.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>Permission denied (needs read/write access).</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_diseqc_recv_slave_reply">
- <title>FE_DISEQC_RECV_SLAVE_REPLY</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call is used to receive reply to a DiSEqC 2.0 command.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request =
- FE_DISEQC_RECV_SLAVE_REPLY, struct
- dvb_diseqc_slave_reply ⋆reply);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_DISEQC_RECV_SLAVE_REPLY for this
- command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>struct
- dvb_diseqc_slave_reply
- *reply</para>
- </entry><entry
- align="char">
- <para>Pointer to the command to be received.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>Seq points to an invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>The data structure referred to by seq is invalid in some
- way.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>Permission denied (needs read/write access).</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_diseqc_send_burst">
- <title>FE_DISEQC_SEND_BURST</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This ioctl call is used to send a 22KHz tone burst.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request =
- FE_DISEQC_SEND_BURST, fe_sec_mini_cmd_t burst);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_DISEQC_SEND_BURST for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>fe_sec_mini_cmd_t
- burst</para>
- </entry><entry
- align="char">
- <para>burst A or B.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>EBADF</para>
- </entry><entry
- align="char">
- <para>fd is not a valid file descriptor.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EFAULT</para>
- </entry><entry
- align="char">
- <para>Seq points to an invalid address.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>The data structure referred to by seq is invalid in some
- way.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>Permission denied (needs read/write access).</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_set_tone">
- <title>FE_SET_TONE</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This call is used to set the generation of the continuous 22kHz tone. This call
- requires read/write permissions.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_SET_TONE,
- fe_sec_tone_mode_t tone);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_SET_TONE for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>fe_sec_tone_mode_t
- tone</para>
- </entry><entry
- align="char">
- <para>The requested tone generation mode (on/off).</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>ENODEV</para>
- </entry><entry
- align="char">
- <para>Device driver not loaded/available.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EBUSY</para>
- </entry><entry
- align="char">
- <para>Device or resource busy.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Invalid argument.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>File not opened with read permissions.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="fe_set_voltage">
- <title>FE_SET_VOLTAGE</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>This call is used to set the bus voltage. This call requires read/write
- permissions.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request = FE_SET_VOLTAGE,
- fe_sec_voltage_t voltage);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_SET_VOLTAGE for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>fe_sec_voltage_t
- voltage</para>
- </entry><entry
- align="char">
- <para>The requested bus voltage.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>ENODEV</para>
- </entry><entry
- align="char">
- <para>Device driver not loaded/available.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EBUSY</para>
- </entry><entry
- align="char">
- <para>Device or resource busy.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Invalid argument.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>File not opened with read permissions.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- <section id="frontend_enable_high_lnb_volt">
- <title>FE_ENABLE_HIGH_LNB_VOLTAGE</title>
- <para>DESCRIPTION
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>If high != 0 enables slightly higher voltages instead of 13/18V (to compensate
- for long cables). This call requires read/write permissions. Not all DVB
- adapters support this ioctl.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>SYNOPSIS
- </para>
- <informaltable><tgroup cols="1"><tbody><row><entry
- align="char">
- <para>int ioctl(int fd, int request =
- FE_ENABLE_HIGH_LNB_VOLTAGE, int high);</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>PARAMETERS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>int fd</para>
- </entry><entry
- align="char">
- <para>File descriptor returned by a previous call to open().</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int request</para>
- </entry><entry
- align="char">
- <para>Equals FE_SET_VOLTAGE for this command.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>int high</para>
- </entry><entry
- align="char">
- <para>The requested bus voltage.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- <para>ERRORS
- </para>
- <informaltable><tgroup cols="2"><tbody><row><entry
- align="char">
- <para>ENODEV</para>
- </entry><entry
- align="char">
- <para>Device driver not loaded/available.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EBUSY</para>
- </entry><entry
- align="char">
- <para>Device or resource busy.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINVAL</para>
- </entry><entry
- align="char">
- <para>Invalid argument.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EPERM</para>
- </entry><entry
- align="char">
- <para>File not opened with read permissions.</para>
- </entry>
- </row><row><entry
- align="char">
- <para>EINTERNAL</para>
- </entry><entry
- align="char">
- <para>Internal error in the device driver.</para>
- </entry>
- </row></tbody></tgroup></informaltable>
- </section>
- </section>
- &sub-isdbt;
|