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