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
4bool CDEnabled = FALSE;
5
6bool VFD_EnableCD(bool Enable)
7{
9
10 byte *grid = (byte*)FIS_vGrid();
11
12 if(!VFDUsedByTAP || !grid)
13 {
14 TRACEEXIT();
15 return FALSE;
16 }
17
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}
byte * grid
Definition: VFD_GetControl.c:4
bool VFDUsedByTAP
Definition: VFD_GetControl.c:3
bool CDEnabledAnimation
dword FIS_vGrid(void)
Definition: FIS_vgrid.c:3
bool CDEnabled
Definition: VFD_EnableCD.c:4
bool VFD_EnableCD(bool Enable)
Definition: VFD_EnableCD.c:6
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
bool VFD_EnableCDAnimation(bool Enable)