FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_EnableCD.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_tmsvfd.h
"
3
4
bool
CDEnabled
= FALSE;
5
6
bool
VFD_EnableCD
(
bool
Enable)
7
{
8
TRACEENTER
();
9
10
byte
*
grid
= (
byte
*)
FIS_vGrid
();
11
12
if
(!
VFDUsedByTAP
|| !
grid
)
13
{
14
TRACEEXIT
();
15
return
FALSE;
16
}
17
18
if
(
CDEnabledAnimation
)
VFD_EnableCDAnimation
(FALSE);
19
20
grid
[25] &= 0xfc;
21
grid
[26] = 0x00;
22
grid
[27] &= 0x1f;
23
24
if
(Enable)
25
grid
[25] |= 0x02;
26
27
CDEnabled
= Enable;
28
29
TRACEEXIT
();
30
return
TRUE;
31
}
FBLib_tmsvfd.h
grid
byte * grid
Definition:
VFD_GetControl.c:4
VFDUsedByTAP
bool VFDUsedByTAP
Definition:
VFD_GetControl.c:3
CDEnabledAnimation
bool CDEnabledAnimation
Definition:
VFD_EnableCDAnimation.c:4
FIS_vGrid
dword FIS_vGrid(void)
Definition:
FIS_vgrid.c:3
CDEnabled
bool CDEnabled
Definition:
VFD_EnableCD.c:4
VFD_EnableCD
bool VFD_EnableCD(bool Enable)
Definition:
VFD_EnableCD.c:6
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
VFD_EnableCDAnimation
bool VFD_EnableCDAnimation(bool Enable)
Definition:
VFD_EnableCDAnimation.c:6
tmsvfd
VFD_EnableCD.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3