+ case FEC_1_2: tmp = eDVBFrontendParametersSatellite::FEC_1_2; break;
+ case FEC_2_3: tmp = eDVBFrontendParametersSatellite::FEC_2_3; break;
+ case FEC_3_4: tmp = eDVBFrontendParametersSatellite::FEC_3_4; break;
+ case FEC_3_5: tmp = eDVBFrontendParametersSatellite::FEC_3_5; break;
+ case FEC_4_5: tmp = eDVBFrontendParametersSatellite::FEC_4_5; break;
+ case FEC_5_6: tmp = eDVBFrontendParametersSatellite::FEC_5_6; break;
+ case FEC_7_8: tmp = eDVBFrontendParametersSatellite::FEC_7_8; break;
+ case FEC_8_9: tmp = eDVBFrontendParametersSatellite::FEC_8_9; break;
+ case FEC_9_10: tmp = eDVBFrontendParametersSatellite::FEC_9_10; break;
+ case FEC_NONE: tmp = eDVBFrontendParametersSatellite::FEC_None; break;
+ case FEC_AUTO: tmp = eDVBFrontendParametersSatellite::FEC_Auto; break;
+ default: eDebug("got unsupported FEC from frontend! report as FEC_AUTO!\n");
+ }
+
+ switch (p[0].u.data)
+ {
+ default: eDebug("got unsupported system from frontend! report as DVBS!");
+ case SYS_DVBS: tmp = eDVBFrontendParametersSatellite::System_DVB_S; break;
+ case SYS_DVBS2:
+ {
+ switch (p[2].u.data)
+ {
+ default: eDebug("got unsupported rolloff from frontend! report as 0_20!");
+ case ROLLOFF_20: tmp = eDVBFrontendParametersSatellite::RollOff_alpha_0_20; break;
+ case ROLLOFF_25: tmp = eDVBFrontendParametersSatellite::RollOff_alpha_0_25; break;
+ case ROLLOFF_35: tmp = eDVBFrontendParametersSatellite::RollOff_alpha_0_35; break;
+ }
+ PutToDict(dict, "rolloff", tmp);
+
+ switch (p[3].u.data)
+ {
+ case PILOT_OFF: tmp = eDVBFrontendParametersSatellite::Pilot_Off; break;
+ case PILOT_ON: tmp = eDVBFrontendParametersSatellite::Pilot_On; break;
+ case PILOT_AUTO: tmp = eDVBFrontendParametersSatellite::Pilot_Unknown; break;
+ }
+ PutToDict(dict, "pilot", tmp);
+
+ tmp = eDVBFrontendParametersSatellite::System_DVB_S2; break;
+ }
+ }
+ PutToDict(dict, "system", tmp);
+
+ switch (p[1].u.data)
+ {
+ default: eDebug("got unsupported modulation from frontend! report as QPSK!");
+ case QPSK: tmp = eDVBFrontendParametersSatellite::Modulation_QPSK; break;
+ case PSK_8: tmp = eDVBFrontendParametersSatellite::Modulation_8PSK; break;
+ }
+ PutToDict(dict, "modulation", tmp);
+}
+
+#else
+static void fillDictWithSatelliteData(ePyObject dict, const FRONTENDPARAMETERS &parm, long freq_offset, int orb_pos, int polarization)
+{
+ long tmp=0;
+ int frequency = parm_frequency + freq_offset;
+ PutToDict(dict, "frequency", frequency);
+ PutToDict(dict, "symbol_rate", parm_u_qpsk_symbol_rate);
+ PutToDict(dict, "orbital_position", orb_pos);
+ PutToDict(dict, "polarization", polarization);
+
+ switch(parm_u_qpsk_fec_inner)
+ {
+ case FEC_1_2: tmp = eDVBFrontendParametersSatellite::FEC_1_2; break;
+ case FEC_2_3: tmp = eDVBFrontendParametersSatellite::FEC_2_3; break;
+ case FEC_3_4: tmp = eDVBFrontendParametersSatellite::FEC_3_4; break;
+ case FEC_5_6: tmp = eDVBFrontendParametersSatellite::FEC_5_6; break;
+ case FEC_7_8: tmp = eDVBFrontendParametersSatellite::FEC_7_8; break;
+ case FEC_NONE: tmp = eDVBFrontendParametersSatellite::FEC_None; break;