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
5bool TunerSet(byte Tuner)
6{
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}
dword FIS_vEtcInfo(void)
Definition: FIS_vEtcInfo.c:3
bool TunerSet(byte Tuner)
Definition: TunerSet.c:5
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243