|
MythTV master
|
#include <algorithm>#include <cstring>#include <cmath>#include <thread>#include <sys/time.h>#include <QString>#include "libmythbase/mythconfig.h"#include "libmythbase/compat.h"#include "libmythbase/mythchrono.h"#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythdb.h"#include "libmythbase/mythlogging.h"#include "diseqc.h"#include "dtvmultiplex.h"Go to the source code of this file.
Macros | |
| #define | LOC QString("DiSEqCDevTree: ") |
Enumerations | |
| enum | DISEQC_ADRS : std::uint8_t { DISEQC_ADR_ALL = 0x00 , DISEQC_ADR_SW_ALL = 0x10 , DISEQC_ADR_LNB = 0x11 , DISEQC_ADR_LNB_SW = 0x12 , DISEQC_ADR_SW_BLK = 0x14 , DISEQC_ADR_SW = 0x15 , DISEQC_ADR_SMATV = 0x18 , DISEQC_ADR_POL_ALL = 0x20 , DISEQC_ADR_POL_LIN = 0x21 , DISEQC_ADR_POS_ALL = 0x30 , DISEQC_ADR_POS_AZ = 0x31 , DISEQC_ADR_POS_EL = 0x32 } |
| enum | DISEQC_CMDS : std::uint8_t { DISEQC_CMD_RESET = 0x00 , DISEQC_CMD_CLR_RESET = 0x01 , DISEQC_CMD_WRITE_N0 = 0x38 , DISEQC_CMD_WRITE_N1 = 0x39 , DISEQC_CMD_WRITE_FREQ = 0x58 , DISEQC_CMD_ODU = 0x5A , DISEQC_CMD_ODU_MDU = 0x5C , DISEQC_CMD_HALT = 0x60 , DISEQC_CMD_LMT_OFF = 0x63 , DISEQC_CMD_LMT_E = 0x66 , DISEQC_CMD_LMT_W = 0x67 , DISEQC_CMD_DRIVE_E = 0x68 , DISEQC_CMD_DRIVE_W = 0x69 , DISEQC_CMD_STORE_POS = 0x6a , DISEQC_CMD_GOTO_POS = 0x6b , DISEQC_CMD_GOTO_X = 0x6e } |
Functions | |
| static double | GetCurTimeFloating (void) |
Variables | |
| static constexpr uint8_t | SEC_VOLTAGE_13 { 0 } |
| static constexpr uint8_t | SEC_VOLTAGE_18 { 1 } |
| static constexpr uint8_t | SEC_VOLTAGE_OFF { 2 } |
| static constexpr std::chrono::milliseconds | DISEQC_SHORT_WAIT { 15ms } |
| static constexpr std::chrono::milliseconds | DISEQC_LONG_WAIT { 100ms } |
| static constexpr std::chrono::milliseconds | DISEQC_POWER_ON_WAIT { 500ms } |
| static constexpr std::chrono::milliseconds | DISEQC_POWER_OFF_WAIT { 1s } |
| static constexpr double | TO_RADS { M_PI / 180.0 } |
| static constexpr double | TO_DEC { 180.0 / M_PI } |
| static constexpr double | EPS { 1E-4 } |
| bool | diseqc_bus_already_reset = false |
| #define LOC QString("DiSEqCDevTree: ") |
Definition at line 96 of file diseqc.cpp.
| enum DISEQC_ADRS : std::uint8_t |
Definition at line 56 of file diseqc.cpp.
| enum DISEQC_CMDS : std::uint8_t |
Definition at line 72 of file diseqc.cpp.
|
static |
Definition at line 1676 of file diseqc.cpp.
Referenced by DiSEqCDevRotor::GetProgress(), and DiSEqCDevRotor::StartRotorPositionTracking().
| bool diseqc_bus_already_reset = false |
Definition at line 98 of file diseqc.cpp.
Referenced by DiSEqCDevTree::ResetDiseqc().
|
staticconstexpr |
Definition at line 40 of file diseqc.cpp.
Referenced by DiSEqCDevSwitch::Execute(), DiSEqCDevRotor::Execute(), DiSEqCDevTree::ResetDiseqc(), and DiSEqCDevSCR::SendCommand().
|
staticconstexpr |
Definition at line 42 of file diseqc.cpp.
Referenced by DiSEqCDevTree::ResetDiseqc().
|
staticconstexpr |
Definition at line 41 of file diseqc.cpp.
Referenced by DiSEqCDevTree::ResetDiseqc().
|
staticconstexpr |
Definition at line 39 of file diseqc.cpp.
Referenced by DiSEqCDevTree::Execute(), and DiSEqCDevTree::SendCommand().
|
staticconstexpr |
Definition at line 94 of file diseqc.cpp.
Referenced by DiSEqCDevRotor::ExecuteRotor().
|
staticconstexpr |
Definition at line 33 of file diseqc.cpp.
Referenced by DiSEqCDevSwitch::ExecuteVoltage(), DiSEqCDevSCR::GetVoltage(), DiSEqCDevLNB::GetVoltage(), DiSEqCDevSCR::SendCommand(), and DiSEqCDevTree::SetVoltage().
|
staticconstexpr |
Definition at line 34 of file diseqc.cpp.
Referenced by DiSEqCDevTree::ApplyVoltage(), DiSEqCDevSwitch::ExecuteVoltage(), DiSEqCDevRotor::GetProgress(), DiSEqCDevSwitch::GetVoltage(), DiSEqCDevRotor::GetVoltage(), DiSEqCDevLNB::GetVoltage(), DiSEqCDevTree::ResetDiseqc(), DiSEqCDevSCR::SendCommand(), and DiSEqCDevTree::SetVoltage().
|
staticconstexpr |
Definition at line 35 of file diseqc.cpp.
Referenced by DiSEqCDevTree::ResetDiseqc().
|
staticconstexpr |
Definition at line 92 of file diseqc.cpp.
Referenced by DiSEqCDevRotor::CalculateAzimuth().
|
staticconstexpr |
Definition at line 91 of file diseqc.cpp.
Referenced by DiSEqCDevRotor::CalculateAzimuth().