4static bool FlashTransponderTablesDecode_ST_TMSS(TYPE_TpInfo_TMSS *Data,
tFlashTransponderTable *TransponderTable)
9 TransponderTable->
SatIndex = Data->SatIdx;
11 TransponderTable->
ModSystem = Data->ModulationSystem;
12 TransponderTable->
Modulation = Data->ModulationType;
13 TransponderTable->
FEC = Data->FECMode;
14 TransponderTable->
Pilot = Data->Pilot;
15 TransponderTable->
Frequency = Data->Frequency;
16 TransponderTable->
SymbolRate = Data->SymbolRate;
17 TransponderTable->
TSID = Data->TSID;
18 TransponderTable->
ClockSync = Data->AllowTimeSync;
20 TransponderTable->
unused1 = Data->TPMode;
21 TransponderTable->
unused2 = Data->unused2;
22 TransponderTable->
unused3 = Data->unused3;
23 TransponderTable->
unused4 = Data->unused4;
29static bool FlashTransponderTablesDecode_ST_TMST(TYPE_TpInfo_TMST *Data,
tFlashTransponderTable *TransponderTable)
34 TransponderTable->
SatIndex = Data->SatIdx;
35 TransponderTable->
ChannelNr = Data->ChannelNr;
36 TransponderTable->
Bandwidth = Data->Bandwidth;
37 TransponderTable->
Frequency = Data->Frequency;
38 TransponderTable->
TSID = Data->TSID;
39 TransponderTable->
LPHP = Data->LPHP;
41 TransponderTable->
NetworkID = Data->NetworkID;
42 TransponderTable->
unused1 = Data->unused1;
43 TransponderTable->
unused2 = Data->unused2;
49static bool FlashTransponderTablesDecode_ST_TMSC(TYPE_TpInfo_TMSC *Data,
tFlashTransponderTable *TransponderTable)
54 TransponderTable->
Frequency = Data->Frequency >> 8;
55 TransponderTable->
SymbolRate = Data->SymbolRate;
56 TransponderTable->
TSID = Data->TSID;
58 TransponderTable->
Modulation = Data->ModulationType;
59 TransponderTable->
unused1 = Data->unused1;
72 if(!Data || !TransponderTable)
93 case ST_TMSS: ret = FlashTransponderTablesDecode_ST_TMSS(Data, TransponderTable);
break;
94 case ST_TMST: ret = FlashTransponderTablesDecode_ST_TMST(Data, TransponderTable);
break;
95 case ST_TMSC: ret = FlashTransponderTablesDecode_ST_TMSC(Data, TransponderTable);
break;
105static bool FlashTransponderTablesEncode_ST_TMSS(TYPE_TpInfo_TMSS *Data,
tFlashTransponderTable *TransponderTable)
109 memset(Data, 0,
sizeof(TYPE_TpInfo_TMSS));
110 Data->SatIdx = TransponderTable->
SatIndex;
112 Data->ModulationSystem = TransponderTable->
ModSystem;
113 Data->ModulationType = TransponderTable->
Modulation;
114 Data->FECMode = TransponderTable->
FEC;
115 Data->Pilot = TransponderTable->
Pilot;
116 Data->Frequency = TransponderTable->
Frequency;
117 Data->SymbolRate = TransponderTable->
SymbolRate;
118 Data->TSID = TransponderTable->
TSID;
119 Data->AllowTimeSync = TransponderTable->
ClockSync;
121 Data->TPMode = TransponderTable->
unused1;
122 Data->unused2 = TransponderTable->
unused2;
123 Data->unused3 = TransponderTable->
unused3;
124 Data->unused4 = TransponderTable->
unused4;
130static bool FlashTransponderTablesEncode_ST_TMST(TYPE_TpInfo_TMST *Data,
tFlashTransponderTable *TransponderTable)
134 memset(Data, 0,
sizeof(TYPE_TpInfo_TMST));
135 Data->SatIdx = TransponderTable->
SatIndex;
136 Data->ChannelNr = TransponderTable->
ChannelNr;
137 Data->Bandwidth = TransponderTable->
Bandwidth;
138 Data->Frequency = TransponderTable->
Frequency;
139 Data->TSID = TransponderTable->
TSID;
140 Data->LPHP = TransponderTable->
LPHP;
142 Data->NetworkID = TransponderTable->
NetworkID;
143 Data->unused1 = TransponderTable->
unused1;
144 Data->unused2 = TransponderTable->
unused2;
150static bool FlashTransponderTablesEncode_ST_TMSC(TYPE_TpInfo_TMSC *Data,
tFlashTransponderTable *TransponderTable)
154 memset(Data, 0,
sizeof(TYPE_TpInfo_TMSC));
155 Data->Frequency = TransponderTable->
Frequency << 8;
156 Data->SymbolRate = TransponderTable->
SymbolRate;
157 Data->TSID = TransponderTable->
TSID;
159 Data->ModulationType = TransponderTable->
Modulation;
160 Data->unused1 = TransponderTable->
unused1;
173 if(!Data || !TransponderTable)
193 case ST_TMSS: ret = FlashTransponderTablesEncode_ST_TMSS(Data, TransponderTable);
break;
194 case ST_TMST: ret = FlashTransponderTablesEncode_ST_TMST(Data, TransponderTable);
break;
195 case ST_TMSC: ret = FlashTransponderTablesEncode_ST_TMSC(Data, TransponderTable);
break;
bool FlashTransponderTablesDecode(void *Data, tFlashTransponderTable *TransponderTable)
bool FlashTransponderTablesEncode(void *Data, tFlashTransponderTable *TransponderTable)
SYSTEM_TYPE GetSystemType(void)