FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_GetControl.c
Go to the documentation of this file.
1
#include "
FBLib_tmsvfd.h
"
2
3
bool
VFDUsedByTAP
= FALSE;
4
byte
*
grid
= NULL;
5
6
bool
VFD_GetControl
(
bool
GiveControl)
7
{
8
TRACEENTER
();
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
{
21
ApplNewVfd_Stop
= (
void
*)
FIS_fwApplVfdStop
();
22
if
(!
ApplNewVfd_Stop
)
23
{
24
TRACEEXIT
();
25
return
FALSE;
26
}
27
ApplNewVfd_Stop
();
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
}
ApplNewVfd_Stop
void ApplNewVfd_Stop(void)
Definition:
ApplNewVfd_Stop.c:3
FBLib_tmsvfd.h
FIS_fwApplVfdStart
dword FIS_fwApplVfdStart(void)
Definition:
FIS_fwApplVfdStart.c:3
FIS_fwApplVfdStop
dword FIS_fwApplVfdStop(void)
Definition:
FIS_fwApplVfdStop.c:3
grid
byte * grid
Definition:
VFD_GetControl.c:4
VFD_GetControl
bool VFD_GetControl(bool GiveControl)
Definition:
VFD_GetControl.c:6
VFDUsedByTAP
bool VFDUsedByTAP
Definition:
VFD_GetControl.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tmsvfd
VFD_GetControl.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3