FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_EnableHDD.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_tmsvfd.h
"
3
4
bool
HDDEnabled
= FALSE;
5
6
bool
VFD_EnableHDD
(
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
grid
[29] &= 0x1f;
19
grid
[28] &= 0xC0;
20
21
if
(Enable)
22
grid
[28] |= 0x20;
23
24
HDDEnabled
= Enable;
25
26
TRACEEXIT
();
27
return
TRUE;
28
}
FBLib_tmsvfd.h
grid
byte * grid
Definition:
VFD_GetControl.c:4
VFDUsedByTAP
bool VFDUsedByTAP
Definition:
VFD_GetControl.c:3
FIS_vGrid
dword FIS_vGrid(void)
Definition:
FIS_vgrid.c:3
HDDEnabled
bool HDDEnabled
Definition:
VFD_EnableHDD.c:4
VFD_EnableHDD
bool VFD_EnableHDD(bool Enable)
Definition:
VFD_EnableHDD.c:6
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tmsvfd
VFD_EnableHDD.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3