FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_GetControl.c
Go to the documentation of this file.
1#include "FBLib_tmsvfd.h"
2
3bool VFDUsedByTAP = FALSE;
4byte *grid = NULL;
5
6bool VFD_GetControl(bool GiveControl)
7{
9
10 void (*ApplNewVfd_Start)(void);
11 void (*ApplNewVfd_Stop)(void);
12
13 if(VFDUsedByTAP == GiveControl)
14 {
15 TRACEEXIT();
16 return FALSE;
17 }
18
19 if(GiveControl)
20 {
23 {
24 TRACEEXIT();
25 return FALSE;
26 }
28 }
29 else
30 {
31 ApplNewVfd_Start = (void*)FIS_fwApplVfdStart();
32 if(!ApplNewVfd_Start)
33 {
34 TRACEEXIT();
35 return FALSE;
36 }
37
38 ApplNewVfd_Start();
39 }
40
41 VFDUsedByTAP = GiveControl;
42
43 TRACEEXIT();
44 return TRUE;
45}
void ApplNewVfd_Stop(void)
dword FIS_fwApplVfdStart(void)
dword FIS_fwApplVfdStop(void)
byte * grid
Definition: VFD_GetControl.c:4
bool VFD_GetControl(bool GiveControl)
Definition: VFD_GetControl.c:6
bool VFDUsedByTAP
Definition: VFD_GetControl.c:3
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243