FireBirdLib - Topfield TMS PVR TAP Programming Library
GetSystemType.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
SYSTEM_TYPE
GetSystemType
(
void
)
4
{
5
TRACEENTER
();
6
7
static
SYSTEM_TYPE
SystemType =
ST_UNKNOWN
;
8
tToppyInfo
*ToppyInfo;
9
tFWDATHeader
*FWDatHeader;
10
int
i;
11
12
if
(SystemType ==
ST_UNKNOWN
)
13
{
14
if
(
LoadFirmwareDat
(&FWDatHeader, &ToppyInfo, NULL))
15
{
16
for
(i = 0; i < (int)FWDatHeader->
NrOfToppyInfoEntries
; i++, ToppyInfo++)
17
{
18
if
(ToppyInfo->
SysID
==
GetSysID
())
19
{
20
SystemType = ToppyInfo->
SystemType
;
21
22
TRACEEXIT
();
23
return
SystemType;
24
}
25
}
26
}
27
}
28
29
TRACEEXIT
();
30
return
SystemType;
31
}
GetSystemType
SYSTEM_TYPE GetSystemType(void)
Definition:
GetSystemType.c:3
libFireBird.h
GetSysID
word GetSysID(void)
Definition:
GetSysID.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
LoadFirmwareDat
bool LoadFirmwareDat(tFWDATHeader **FWDatHeader, tToppyInfo **ToppyInfo, tFWInfo **FWInfo)
Definition:
LoadFirmwareDat.c:7
SYSTEM_TYPE
SYSTEM_TYPE
Definition:
libFireBird.h:66
ST_UNKNOWN
@ ST_UNKNOWN
Definition:
libFireBird.h:67
tFWDATHeader
Definition:
libFireBird.h:106
tFWDATHeader::NrOfToppyInfoEntries
dword NrOfToppyInfoEntries
Definition:
libFireBird.h:111
tToppyInfo
Definition:
libFireBird.h:131
tToppyInfo::SystemType
SYSTEM_TYPE SystemType
Definition:
libFireBird.h:136
tToppyInfo::SysID
word SysID
Definition:
libFireBird.h:132
main
GetSystemType.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3