#include <diseqc.h>

Definition at line 358 of file diseqc.h.
Public Types | |
| enum | dvbdev_lnb_t { kTypeFixed = 0, kTypeVoltageControl = 1, kTypeVoltageAndToneControl = 2, kTypeBandstacked = 3 } |
Public Member Functions | |
| DiSEqCDevLNB (DiSEqCDevTree &tree, uint devid) | |
| virtual bool | Execute (const DiSEqCDevSettings &, const DTVMultiplex &) |
| Applies DiSEqC settings to this node and any children. | |
| virtual bool | Load (void) |
| Loads this device from the database. | |
| virtual bool | Store (void) const |
| Stores this device to the database. | |
| void | SetType (dvbdev_lnb_t type) |
| void | SetLOFSwitch (uint lof_switch) |
| void | SetLOFHigh (uint lof_hi) |
| void | SetLOFLow (uint lof_lo) |
| void | SetPolarityInverted (bool inv) |
| dvbdev_lnb_t | GetType (void) const |
| uint | GetLOFSwitch (void) const |
| uint | GetLOFHigh (void) const |
| uint | GetLOFLow (void) const |
| bool | IsPolarityInverted (void) const |
| bool | IsHighBand (const DTVMultiplex &) const |
| Determine if the high frequency band is active (for switchable LNBs). | |
| bool | IsHorizontal (const DTVMultiplex &) const |
| Determine if horizontal polarity is active (for switchable LNBs). | |
| uint32_t | GetIntermediateFrequency (const DiSEqCDevSettings &, const DTVMultiplex &) const |
| Calculate proper intermediate frequency for the given settings and tuning parameters. | |
| virtual uint | GetVoltage (const DiSEqCDevSettings &, const DTVMultiplex &) const |
| Retrives the desired voltage for this config. | |
Static Public Member Functions | |
| static QString | LNBTypeToString (dvbdev_lnb_t type) |
| static dvbdev_lnb_t | LNBTypeFromString (const QString &type) |
Private Attributes | |
| dvbdev_lnb_t | m_type |
| uint | m_lof_switch |
| uint | m_lof_hi |
| uint | m_lof_lo |
| bool | m_pol_inv |
| If a signal is circularly polarized the polarity will flip on each reflection, so antenna systems with an even number of reflectors will need to set this value. | |
Static Private Attributes | |
| static const TypeTable | LNBTypeTable [5] |
| DiSEqCDevLNB::DiSEqCDevLNB | ( | DiSEqCDevTree & | tree, | |
| uint | devid | |||
| ) |
Definition at line 2027 of file diseqc.cpp.
| bool DiSEqCDevLNB::Execute | ( | const DiSEqCDevSettings & | , | |
| const DTVMultiplex & | ||||
| ) | [virtual] |
Applies DiSEqC settings to this node and any children.
| settings | Configuration chain to apply. | |
| tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 2036 of file diseqc.cpp.
| bool DiSEqCDevLNB::Load | ( | void | ) | [virtual] |
Loads this device from the database.
Implements DiSEqCDevDevice.
Definition at line 2059 of file diseqc.cpp.
| bool DiSEqCDevLNB::Store | ( | void | ) | const [virtual] |
Stores this device to the database.
Implements DiSEqCDevDevice.
Definition at line 2089 of file diseqc.cpp.
| void DiSEqCDevLNB::SetType | ( | dvbdev_lnb_t | type | ) | [inline] |
| void DiSEqCDevLNB::SetLOFSwitch | ( | uint | lof_switch | ) | [inline] |
| void DiSEqCDevLNB::SetLOFHigh | ( | uint | lof_hi | ) | [inline] |
| void DiSEqCDevLNB::SetLOFLow | ( | uint | lof_lo | ) | [inline] |
| void DiSEqCDevLNB::SetPolarityInverted | ( | bool | inv | ) | [inline] |
| dvbdev_lnb_t DiSEqCDevLNB::GetType | ( | void | ) | const [inline] |
| uint DiSEqCDevLNB::GetLOFSwitch | ( | void | ) | const [inline] |
| uint DiSEqCDevLNB::GetLOFHigh | ( | void | ) | const [inline] |
| uint DiSEqCDevLNB::GetLOFLow | ( | void | ) | const [inline] |
| bool DiSEqCDevLNB::IsPolarityInverted | ( | void | ) | const [inline] |
| bool DiSEqCDevLNB::IsHighBand | ( | const DTVMultiplex & | tuning | ) | const |
Determine if the high frequency band is active (for switchable LNBs).
| tuning | Tuning parameters. |
Definition at line 2159 of file diseqc.cpp.
Referenced by Execute(), DiSEqCDevSwitch::ExecuteDiseqc(), GetIntermediateFrequency(), and DiSEqCDevSwitch::ShouldSwitch().
| bool DiSEqCDevLNB::IsHorizontal | ( | const DTVMultiplex & | tuning | ) | const |
Determine if horizontal polarity is active (for switchable LNBs).
| tuning | Tuning parameters. |
Definition at line 2179 of file diseqc.cpp.
Referenced by DiSEqCDevSwitch::ExecuteDiseqc(), DiSEqCDevSwitch::ExecuteLegacy(), GetVoltage(), IsHighBand(), and DiSEqCDevSwitch::ShouldSwitch().
| uint32_t DiSEqCDevLNB::GetIntermediateFrequency | ( | const DiSEqCDevSettings & | , | |
| const DTVMultiplex & | tuning | |||
| ) | const |
Calculate proper intermediate frequency for the given settings and tuning parameters.
| settings | Configuration chain in effect. | |
| tuning | Tuning parameters. |
Definition at line 2193 of file diseqc.cpp.
Referenced by DVBChannel::CheckOptions(), and DVBChannel::Tune().
| uint DiSEqCDevLNB::GetVoltage | ( | const DiSEqCDevSettings & | , | |
| const DTVMultiplex & | ||||
| ) | const [virtual] |
Retrives the desired voltage for this config.
| settings | Configuration chain in effect. | |
| tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 2045 of file diseqc.cpp.
| static QString DiSEqCDevLNB::LNBTypeToString | ( | dvbdev_lnb_t | type | ) | [inline, static] |
| static dvbdev_lnb_t DiSEqCDevLNB::LNBTypeFromString | ( | const QString & | type | ) | [inline, static] |
dvbdev_lnb_t DiSEqCDevLNB::m_type [private] |
Definition at line 403 of file diseqc.h.
Referenced by Execute(), GetType(), GetVoltage(), IsHighBand(), Load(), SetType(), and Store().
uint DiSEqCDevLNB::m_lof_switch [private] |
Definition at line 404 of file diseqc.h.
Referenced by GetLOFSwitch(), IsHighBand(), Load(), SetLOFSwitch(), and Store().
uint DiSEqCDevLNB::m_lof_hi [private] |
Definition at line 405 of file diseqc.h.
Referenced by GetIntermediateFrequency(), GetLOFHigh(), Load(), SetLOFHigh(), and Store().
uint DiSEqCDevLNB::m_lof_lo [private] |
Definition at line 406 of file diseqc.h.
Referenced by GetIntermediateFrequency(), GetLOFLow(), Load(), SetLOFLow(), and Store().
bool DiSEqCDevLNB::m_pol_inv [private] |
If a signal is circularly polarized the polarity will flip on each reflection, so antenna systems with an even number of reflectors will need to set this value.
Definition at line 410 of file diseqc.h.
Referenced by IsPolarityInverted(), Load(), SetPolarityInverted(), and Store().
const DiSEqCDevDevice::TypeTable DiSEqCDevLNB::LNBTypeTable [static, private] |
Initial value:
{
{ "fixed", kTypeFixed },
{ "voltage", kTypeVoltageControl },
{ "voltage_tone", kTypeVoltageAndToneControl },
{ "bandstacked", kTypeBandstacked },
{ QString::null, kTypeVoltageAndToneControl },
}
Definition at line 412 of file diseqc.h.
Referenced by LNBTypeFromString(), and LNBTypeToString().
1.5.5