FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_TranslateSegments.c
Go to the documentation of this file.
1#include "FBLib_tmsvfd.h"
2#include "VFDSegmentMap.h"
5
6dword VFD_TranslateSegments(byte Character, DISPLAYSTYLE DisplayStyle)
7{
9
10 dword ret;
11
12 ret = 0;
14 switch(DisplayStyle)
15 {
16 case VFD_7: ret = VFDSegmentMap7_c[Character]; break;
17 case VFD_14: ret = VFDSegmentMap14_c[Character]; break;
18 case VFD_17: ret = VFDSegmentMap17_c[Character]; break;
19
20 default:
21 break;
22 }
24 switch(DisplayStyle)
25 {
26 case VFD_7: ret = VFDSegmentMap7_h[Character]; break;
27 case VFD_14: ret = VFDSegmentMap14_h[Character]; break;
28 case VFD_17: ret = VFDSegmentMap17_h[Character]; break;
29
30 default:
31 break;
32 }
33 else
34 switch(DisplayStyle)
35 {
36 case VFD_7: ret = VFDSegmentMap7[Character]; break;
37 case VFD_14: ret = VFDSegmentMap14[Character]; break;
38 case VFD_17: ret = VFDSegmentMap17[Character]; break;
39
40 default:
41 break;
42 }
43
44 TRACEEXIT();
45 return ret;
46}
DISPLAYSTYLE
Definition: FBLib_tmsvfd.h:7
@ VFD_17
Definition: FBLib_tmsvfd.h:10
@ VFD_14
Definition: FBLib_tmsvfd.h:9
@ VFD_7
Definition: FBLib_tmsvfd.h:8
tVFDCharset CurrentCharset
unsigned short int VFDSegmentMap14_c[256]
unsigned int VFDSegmentMap17_c[256]
unsigned char VFDSegmentMap7_c[256]
unsigned char VFDSegmentMap7_h[256]
unsigned short int VFDSegmentMap14_h[256]
unsigned int VFDSegmentMap17_h[256]
unsigned char VFDSegmentMap7[256]
Definition: VFDSegmentMap.h:1
unsigned int VFDSegmentMap17[256]
Definition: VFDSegmentMap.h:73
unsigned short int VFDSegmentMap14[256]
Definition: VFDSegmentMap.h:37
dword VFD_TranslateSegments(byte Character, DISPLAYSTYLE DisplayStyle)
@ CS_8859_5
Definition: libFireBird.h:3046
@ CS_8859_1_HAPPY
Definition: libFireBird.h:3047
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243