FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashSatTablesGetTotal.c
Go to the documentation of this file.
1
#include "
FBLib_flash.h
"
2
3
int
FlashSatTablesGetTotal
(
void
)
4
{
5
TRACEENTER
();
6
7
TYPE_SatInfo_TMSS
*SatInfo_TMSS;
8
int
i, ret;
9
10
ret = 0;
11
SatInfo_TMSS = (
TYPE_SatInfo_TMSS
*)
FIS_vFlashBlockSatInfo
();
12
if
(SatInfo_TMSS)
13
{
14
switch
(
GetSystemType
())
15
{
16
case
ST_UNKNOWN
:
17
case
ST_S
:
18
case
ST_ST
:
19
case
ST_T
:
20
case
ST_C
:
21
case
ST_CT
:
22
case
ST_T5700
:
23
case
ST_T5800
:
24
case
ST_TF7k7HDPVR
:
break
;
25
26
case
ST_TMSS
:
27
{
28
i = 0;
29
while
(SatInfo_TMSS->
SatName
[0])
30
{
31
i++;
32
SatInfo_TMSS++;
33
}
34
35
ret = i;
36
break
;
37
}
38
39
case
ST_TMST
:
40
case
ST_TMSC
:
41
{
42
ret = 1;
43
break
;
44
}
45
46
case
ST_NRTYPES
:
break
;
47
}
48
}
49
50
TRACEEXIT
();
51
return
ret;
52
}
FBLib_flash.h
FIS_vFlashBlockSatInfo
dword FIS_vFlashBlockSatInfo(void)
Definition:
FIS_vFlashBlockSatInfo.c:3
FlashSatTablesGetTotal
int FlashSatTablesGetTotal(void)
Definition:
FlashSatTablesGetTotal.c:3
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
tFlashSatTable
Definition:
libFireBird.h:1586
tFlashSatTable::SatName
char SatName[MAX_SatName]
Definition:
libFireBird.h:1589
flash
FlashSatTablesGetTotal.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3