4static bool FlashTimerEncode_ST_TMSS(TYPE_Timer_TMSS *Data,
tFlashTimer *TimerInfo)
8 memset(Data, 0,
sizeof(TYPE_Timer_TMSS));
10 Data->TimerInfo.TunerIndex = TimerInfo->
TunerIndex;
11 Data->TimerInfo.RecMode = TimerInfo->
RecMode;
12 Data->TimerInfo.DemuxPath = TimerInfo->
DemuxPath;
13 Data->TimerInfo.ManualRec = TimerInfo->
ManualRec;
14 Data->TimerInfo.unused1 = TimerInfo->
unused1;
15 Data->TimerInfo.SatIndex = TimerInfo->
SatIndex;
16 Data->TimerInfo.ServiceType = TimerInfo->
ServiceType;
18 Data->TimerInfo.unused2 = TimerInfo->
unused2;
19 Data->TimerInfo.ServiceID = TimerInfo->
ServiceID;
20 Data->TimerInfo.Duration = TimerInfo->
Duration;
21 Data->TimerInfo.unused3 = TimerInfo->
unused3;
22 strncpy(Data->TimerInfo.FileName, TimerInfo->
FileName, 130);
23 Data->TimerInfo.StartTime = TimerInfo->
StartTime;
24 Data->TimerInfo.EndTime = TimerInfo->
EndTime;
25 Data->TimerInfo.PMTPID = TimerInfo->
PMTPID;
26 Data->TimerInfo.isRec = TimerInfo->
isRec;
27 Data->TimerInfo.NameSet = TimerInfo->
NameSet;
28 Data->TimerInfo.unused4 = TimerInfo->
unused4;
29 Data->TimerInfo.EPGMarker = TimerInfo->
EPGMarker;
30 Data->TimerInfo.unused5 = TimerInfo->
unused5;
31 Data->TimerInfo.unknown1 = TimerInfo->
unknown1;
32 Data->TimerInfo.EventID1 = TimerInfo->
EventID1;
33 Data->TimerInfo.EventID2 = TimerInfo->
EventID2;
35 memcpy(Data->TimerInfo.unused8, TimerInfo->
unused8,
sizeof(Data->TimerInfo.unused8));
36 Data->TimerInfo.IceTV = TimerInfo->
IceTV;
37 memcpy(Data->TimerInfo.unused9, TimerInfo->
unused9,
sizeof(Data->TimerInfo.unused9));
43 Data->TpInfo.FECMode = TimerInfo->
TpInfo.
FEC;
59static bool FlashTimerEncode_ST_TMST(TYPE_Timer_TMST *Data,
tFlashTimer *TimerInfo)
63 memset(Data, 0,
sizeof(TYPE_Timer_TMST));
65 Data->TimerInfo.TunerIndex = TimerInfo->
TunerIndex;
66 Data->TimerInfo.RecMode = TimerInfo->
RecMode;
67 Data->TimerInfo.DemuxPath = TimerInfo->
DemuxPath;
68 Data->TimerInfo.ManualRec = TimerInfo->
ManualRec;
69 Data->TimerInfo.unused1 = TimerInfo->
unused1;
70 Data->TimerInfo.SatIndex = TimerInfo->
SatIndex;
71 Data->TimerInfo.ServiceType = TimerInfo->
ServiceType;
73 Data->TimerInfo.unused2 = TimerInfo->
unused2;
74 Data->TimerInfo.ServiceID = TimerInfo->
ServiceID;
75 Data->TimerInfo.Duration = TimerInfo->
Duration;
76 Data->TimerInfo.unused3 = TimerInfo->
unused3;
77 strncpy(Data->TimerInfo.FileName, TimerInfo->
FileName, 130);
78 Data->TimerInfo.StartTime = TimerInfo->
StartTime;
79 Data->TimerInfo.EndTime = TimerInfo->
EndTime;
80 Data->TimerInfo.PMTPID = TimerInfo->
PMTPID;
81 Data->TimerInfo.isRec = TimerInfo->
isRec;
82 Data->TimerInfo.NameSet = TimerInfo->
NameSet;
83 Data->TimerInfo.unused4 = TimerInfo->
unused4;
84 Data->TimerInfo.EPGMarker = TimerInfo->
EPGMarker;
85 Data->TimerInfo.unused5 = TimerInfo->
unused5;
86 Data->TimerInfo.unknown1 = TimerInfo->
unknown1;
87 Data->TimerInfo.EventID1 = TimerInfo->
EventID1;
88 Data->TimerInfo.EventID2 = TimerInfo->
EventID2;
90 memcpy(Data->TimerInfo.unused8, TimerInfo->
unused8,
sizeof(Data->TimerInfo.unused8));
91 Data->TimerInfo.IceTV = TimerInfo->
IceTV;
92 memcpy(Data->TimerInfo.unused9, TimerInfo->
unused9,
sizeof(Data->TimerInfo.unused9));
93 memcpy(Data->unused10, TimerInfo->
unused10,
sizeof(Data->unused10));
110static bool FlashTimerEncode_ST_TMST200(TYPE_Timer_TMST200 *Data,
tFlashTimer *TimerInfo)
114 memset(Data, 0,
sizeof(TYPE_Timer_TMST200));
116 Data->TimerInfo.TunerIndex = TimerInfo->
TunerIndex;
117 Data->TimerInfo.RecMode = TimerInfo->
RecMode;
118 Data->TimerInfo.DemuxPath = TimerInfo->
DemuxPath;
119 Data->TimerInfo.ManualRec = TimerInfo->
ManualRec;
120 Data->TimerInfo.unused1 = TimerInfo->
unused1;
121 Data->TimerInfo.SatIndex = TimerInfo->
SatIndex;
122 Data->TimerInfo.ServiceType = TimerInfo->
ServiceType;
124 Data->TimerInfo.unused2 = TimerInfo->
unused2;
125 Data->TimerInfo.ServiceID = TimerInfo->
ServiceID;
126 Data->TimerInfo.Duration = TimerInfo->
Duration;
127 Data->TimerInfo.unused3 = TimerInfo->
unused3;
128 strncpy(Data->TimerInfo.FileName, TimerInfo->
FileName, 130);
129 Data->TimerInfo.StartTime = TimerInfo->
StartTime;
130 Data->TimerInfo.EndTime = TimerInfo->
EndTime;
131 Data->TimerInfo.PMTPID = TimerInfo->
PMTPID;
132 Data->TimerInfo.isRec = TimerInfo->
isRec;
133 Data->TimerInfo.NameSet = TimerInfo->
NameSet;
134 Data->TimerInfo.unused4 = TimerInfo->
unused4;
135 Data->TimerInfo.EPGMarker = TimerInfo->
EPGMarker;
136 Data->TimerInfo.unused5 = TimerInfo->
unused5;
137 Data->TimerInfo.unknown1 = TimerInfo->
unknown1;
138 Data->TimerInfo.EventID1 = TimerInfo->
EventID1;
139 Data->TimerInfo.EventID2 = TimerInfo->
EventID2;
141 memcpy(Data->TimerInfo.unused8, TimerInfo->
unused8,
sizeof(Data->TimerInfo.unused8));
142 Data->TimerInfo.IceTV = TimerInfo->
IceTV;
143 memcpy(Data->TimerInfo.unused9, TimerInfo->
unused9,
sizeof(Data->TimerInfo.unused9));
160static bool FlashTimerEncode_ST_TMST360(TYPE_Timer_TMST360 *Data,
tFlashTimer *TimerInfo)
164 memset(Data, 0,
sizeof(TYPE_Timer_TMST360));
166 Data->TimerInfo.TunerIndex = TimerInfo->
TunerIndex;
167 Data->TimerInfo.RecMode = TimerInfo->
RecMode;
168 Data->TimerInfo.DemuxPath = TimerInfo->
DemuxPath;
169 Data->TimerInfo.ManualRec = TimerInfo->
ManualRec;
170 Data->TimerInfo.unused1 = TimerInfo->
unused1;
171 Data->TimerInfo.SatIndex = TimerInfo->
SatIndex;
172 Data->TimerInfo.ServiceType = TimerInfo->
ServiceType;
174 Data->TimerInfo.unused2 = TimerInfo->
unused2;
175 Data->TimerInfo.ServiceID = TimerInfo->
ServiceID;
176 Data->TimerInfo.Duration = TimerInfo->
Duration;
177 Data->TimerInfo.unused3 = TimerInfo->
unused3;
178 strncpy(Data->TimerInfo.FileName, TimerInfo->
FileName, 130);
179 Data->TimerInfo.StartTime = TimerInfo->
StartTime;
180 Data->TimerInfo.EndTime = TimerInfo->
EndTime;
181 Data->TimerInfo.PMTPID = TimerInfo->
PMTPID;
182 Data->TimerInfo.isRec = TimerInfo->
isRec;
183 Data->TimerInfo.NameSet = TimerInfo->
NameSet;
184 Data->TimerInfo.unused4 = TimerInfo->
unused4;
185 Data->TimerInfo.EPGMarker = TimerInfo->
EPGMarker;
186 Data->TimerInfo.unused5 = TimerInfo->
unused5;
187 Data->TimerInfo.unknown1 = TimerInfo->
unknown1;
188 Data->TimerInfo.EventID1 = TimerInfo->
EventID1;
189 Data->TimerInfo.EventID2 = TimerInfo->
EventID2;
191 memcpy(Data->TimerInfo.unused8, TimerInfo->
unused8,
sizeof(Data->TimerInfo.unused8));
192 Data->TimerInfo.IceTV = TimerInfo->
IceTV;
193 memcpy(Data->TimerInfo.unused9, TimerInfo->
unused9,
sizeof(Data->TimerInfo.unused9));
194 memcpy(Data->unused10, TimerInfo->
unused10,
sizeof(Data->unused10));
222static bool FlashTimerEncode_ST_TMSC(TYPE_Timer_TMSC *Data,
tFlashTimer *TimerInfo)
226 memset(Data, 0,
sizeof(TYPE_Timer_TMSC));
228 Data->TimerInfo.TunerIndex = TimerInfo->
TunerIndex;
229 Data->TimerInfo.RecMode = TimerInfo->
RecMode;
230 Data->TimerInfo.DemuxPath = TimerInfo->
DemuxPath;
231 Data->TimerInfo.ManualRec = TimerInfo->
ManualRec;
232 Data->TimerInfo.unused1 = TimerInfo->
unused1;
233 Data->TimerInfo.SatIndex = TimerInfo->
SatIndex;
234 Data->TimerInfo.ServiceType = TimerInfo->
ServiceType;
236 Data->TimerInfo.unused2 = TimerInfo->
unused2;
237 Data->TimerInfo.ServiceID = TimerInfo->
ServiceID;
238 Data->TimerInfo.Duration = TimerInfo->
Duration;
239 Data->TimerInfo.unused3 = TimerInfo->
unused3;
240 strncpy(Data->TimerInfo.FileName, TimerInfo->
FileName, 130);
241 Data->TimerInfo.StartTime = TimerInfo->
StartTime;
242 Data->TimerInfo.EndTime = TimerInfo->
EndTime;
243 Data->TimerInfo.PMTPID = TimerInfo->
PMTPID;
244 Data->TimerInfo.isRec = TimerInfo->
isRec;
245 Data->TimerInfo.NameSet = TimerInfo->
NameSet;
246 Data->TimerInfo.unused4 = TimerInfo->
unused4;
247 Data->TimerInfo.EPGMarker = TimerInfo->
EPGMarker;
248 Data->TimerInfo.unused5 = TimerInfo->
unused5;
249 Data->TimerInfo.unknown1 = TimerInfo->
unknown1;
250 Data->TimerInfo.EventID1 = TimerInfo->
EventID1;
251 Data->TimerInfo.EventID2 = TimerInfo->
EventID2;
253 memcpy(Data->TimerInfo.unused8, TimerInfo->
unused8,
sizeof(Data->TimerInfo.unused8));
254 Data->TimerInfo.IceTV = TimerInfo->
IceTV;
255 memcpy(Data->TimerInfo.unused9, TimerInfo->
unused9,
sizeof(Data->TimerInfo.unused9));
274 if(!Data || !TimerInfo)
296 ret = FlashTimerEncode_ST_TMSS(Data, TimerInfo);
304 ret = FlashTimerEncode_ST_TMST200(Data, TimerInfo);
306 ret = FlashTimerEncode_ST_TMST360(Data, TimerInfo);
308 ret = FlashTimerEncode_ST_TMST(Data, TimerInfo);
315 ret = FlashTimerEncode_ST_TMSC(Data, TimerInfo);
334 if((TimerIndex < 0) || (TimerIndex >= TAP_Timer_GetTotalNum()))
379 TYPE_Timer_TMST200 *p;
391 TYPE_Timer_TMST360 *p;
dword FIS_vFlashBlockTimer(void)
bool FlashTimerEncode(void *Data, tFlashTimer *TimerInfo)
bool FlashTimerSetInfo(int TimerIndex, tFlashTimer *TimerInfo)
int FlashTimerStructSize(void)
SYSTEM_TYPE GetSystemType(void)
tFlashTransponderTable TpInfo