MythTV
master
|
Unicable / SCR Class. More...
#include <diseqc.h>
Public Types | |
enum | dvbdev_pos_t { kTypeScrPosA = 0, kTypeScrPosB = 1 } |
![]() | |
enum | dvbdev_t { kTypeSwitch = 0, kTypeRotor = 1, kTypeSCR = 2, kTypeLNB = 3 } |
Public Member Functions | |
DiSEqCDevSCR (DiSEqCDevTree &tree, uint devid) | |
~DiSEqCDevSCR () override | |
void | Reset (void) override |
Resets to the last known settings for this device. More... | |
bool | Execute (const DiSEqCDevSettings &settings, const DTVMultiplex &tuning) override |
Applies DiSEqC settings to this node and any children. More... | |
bool | PowerOff (void) const |
bool | Load (void) override |
Loads this device from the database. More... | |
bool | Store (void) const override |
void | SetUserBand (uint userband) |
void | SetFrequency (uint freq) |
void | SetPIN (int pin) |
bool | SetChild (uint ordinal, DiSEqCDevDevice *device) override |
Changes the nth child of this node. More... | |
uint | GetUserBand (void) const |
uint | GetFrequency (void) const |
int | GetPIN (void) const |
uint | GetChildCount (void) const override |
Retrieves the proper number of children for this node. More... | |
bool | IsCommandNeeded (const DiSEqCDevSettings &, const DTVMultiplex &) const override |
Determines if this device or any child will be sending a command for the given configuration chain. More... | |
uint | GetVoltage (const DiSEqCDevSettings &settings, const DTVMultiplex &tuning) const override |
Retrives the desired voltage for this config. More... | |
uint32_t | GetIntermediateFrequency (uint32_t frequency) const |
DiSEqCDevDevice * | GetSelectedChild (const DiSEqCDevSettings &) const override |
Retrieves the selected child for this configuration, if any. More... | |
DiSEqCDevDevice * | GetChild (uint) override |
Retrieves the nth child of this node. More... | |
![]() | |
DiSEqCDevDevice (DiSEqCDevTree &tree, uint devid) | |
virtual | ~DiSEqCDevDevice () |
void | SetDeviceType (dvbdev_t type) |
void | SetParent (DiSEqCDevDevice *parent) |
void | SetOrdinal (uint ordinal) |
void | SetDescription (const QString &desc) |
void | SetRepeatCount (uint repeat) |
dvbdev_t | GetDeviceType (void) const |
uint | GetDeviceID (void) const |
bool | IsRealDeviceID (void) const |
DiSEqCDevDevice * | GetParent (void) const |
uint | GetOrdinal (void) const |
QString | GetDescription (void) const |
uint | GetRepeatCount (void) const |
DiSEqCDevDevice * | FindDevice (uint dev_id) |
Static Public Member Functions | |
static QString | SCRPositionToString (dvbdev_pos_t pos) |
static dvbdev_pos_t | SCRPositionFromString (const QString &pos) |
![]() | |
static QString | DevTypeToString (dvbdev_t type) |
static dvbdev_t | DevTypeFromString (const QString &type) |
static DiSEqCDevDevice * | CreateById (DiSEqCDevTree &tree, uint devid) |
static DiSEqCDevDevice * | CreateByType (DiSEqCDevTree &tree, dvbdev_t type, uint dev_id=0) |
Protected Member Functions | |
bool | SendCommand (uint cmd, uint repeats, cmd_vec_t &data) const |
![]() | |
void | SetDeviceID (uint devid) const |
Private Attributes | |
uint | m_scrUserband {0} |
uint | m_scrFrequency {1210} |
int | m_scrPin {-1} |
DiSEqCDevDevice * | m_child {nullptr} |
Static Private Attributes | |
static const TypeTableVec | kSCRPositionTable |
Additional Inherited Members | |
![]() | |
using | TypeTableVec = std::vector< TypeTable > |
![]() | |
static QString | TableToString (uint type, const TypeTableVec &table) |
static uint | TableFromString (const QString &type, const TypeTableVec &table) |
![]() | |
uint | m_devid |
dvbdev_t | m_devType {kTypeLNB} |
QString | m_desc |
DiSEqCDevTree & | m_tree |
DiSEqCDevDevice * | m_parent {nullptr} |
uint | m_ordinal {0} |
uint | m_repeat {1} |
|
inline |
|
override |
Definition at line 2106 of file diseqc.cpp.
|
overridevirtual |
Resets to the last known settings for this device.
Device will not actually have commands issued until next Execute() method.
Reimplemented from DiSEqCDevDevice.
Definition at line 2111 of file diseqc.cpp.
Referenced by DiSEqCDevSCR().
|
overridevirtual |
Applies DiSEqC settings to this node and any children.
settings | Configuration chain to apply. |
tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 2117 of file diseqc.cpp.
bool DiSEqCDevSCR::PowerOff | ( | void | ) | const |
Definition at line 2179 of file diseqc.cpp.
|
overridevirtual |
Loads this device from the database.
Implements DiSEqCDevDevice.
Definition at line 2236 of file diseqc.cpp.
|
overridevirtual |
Stores this device to the database.
Implements DiSEqCDevDevice.
Definition at line 2287 of file diseqc.cpp.
|
inline |
Definition at line 402 of file diseqc.h.
Referenced by SCRUserBandSetting::Save().
|
inline |
Definition at line 403 of file diseqc.h.
Referenced by SCRFrequencySetting::Save().
|
inline |
Definition at line 404 of file diseqc.h.
Referenced by SCRPINSetting::Save().
|
overridevirtual |
Changes the nth child of this node.
ordinal | Child number (starting at 0). |
device | New child device. (may be nullptr) |
Reimplemented from DiSEqCDevDevice.
Definition at line 2348 of file diseqc.cpp.
Referenced by Load().
|
inline |
Definition at line 408 of file diseqc.h.
Referenced by SCRUserBandSetting::Load().
|
inline |
Definition at line 409 of file diseqc.h.
Referenced by SCRFrequencySetting::Load().
|
inline |
Definition at line 410 of file diseqc.h.
Referenced by SCRPINSetting::Load().
|
inlineoverridevirtual |
Retrieves the proper number of children for this node.
Reimplemented from DiSEqCDevDevice.
|
inlineoverridevirtual |
Determines if this device or any child will be sending a command for the given configuration chain.
settings | Configuration chain in effect. |
tuning | Tuning parameters. |
Reimplemented from DiSEqCDevDevice.
|
overridevirtual |
Retrives the desired voltage for this config.
settings | Configuration chain in effect. |
tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 2224 of file diseqc.cpp.
uint32_t DiSEqCDevSCR::GetIntermediateFrequency | ( | uint32_t | frequency | ) | const |
Definition at line 2230 of file diseqc.cpp.
Referenced by DVBChannel::Tune().
|
inlineoverridevirtual |
Retrieves the selected child for this configuration, if any.
settings | Configuration chain in effect. |
Reimplemented from DiSEqCDevDevice.
|
inlineoverridevirtual |
Retrieves the nth child of this node.
ordinal | Child number (starting at 0). |
Reimplemented from DiSEqCDevDevice.
|
inlinestatic |
Definition at line 427 of file diseqc.h.
Referenced by SCRPositionSetting::SCRPositionSetting().
|
inlinestatic |
Definition at line 2205 of file diseqc.cpp.
Referenced by Execute(), and PowerOff().
|
private |
Definition at line 437 of file diseqc.h.
Referenced by Execute(), GetUserBand(), Load(), PowerOff(), SetUserBand(), and Store().
|
private |
Definition at line 438 of file diseqc.h.
Referenced by Execute(), GetFrequency(), GetIntermediateFrequency(), Load(), SetFrequency(), and Store().
|
private |
|
private |
Definition at line 441 of file diseqc.h.
Referenced by GetChild(), GetSelectedChild(), Load(), Reset(), SetChild(), Store(), and ~DiSEqCDevSCR().
|
staticprivate |
Definition at line 443 of file diseqc.h.
Referenced by SCRPositionFromString(), and SCRPositionToString().