X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Ffrontend.h;h=c7eb1496d9a9ca5ad8deb90f948a93a1fe359d02;hp=b6e3b6a4299d734e7271604e206438cea0acd8fc;hb=eb510064c67c19fec47fd04ea03017c17569e3c5;hpb=a2897a03034c3a2c176df4fdd2f7f5d32d830270 diff --git a/lib/dvb/frontend.h b/lib/dvb/frontend.h index b6e3b6a..c7eb149 100644 --- a/lib/dvb/frontend.h +++ b/lib/dvb/frontend.h @@ -47,6 +47,9 @@ class eDVBFrontend: public iDVBFrontend, public Object { public: enum { + LINKABLE_CSW, + LINKABLE_UCSW, + LINKABLE_TONEBURST, NEW_CSW, NEW_UCSW, NEW_TONEBURST, @@ -64,6 +67,8 @@ public: CUR_VOLTAGE, // current voltage CUR_TONE, // current continuous tone SATCR, // current SatCR + DICTION, // current diction + PIN, // pin NUM_DATA_ENTRIES }; Signal1 m_stateChanged; @@ -71,12 +76,15 @@ private: DECLARE_REF(eDVBFrontend); bool m_simulate; bool m_enabled; - int m_type; + bool m_fbc; + bool m_is_usbtuner; + eDVBFrontend *m_simulate_fe; // only used to set frontend type in dvb.cpp int m_dvbid; int m_slotid; int m_fd; + bool m_rotor_mode; bool m_need_rotor_workaround; - bool m_can_handle_dvbs2; + std::map m_delsys, m_delsys_whitelist; char m_filename[128]; char m_description[128]; #if HAVE_DVB_API_VERSION < 3 @@ -84,8 +92,8 @@ private: char m_sec_filename[128]; #endif FRONTENDPARAMETERS parm; - int m_cur_orbpos; // only valid when this is a DVB-S tuner - int m_cur_pol; // only valid when this is a DVB-S tuner + eDVBFrontendParameters oparm; + int m_state; ePtr m_sec; ePtr m_sn; @@ -105,15 +113,16 @@ private: void feEvent(int); void timeout(); void tuneLoop(); // called by m_tuneTimer - void setFrontend(); + int tuneLoopInt(); + void setFrontend(bool recvEvents=true); bool setSecSequencePos(int steps); static int PriorityOrder; + static int PreferredFrontendIndex; public: - eDVBFrontend(int adap, int fe, int &ok, bool simulate=false); + eDVBFrontend(int adap, int fe, int &ok, bool simulate=false, eDVBFrontend *simulate_fe=NULL); virtual ~eDVBFrontend(); int readInputpower(); - RESULT getFrontendType(int &type); RESULT tune(const iDVBFrontendParameters &where); RESULT prepare_sat(const eDVBFrontendParametersSatellite &, unsigned int timeout); RESULT prepare_cable(const eDVBFrontendParametersCable &); @@ -125,7 +134,7 @@ public: RESULT sendDiseqc(const eDVBDiseqcCommand &diseqc); RESULT sendToneburst(int burst); RESULT setSEC(iDVBSatelliteEquipmentControl *sec); - RESULT setSecSequence(const eSecCommandList &list); + RESULT setSecSequence(eSecCommandList &list); RESULT getData(int num, long &data); RESULT setData(int num, long val); @@ -140,14 +149,24 @@ public: bool setSlotInfo(ePyObject obj); // get a tuple (slotid, slotdescr) static void setTypePriorityOrder(int val) { PriorityOrder = val; } static int getTypePriorityOrder() { return PriorityOrder; } + static void setPreferredFrontend(int index) { PreferredFrontendIndex = index; } + static int getPreferredFrontend() { return PreferredFrontendIndex; } + bool supportsDeliverySystem(const fe_delivery_system_t &sys, bool obeywhitelist); + void setDeliverySystemWhitelist(const std::vector &whitelist); + + void reopenFrontend(); int openFrontend(); - int closeFrontend(bool force=false); + int closeFrontend(bool force=false, bool no_delayed=false); const char *getDescription() const { return m_description; } bool is_simulate() const { return m_simulate; } - - RESULT turnOffSatCR(int satcr); - RESULT ScanSatCR(); + bool is_FBCTuner() { return m_fbc; } + void setFBCTuner(bool enable) { m_fbc = enable; } + bool getEnabled() { return m_enabled; } + void setEnabled(bool enable) { m_enabled = enable; } + bool isLoopTimerActive() { return m_tuneTimer->isActive(); } + bool isScheduledSendDiseqc(); + void setUSBTuner(bool yesno) { m_is_usbtuner = yesno; } }; #endif // SWIG