FireBirdLib - Topfield TMS PVR TAP Programming Library
TunerSet.c
Go to the documentation of this file.
1
#include "
FBLib_av.h
"
2
#include "
libFireBird.h
"
3
4
//It is not possible to set the tuner for the PIP
5
bool
TunerSet
(
byte
Tuner)
6
{
7
TRACEENTER
();
8
9
int
tvRadio, chNum;
10
byte
*__etcInfo;
11
12
//Parameter sanity check
13
if
(Tuner > 1)
14
{
15
TRACEEXIT
();
16
return
FALSE;
17
}
18
19
if
(!(__etcInfo = (
byte
*)
FIS_vEtcInfo
()))
20
{
21
TRACEEXIT
();
22
return
FALSE;
23
}
24
25
__etcInfo[0x12 + CHANNEL_Main] = Tuner;
26
__etcInfo[0x12 + CHANNEL_Sub] = 1 - Tuner;
27
28
TAP_Channel_GetCurrent(&tvRadio, &chNum);
29
TAP_Channel_Start(CHANNEL_Main, tvRadio, chNum);
30
31
TRACEEXIT
();
32
return
TRUE;
33
}
FBLib_av.h
FIS_vEtcInfo
dword FIS_vEtcInfo(void)
Definition:
FIS_vEtcInfo.c:3
TunerSet
bool TunerSet(byte Tuner)
Definition:
TunerSet.c:5
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
av
TunerSet.c
Generated on Fri Apr 29 2022 13:34:00 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3