FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashADGetInfo.c
Go to the documentation of this file.
1#include <string.h>
2#include "FBLib_flash.h"
3
5{
7
8 bool ret;
9
10 //ADTimer is NULL
11 if(!ADTimer)
12 {
13 TRACEEXIT();
14 return FALSE;
15 }
16
17 ret = FALSE;
18 switch(GetSystemType())
19 {
20 //Unknown and old 5k/6k systems are not supported
21 case ST_UNKNOWN:
22 case ST_S:
23 case ST_ST:
24 case ST_T:
25 case ST_C:
26 case ST_CT:
27 case ST_T5700:
28 case ST_T5800:
29 case ST_TF7k7HDPVR: break;
30
31 case ST_TMSS:
32 {
34
36 if(p) ret = FlashADDecode(p, ADTimer);
37 break;
38 }
39
40 case ST_TMST:
41 {
43
45 if(p) ret = FlashADDecode(p, ADTimer);
46 break;
47 }
48
49 case ST_TMSC:
50 {
52
54 if(p) ret = FlashADDecode(p, ADTimer);
55 break;
56 }
57
58 case ST_NRTYPES: break;
59 }
60
61 TRACEEXIT();
62 return ret;
63}
dword FIS_vFlashBlockAutoDec(void)
bool FlashADGetInfo(tAutoDescrambleTimer *ADTimer)
Definition: FlashADGetInfo.c:4
bool FlashADDecode(void *Data, tAutoDescrambleTimer *ADTimer)
SYSTEM_TYPE GetSystemType(void)
Definition: GetSystemType.c:3
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
@ ST_CT
Definition: libFireBird.h:77
@ ST_T
Definition: libFireBird.h:69
@ ST_TMSC
Definition: libFireBird.h:74
@ ST_UNKNOWN
Definition: libFireBird.h:67
@ ST_T5700
Definition: libFireBird.h:71
@ ST_TMST
Definition: libFireBird.h:73
@ ST_T5800
Definition: libFireBird.h:75
@ ST_TMSS
Definition: libFireBird.h:72
@ ST_ST
Definition: libFireBird.h:76
@ ST_NRTYPES
Definition: libFireBird.h:79
@ ST_TF7k7HDPVR
Definition: libFireBird.h:78
@ ST_S
Definition: libFireBird.h:68
@ ST_C
Definition: libFireBird.h:70