FireBirdLib - Topfield TMS PVR TAP Programming Library
TimerPaddingAPICheck.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
bool
TimerPaddingAPICheck
(
void
)
4
{
5
TRACEENTER
();
6
7
static
bool
AlreadyChecked = FALSE;
8
static
bool
SysVarRecPaddingSupported = FALSE;
9
int
CurrentRecPaddingFore, TempRecPaddingFore, CurrentRecPaddingRear;
10
11
//Find out if the firmware already supports the SYSVAR_RecPaddingFore and SYSVAR_RecPaddingRear variables
12
if
(!AlreadyChecked)
13
{
14
CurrentRecPaddingFore = TAP_GetSystemVar(SYSVAR_RecPaddingFore);
15
TAP_SetSystemVar(SYSVAR_RecPaddingFore, CurrentRecPaddingFore + 1);
16
TempRecPaddingFore = TAP_GetSystemVar(SYSVAR_RecPaddingFore);
17
18
if
(TempRecPaddingFore == (CurrentRecPaddingFore + 1)) SysVarRecPaddingSupported = TRUE;
19
TAP_SetSystemVar(SYSVAR_RecPaddingFore, CurrentRecPaddingFore);
20
CurrentRecPaddingRear = TAP_GetSystemVar(SYSVAR_RecPaddingRear);
21
22
LogEntryFBLibPrintf
(TRUE,
"TimerPaddingAPICheck: %d %d %d %s"
, CurrentRecPaddingFore, TempRecPaddingFore, CurrentRecPaddingRear, SysVarRecPaddingSupported ?
" true"
:
"false"
);
23
24
AlreadyChecked = TRUE;
25
}
26
27
TRACEEXIT
();
28
return
SysVarRecPaddingSupported;
29
}
LogEntryFBLibPrintf
void LogEntryFBLibPrintf(bool Console, char *format,...)
Definition:
LogEntryFBLibPrintf.c:13
TimerPaddingAPICheck
bool TimerPaddingAPICheck(void)
Definition:
TimerPaddingAPICheck.c:3
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
time
TimerPaddingAPICheck.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3