35 #define SYMBOL_RATE_AUTO 0 38 typedef enum e_stb_tune_system_type
40 TUNE_SYSTEM_TYPE_UNKNOWN = 0,
41 TUNE_SYSTEM_TYPE_DVBT = 1,
42 TUNE_SYSTEM_TYPE_DVBT2 = 2,
43 TUNE_SYSTEM_TYPE_DVBS = 3,
44 TUNE_SYSTEM_TYPE_DVBS2 = 4,
45 TUNE_SYSTEM_TYPE_DVBC = 5
46 } E_STB_TUNE_SYSTEM_TYPE;
49 typedef enum e_stb_tune_signal_type
53 TUNE_SIGNAL_COFDM = 2,
55 TUNE_SIGNAL_ANALOG = 8
56 } E_STB_TUNE_SIGNAL_TYPE;
59 typedef enum e_stb_tune_tmode
61 TUNE_MODE_COFDM_1K = 0,
62 TUNE_MODE_COFDM_2K = 1,
63 TUNE_MODE_COFDM_4K = 2,
64 TUNE_MODE_COFDM_8K = 3,
65 TUNE_MODE_COFDM_16K = 4,
66 TUNE_MODE_COFDM_32K = 5,
67 TUNE_MODE_COFDM_UNDEFINED = 255
70 typedef enum e_stb_tune_tbwidth
72 TUNE_TBWIDTH_8MHZ = 0,
73 TUNE_TBWIDTH_7MHZ = 1,
74 TUNE_TBWIDTH_6MHZ = 2,
78 typedef enum e_stb_tune_tconst
81 TUNE_TCONST_QAM16 = 1,
82 TUNE_TCONST_QAM64 = 2,
83 TUNE_TCONST_QAM128 = 3,
84 TUNE_TCONST_QAM256 = 4,
85 TUNE_TCONST_UNDEFINED = 255
88 typedef enum E_STB_TUNE_THIERARCHY
90 TUNE_THIERARCHY_NONE = 0,
91 TUNE_THIERARCHY_1 = 1,
92 TUNE_THIERARCHY_2 = 2,
93 TUNE_THIERARCHY_4 = 4,
94 TUNE_THIERARCHY_8 = 8,
95 TUNE_THIERARCHY_16 = 16,
96 TUNE_THIERARCHY_32 = 32,
97 TUNE_THIERARCHY_64 = 64,
98 TUNE_THIERARCHY_128 = 128,
99 TUNE_THIERARCHY_UNDEFINED = 255
100 } E_STB_TUNE_THIERARCHY;
102 typedef enum e_stb_tune_tcoderate
104 TUNE_TCODERATE_1_2 = 0,
105 TUNE_TCODERATE_2_3 = 1,
106 TUNE_TCODERATE_3_4 = 2,
107 TUNE_TCODERATE_5_6 = 3,
108 TUNE_TCODERATE_7_8 = 4,
109 TUNE_TCODERATE_UNDEFINED = 255
110 } E_STB_TUNE_TCODERATE;
112 typedef enum e_stb_tune_tguardint
114 TUNE_TGUARDINT_1_32 = 0,
115 TUNE_TGUARDINT_1_16 = 1,
116 TUNE_TGUARDINT_1_8 = 2,
117 TUNE_TGUARDINT_1_4 = 3,
118 TUNE_TGUARDINT_1_128 = 4,
119 TUNE_TGUARDINT_19_128 = 5,
120 TUNE_TGUARDINT_19_256 = 6,
121 TUNE_TGUARDINT_UNDEFINED = 255
122 } E_STB_TUNE_TGUARDINT;
125 typedef enum e_stb_tune_cmode
129 TUNE_MODE_QAM_16 = 2,
130 TUNE_MODE_QAM_32 = 3,
131 TUNE_MODE_QAM_64 = 4,
132 TUNE_MODE_QAM_128 = 5,
133 TUNE_MODE_QAM_256 = 6,
134 TUNE_MODE_QAM_UNDEFINED = 255
145 } E_STB_TUNE_MODULATION;
147 typedef enum e_stb_tune_lnb_voltage
152 } E_STB_TUNE_LNB_VOLTAGE;
154 typedef enum e_stb_tune_fec
156 TUNE_FEC_AUTOMATIC = 0,
173 typedef enum e_stb_tune_analog_video_type
175 TUNE_ANLG_VIDEO_PAL_I = 0,
176 TUNE_ANLG_VIDEO_PAL_B = 1,
177 TUNE_ANLG_VIDEO_PAL_G = 2,
178 TUNE_ANLG_VIDEO_PAL_D = 3,
179 TUNE_ANLG_VIDEO_PAL_K = 4,
180 TUNE_ANLG_VIDEO_PAL_L = 5,
181 TUNE_ANLG_VIDEO_PAL_LDASH = 6
182 } E_STB_TUNE_ANALOG_VIDEO_TYPE;
270 S8BIT freq_off, E_STB_TUNE_TMODE tmode, E_STB_TUNE_TBWIDTH tbwidth,
271 E_STB_TUNE_CMODE cmode, E_STB_TUNE_ANALOG_VIDEO_TYPE anlg_vtype);
455 void STB_TuneChangePulsePosition(U8BIT path, U16BIT count);
464 void STB_TuneAtPulsePosition(U8BIT path, U16BIT position);
506 #endif // _STBHWTUN_H void STB_TuneSendDISEQCMessage(U8BIT path, U8BIT *data, U8BIT size)
Sends the DisEqc message.
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...
U8BIT STB_TuneGetDataIntegrity(U8BIT path)
Returns the current data integrity.
U8BIT STB_TuneGetDISEQCReply(U8BIT path, U8BIT *data, U32BIT timeout)
Receives a DisEqc reply.
void STB_TuneSetModulation(U8BIT path, E_STB_TUNE_MODULATION modulation)
Sets the type of modulation for the specified tuner.
Function prototypes for HW control.
U16BIT STB_TuneGetActualTerrCellId(U8BIT path)
Returns the cell id the current terrestrial signal.
U8BIT STB_TuneGetPLP(U8BIT path)
Gets the Physical Layer Pipe to be acquired.
U32BIT STB_TuneGetMinTunerFreqKHz(U8BIT path)
Returns the minimum tuner frequency in KHz.
void STB_TuneInitialise(U8BIT paths)
Initialises the tuner component.
E_STB_TUNE_TCODERATE STB_TuneGetActualTerrHpCodeRate(U8BIT path)
Returns the HP code rate of the current terrestrial signal.
U8BIT STB_TuneSatGetCarrierStrength(U8BIT path, U32BIT freq)
Returns the carrier signal strength as a percentage.
E_STB_TUNE_TBWIDTH STB_TuneGetActualTerrBwidth(U8BIT path)
Returns the actual bandwidth of the current terrestrial signal.
void STB_TuneSetPLP(U8BIT path, U8BIT plp)
Sets the Physical Layer Pipe to be acquired.
void STB_TuneSetLNBVoltage(U8BIT path, E_STB_TUNE_LNB_VOLTAGE voltage)
Sets the LNB voltage for the given tuner.
void STB_TuneSetPulseLimitWest(U8BIT path, U16BIT count)
Sets the pulse limit for the west.
E_STB_TUNE_THIERARCHY STB_TuneGetActualTerrHierarchy(U8BIT path)
Returns the heirarchy of the current terrestrial signal.
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.
void STB_TuneAutoRelock(U8BIT path, BOOLEAN state)
Enables or disabled auto tuner relocking.
void STB_TuneRestartTuner(U8BIT path)
Restarts tuner and attempts to lock to signal in StartTuner call.
void STB_TuneSet22kState(U8BIT path, BOOLEAN state)
Turns the 22 kHz tone on or off.
void STB_TuneChangeSkewPosition(U8BIT path, U16BIT count)
Changes the value of skew position count.
E_STB_TUNE_TGUARDINT STB_TuneGetActualTerrGuardInt(U8BIT path)
Returns the guard interval of the current terrestrial signal.
void STB_TuneActiveAerialPower(U8BIT path, BOOLEAN enabled)
Enables/disables aerial power for DVB-T.
void STB_TuneSetPulseLimitEast(U8BIT path, U16BIT count)
Sets the pulse limit for the east.
U8BIT STB_TuneGetSignalStrength(U8BIT path)
Returns the current signal strength.
U16BIT STB_TuneGetPulsePosition(U8BIT path)
Returns the current pulse position.
void STB_TuneStopTuner(U8BIT path)
Stops any locking attempt, or unlocks if locked.
U32BIT STB_TuneGetMaxTunerFreqKHz(U8BIT path)
Returns the maximum tuner frequency in KHz.
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_TuneStartTune...
System Wide Global Technical Data Type Definitions.
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...
U32BIT STB_TuneGetActualSymbolRate(U8BIT path)
Returns the actual symbol rate when a tuner has locked.
void STB_TuneSet12VSwitch(U8BIT path, BOOLEAN state)
Sets the 12V switch for the given tuner.
S8BIT STB_TuneGetActualTerrFreqOffset(U8BIT path)
Returns the actual freq offset of the current terrestrial signal.
E_STB_TUNE_CMODE STB_TuneGetActualCableMode(U8BIT path)
Returns the cable mode when the tuner has locked.
E_STB_TUNE_SYSTEM_TYPE STB_TuneGetSupportedSystemType(U8BIT path)
Returns the system type supported by the path. This function differs from STB_TuneGetSystemType which...
U32BIT STB_TuneGetActualTerrFrequency(U8BIT path)
Returns the actual frequency of the current terrestrial signal.
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 ...
E_STB_TUNE_TCODERATE STB_TuneGetActualTerrLpCodeRate(U8BIT path)
Returns the LP code rate of the current terrestrial signal.
E_STB_TUNE_TCONST STB_TuneGetActualTerrConstellation(U8BIT path)
Returns the constellation of the current terrestrial signal.
E_STB_TUNE_TMODE STB_TuneGetActualTerrMode(U8BIT path)
Returns the actual mode of the current terrestrial signal.
void STB_TuneSetLOFrequency(U8BIT tuner, U16BIT lo_freq)
Sets the local oscillator frequency used by the LNB.