FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashADSetInfo.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_flash.h
"
3
4
bool
FlashADSetInfo
(
tAutoDescrambleTimer
*ADTimer)
5
{
6
TRACEENTER
();
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
{
33
TYPE_AutoDescrambleTimer
*p;
34
35
p = (
TYPE_AutoDescrambleTimer
*)(
FIS_vFlashBlockAutoDec
());
36
if
(p) ret =
FlashADEncode
(p, ADTimer);
37
break
;
38
}
39
40
case
ST_TMST
:
41
{
42
TYPE_AutoDescrambleTimer
*p;
43
44
p = (
TYPE_AutoDescrambleTimer
*)(
FIS_vFlashBlockAutoDec
());
45
if
(p) ret =
FlashADEncode
(p, ADTimer);
46
break
;
47
}
48
49
case
ST_TMSC
:
50
{
51
TYPE_AutoDescrambleTimer
*p;
52
53
p = (
TYPE_AutoDescrambleTimer
*)(
FIS_vFlashBlockAutoDec
());
54
if
(p) ret =
FlashADEncode
(p, ADTimer);
55
break
;
56
}
57
58
case
ST_NRTYPES
:
break
;
59
}
60
61
TRACEEXIT
();
62
return
ret;
63
}
FBLib_flash.h
FIS_vFlashBlockAutoDec
dword FIS_vFlashBlockAutoDec(void)
Definition:
FIS_vFlashBlockAutoDec.c:3
FlashADEncode
bool FlashADEncode(void *Data, tAutoDescrambleTimer *ADTimer)
Definition:
FlashADLowLevel.c:140
FlashADSetInfo
bool FlashADSetInfo(tAutoDescrambleTimer *ADTimer)
Definition:
FlashADSetInfo.c:4
GetSystemType
SYSTEM_TYPE GetSystemType(void)
Definition:
GetSystemType.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
ST_CT
@ ST_CT
Definition:
libFireBird.h:77
ST_T
@ ST_T
Definition:
libFireBird.h:69
ST_TMSC
@ ST_TMSC
Definition:
libFireBird.h:74
ST_UNKNOWN
@ ST_UNKNOWN
Definition:
libFireBird.h:67
ST_T5700
@ ST_T5700
Definition:
libFireBird.h:71
ST_TMST
@ ST_TMST
Definition:
libFireBird.h:73
ST_T5800
@ ST_T5800
Definition:
libFireBird.h:75
ST_TMSS
@ ST_TMSS
Definition:
libFireBird.h:72
ST_ST
@ ST_ST
Definition:
libFireBird.h:76
ST_NRTYPES
@ ST_NRTYPES
Definition:
libFireBird.h:79
ST_TF7k7HDPVR
@ ST_TF7k7HDPVR
Definition:
libFireBird.h:78
ST_S
@ ST_S
Definition:
libFireBird.h:68
ST_C
@ ST_C
Definition:
libFireBird.h:70
TYPE_AutoDescrambleTimer
Definition:
FBLib_flash.h:199
tAutoDescrambleTimer
Definition:
libFireBird.h:1710
flash
FlashADSetInfo.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3