FireBirdLib - Topfield TMS PVR TAP Programming Library
GetToppyString.c
Go to the documentation of this file.
1
#include "
FBLib_main.h
"
2
3
char
*
GetToppyString
(word SysID)
4
{
5
TRACEENTER
();
6
7
dword i;
8
tToppyInfo
*ToppyInfo;
9
tFWDATHeader
*FWDatHeader;
10
11
if
(
LoadFirmwareDat
(&FWDatHeader, &ToppyInfo, NULL))
12
{
13
for
(i = 0; i < FWDatHeader->
NrOfToppyInfoEntries
; i++, ToppyInfo++)
14
{
15
if
(ToppyInfo->
SysID
== SysID)
16
{
17
TRACEEXIT
();
18
return
ToppyInfo->
Device
;
19
}
20
}
21
}
22
23
TRACEEXIT
();
24
return
"???"
;
25
}
FBLib_main.h
GetToppyString
char * GetToppyString(word SysID)
Definition:
GetToppyString.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
tFWDATHeader
Definition:
libFireBird.h:106
tFWDATHeader::NrOfToppyInfoEntries
dword NrOfToppyInfoEntries
Definition:
libFireBird.h:111
tToppyInfo
Definition:
libFireBird.h:131
tToppyInfo::Device
char Device[256]
Definition:
libFireBird.h:134
tToppyInfo::SysID
word SysID
Definition:
libFireBird.h:132
main
GetToppyString.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3