![]() |
DVBCore
22.11.0
Open Source DVB Engine
|
Header file - Function prototypes for tuner control. More...
Go to the source code of this file.
Macros | |
#define | SYMBOL_RATE_AUTO 0 |
Functions | |
void | STB_TuneInitialise (U8BIT paths) |
Initialises the tuner component. More... | |
void | STB_TuneSetSystemType (U8BIT path, E_STB_TUNE_SYSTEM_TYPE type) |
Set the demodulator's signal type. This function must be called before each call to STB_TuneStartTuner in a dvb-t2 system and never in a dvb-t system. More... | |
E_STB_TUNE_SYSTEM_TYPE | STB_TuneGetSystemType (U8BIT path) |
Returns the signal type as set by STB_TuneSetTerrType or as re-written by the driver. More... | |
void | STB_TuneAutoRelock (U8BIT path, BOOLEAN state) |
Enables or disabled auto tuner relocking. More... | |
U16BIT | STB_TuneGetSignalType (U8BIT path) |
Gets the signal types of the given tuner path. This will be a bitmask of supported types defined by E_STB_TUNE_SIGNAL_TYPE. More... | |
void | STB_TuneSetSignalType (U8BIT path, E_STB_TUNE_SIGNAL_TYPE type) |
This function is only relevant for tuners that support more than one signal type; for tuners that don't support more than one signal type it can be a blank function. It will be called to inform the platform which of the supported signal types is being used. More... | |
U32BIT | STB_TuneGetMinTunerFreqKHz (U8BIT path) |
Returns the minimum tuner frequency in KHz. More... | |
U32BIT | STB_TuneGetMaxTunerFreqKHz (U8BIT path) |
Returns the maximum tuner frequency in KHz. More... | |
void | STB_TuneStartTuner (U8BIT path, U32BIT freq, U32BIT srate, E_STB_TUNE_FEC fec, S8BIT freq_off, E_STB_TUNE_TMODE tmode, E_STB_TUNE_TBWIDTH tbwidth, E_STB_TUNE_CMODE cmode, E_STB_TUNE_ANALOG_VIDEO_TYPE anlg_vtype) |
Starts the tuner, it will then attempt to lock specified signal. Unrequired parameters can be passed as 0 (zero) More... | |
void | STB_TuneRestartTuner (U8BIT path) |
Restarts tuner and attempts to lock to signal in StartTuner call. More... | |
void | STB_TuneStopTuner (U8BIT path) |
Stops any locking attempt, or unlocks if locked. More... | |
U8BIT | STB_TuneGetSignalStrength (U8BIT path) |
Returns the current signal strength. More... | |
U8BIT | STB_TuneGetDataIntegrity (U8BIT path) |
Returns the current data integrity. More... | |
U32BIT | STB_TuneGetActualTerrFrequency (U8BIT path) |
Returns the actual frequency of the current terrestrial signal. More... | |
S8BIT | STB_TuneGetActualTerrFreqOffset (U8BIT path) |
Returns the actual freq offset of the current terrestrial signal. More... | |
E_STB_TUNE_TMODE | STB_TuneGetActualTerrMode (U8BIT path) |
Returns the actual mode of the current terrestrial signal. More... | |
E_STB_TUNE_TBWIDTH | STB_TuneGetActualTerrBwidth (U8BIT path) |
Returns the actual bandwidth of the current terrestrial signal. More... | |
E_STB_TUNE_TCONST | STB_TuneGetActualTerrConstellation (U8BIT path) |
Returns the constellation of the current terrestrial signal. More... | |
E_STB_TUNE_THIERARCHY | STB_TuneGetActualTerrHierarchy (U8BIT path) |
Returns the heirarchy of the current terrestrial signal. More... | |
E_STB_TUNE_TCODERATE | STB_TuneGetActualTerrLpCodeRate (U8BIT path) |
Returns the LP code rate of the current terrestrial signal. More... | |
E_STB_TUNE_TCODERATE | STB_TuneGetActualTerrHpCodeRate (U8BIT path) |
Returns the HP code rate of the current terrestrial signal. More... | |
E_STB_TUNE_TGUARDINT | STB_TuneGetActualTerrGuardInt (U8BIT path) |
Returns the guard interval of the current terrestrial signal. More... | |
U16BIT | STB_TuneGetActualTerrCellId (U8BIT path) |
Returns the cell id the current terrestrial signal. More... | |
void | STB_TuneSetPLP (U8BIT path, U8BIT plp) |
Sets the Physical Layer Pipe to be acquired. More... | |
U8BIT | STB_TuneGetPLP (U8BIT path) |
Gets the Physical Layer Pipe to be acquired. More... | |
void | STB_TuneActiveAerialPower (U8BIT path, BOOLEAN enabled) |
Enables/disables aerial power for DVB-T. More... | |
void | STB_TuneSetLOFrequency (U8BIT tuner, U16BIT lo_freq) |
Sets the local oscillator frequency used by the LNB. More... | |
void | STB_TuneSetModulation (U8BIT path, E_STB_TUNE_MODULATION modulation) |
Sets the type of modulation for the specified tuner. More... | |
void | STB_TuneSetLNBVoltage (U8BIT path, E_STB_TUNE_LNB_VOLTAGE voltage) |
Sets the LNB voltage for the given tuner. More... | |
void | STB_TuneSet22kState (U8BIT path, BOOLEAN state) |
Turns the 22 kHz tone on or off. More... | |
void | STB_TuneSet12VSwitch (U8BIT path, BOOLEAN state) |
Sets the 12V switch for the given tuner. More... | |
U8BIT | STB_TuneGetDISEQCReply (U8BIT path, U8BIT *data, U32BIT timeout) |
Receives a DisEqc reply. More... | |
void | STB_TuneSendDISEQCMessage (U8BIT path, U8BIT *data, U8BIT size) |
Sends the DisEqc message. More... | |
void | STB_TuneSetPulseLimitEast (U8BIT path, U16BIT count) |
Sets the pulse limit for the east. More... | |
void | STB_TuneSetPulseLimitWest (U8BIT path, U16BIT count) |
Sets the pulse limit for the west. More... | |
void | STB_TuneChangePulsePosition (U8BIT path, U16BIT count) |
U16BIT | STB_TuneGetPulsePosition (U8BIT path) |
Returns the current pulse position. More... | |
void | STB_TuneAtPulsePosition (U8BIT path, U16BIT position) |
void | STB_TuneChangeSkewPosition (U8BIT path, U16BIT count) |
Changes the value of skew position count. More... | |
U8BIT | STB_TuneSatGetCarrierStrength (U8BIT path, U32BIT freq) |
Returns the carrier signal strength as a percentage. More... | |
U32BIT | STB_TuneGetActualSymbolRate (U8BIT path) |
Returns the actual symbol rate when a tuner has locked. More... | |
E_STB_TUNE_CMODE | STB_TuneGetActualCableMode (U8BIT path) |
Returns the cable mode when the tuner has locked. More... | |
E_STB_TUNE_SYSTEM_TYPE | STB_TuneGetSupportedSystemType (U8BIT path) |
Returns the system type supported by the path. This function differs from STB_TuneGetSystemType which only returns T2 or S2 if the tuner is currently performing T2 or S2 operations. More... | |
Header file - Function prototypes for tuner control.
void STB_TuneActiveAerialPower | ( | U8BIT | path, |
BOOLEAN | enabled | ||
) |
Enables/disables aerial power for DVB-T.
path | tuner path |
enabled | TRUE to enable |
void STB_TuneAutoRelock | ( | U8BIT | path, |
BOOLEAN | state | ||
) |
Enables or disabled auto tuner relocking.
path | the tuner path to configure |
state | TRUE enables relocking, FALSE disables it |
void STB_TuneChangeSkewPosition | ( | U8BIT | path, |
U16BIT | count | ||
) |
Changes the value of skew position count.
path | tuner path |
count | skew position count |
E_STB_TUNE_CMODE STB_TuneGetActualCableMode | ( | U8BIT | path | ) |
Returns the cable mode when the tuner has locked.
path | tuner path |
U32BIT STB_TuneGetActualSymbolRate | ( | U8BIT | path | ) |
Returns the actual symbol rate when a tuner has locked.
path | tuner path |
E_STB_TUNE_TBWIDTH STB_TuneGetActualTerrBwidth | ( | U8BIT | path | ) |
Returns the actual bandwidth of the current terrestrial signal.
path | the tuner path to query |
U16BIT STB_TuneGetActualTerrCellId | ( | U8BIT | path | ) |
Returns the cell id the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_TCONST STB_TuneGetActualTerrConstellation | ( | U8BIT | path | ) |
Returns the constellation of the current terrestrial signal.
path | the tuner path to query |
S8BIT STB_TuneGetActualTerrFreqOffset | ( | U8BIT | path | ) |
Returns the actual freq offset of the current terrestrial signal.
path | the tuner path to query |
U32BIT STB_TuneGetActualTerrFrequency | ( | U8BIT | path | ) |
Returns the actual frequency of the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_TGUARDINT STB_TuneGetActualTerrGuardInt | ( | U8BIT | path | ) |
Returns the guard interval of the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_THIERARCHY STB_TuneGetActualTerrHierarchy | ( | U8BIT | path | ) |
Returns the heirarchy of the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_TCODERATE STB_TuneGetActualTerrHpCodeRate | ( | U8BIT | path | ) |
Returns the HP code rate of the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_TCODERATE STB_TuneGetActualTerrLpCodeRate | ( | U8BIT | path | ) |
Returns the LP code rate of the current terrestrial signal.
path | the tuner path to query |
E_STB_TUNE_TMODE STB_TuneGetActualTerrMode | ( | U8BIT | path | ) |
Returns the actual mode of the current terrestrial signal.
path | the tuner path to query |
U8BIT STB_TuneGetDataIntegrity | ( | U8BIT | path | ) |
Returns the current data integrity.
path | the tuner path to query |
U8BIT STB_TuneGetDISEQCReply | ( | U8BIT | path, |
U8BIT * | data, | ||
U32BIT | timeout | ||
) |
Receives a DisEqc reply.
path | tuner path |
data | pointer to the received data |
timeout | maximum number of milliseconds to wait for a reply |
U32BIT STB_TuneGetMaxTunerFreqKHz | ( | U8BIT | path | ) |
Returns the maximum tuner frequency in KHz.
path | the tuner path to query |
U32BIT STB_TuneGetMinTunerFreqKHz | ( | U8BIT | path | ) |
Returns the minimum tuner frequency in KHz.
path | the tuner path to query |
U8BIT STB_TuneGetPLP | ( | U8BIT | path | ) |
Gets the Physical Layer Pipe to be acquired.
path | the tuner path to query |
U16BIT STB_TuneGetPulsePosition | ( | U8BIT | path | ) |
Returns the current pulse position.
path | tuner path |
U8BIT STB_TuneGetSignalStrength | ( | U8BIT | path | ) |
Returns the current signal strength.
path | the tuner path to query |
U16BIT STB_TuneGetSignalType | ( | U8BIT | path | ) |
Gets the signal types of the given tuner path. This will be a bitmask of supported types defined by E_STB_TUNE_SIGNAL_TYPE.
path | tuner path |
E_STB_TUNE_SYSTEM_TYPE STB_TuneGetSupportedSystemType | ( | U8BIT | path | ) |
Returns the system type supported by the path. This function differs from STB_TuneGetSystemType which only returns T2 or S2 if the tuner is currently performing T2 or S2 operations.
path | the tuner path to query |
E_STB_TUNE_SYSTEM_TYPE STB_TuneGetSystemType | ( | U8BIT | path | ) |
Returns the signal type as set by STB_TuneSetTerrType or as re-written by the driver.
path | the tuner path to query |
void STB_TuneInitialise | ( | U8BIT | paths | ) |
Initialises the tuner component.
paths | number of tuning paths to initialise |
void STB_TuneRestartTuner | ( | U8BIT | path | ) |
Restarts tuner and attempts to lock to signal in StartTuner call.
path | the tuner path to restart |
U8BIT STB_TuneSatGetCarrierStrength | ( | U8BIT | path, |
U32BIT | freq | ||
) |
Returns the carrier signal strength as a percentage.
path | tuner path |
freq | carrier frequency |
void STB_TuneSendDISEQCMessage | ( | U8BIT | path, |
U8BIT * | data, | ||
U8BIT | size | ||
) |
Sends the DisEqc message.
path | - tuner path |
data | - message data |
size | - number of bytes in message data |
void STB_TuneSet12VSwitch | ( | U8BIT | path, |
BOOLEAN | state | ||
) |
Sets the 12V switch for the given tuner.
path | tuner path |
state | TRUE for on |
void STB_TuneSet22kState | ( | U8BIT | path, |
BOOLEAN | state | ||
) |
Turns the 22 kHz tone on or off.
path | tuner path |
state | TRUE to turn the tone on, FALSE to turn it off |
void STB_TuneSetLNBVoltage | ( | U8BIT | path, |
E_STB_TUNE_LNB_VOLTAGE | voltage | ||
) |
Sets the LNB voltage for the given tuner.
path | tuner path |
voltage | voltage setting |
void STB_TuneSetLOFrequency | ( | U8BIT | tuner, |
U16BIT | lo_freq | ||
) |
Sets the local oscillator frequency used by the LNB.
path | the tuner path to query |
void STB_TuneSetModulation | ( | U8BIT | path, |
E_STB_TUNE_MODULATION | modulation | ||
) |
Sets the type of modulation for the specified tuner.
path | tuner path |
modulation | type of modulation |
void STB_TuneSetPLP | ( | U8BIT | path, |
U8BIT | plp | ||
) |
Sets the Physical Layer Pipe to be acquired.
path | the tuner path to set up |
plp | Physical Layer Pipe to be acquired |
void STB_TuneSetPulseLimitEast | ( | U8BIT | path, |
U16BIT | count | ||
) |
Sets the pulse limit for the east.
path | tuner path |
count | east limit count |
void STB_TuneSetPulseLimitWest | ( | U8BIT | path, |
U16BIT | count | ||
) |
Sets the pulse limit for the west.
path | tuner path |
count | west limit count |
void STB_TuneSetSignalType | ( | U8BIT | path, |
E_STB_TUNE_SIGNAL_TYPE | type | ||
) |
This function is only relevant for tuners that support more than one signal type; for tuners that don't support more than one signal type it can be a blank function. It will be called to inform the platform which of the supported signal types is being used.
path | tuner path |
type | signal type that is being used for this tuner |
void STB_TuneSetSystemType | ( | U8BIT | path, |
E_STB_TUNE_SYSTEM_TYPE | type | ||
) |
Set the demodulator's signal type. This function must be called before each call to STB_TuneStartTuner in a dvb-t2 system and never in a dvb-t system.
U8BIT | path - the tuner path to set up |
E_STB_TUNE_TERR_TYPE | type: TUNE_TERR_TYPE_DVBT, TUNE_TERR_TYPE_DVBT2 or TUNE_TERR_TYPE_UNKNOWN. When the signal type has been set to TUNE_TERR_TYPE_UNKNOWN, a call to STB_TuneStartTuner will force the driver to try with DVB-T first, and if no signal is found, with DVB-T2. When a signal has been found, STB_TuneGetTerrType will return the actual signal type. |
void STB_TuneStartTuner | ( | U8BIT | path, |
U32BIT | freq, | ||
U32BIT | srate, | ||
E_STB_TUNE_FEC | fec, | ||
S8BIT | freq_off, | ||
E_STB_TUNE_TMODE | tmode, | ||
E_STB_TUNE_TBWIDTH | tbwidth, | ||
E_STB_TUNE_CMODE | cmode, | ||
E_STB_TUNE_ANALOG_VIDEO_TYPE | anlg_vtype | ||
) |
Starts the tuner, it will then attempt to lock specified signal. Unrequired parameters can be passed as 0 (zero)
path | the tuner path to start |
freq | the frequency to tune to |
srate | the symbol rate to lock |
fec | The forward error correction rate |
freq_off | The frequency offset to use |
tmode | The COFDM mode |
tbwidth | The signal bandwidth |
cmode | The QAM mode |
anlg_vtype | The type of video for analogue tuner |
void STB_TuneStopTuner | ( | U8BIT | path | ) |
Stops any locking attempt, or unlocks if locked.
path | the tuner path to stop |