FireBirdLib - Topfield TMS PVR TAP Programming Library
FM_CharToIndex.c
Go to the documentation of this file.
1
#include "
FBLib_FontManager.h
"
2
3
byte
FM_CharToIndex
(
byte
Char)
4
{
5
TRACEENTER
();
6
7
//0x20 - 0x7e
8
//0xa0 - 0xff
9
if
(!
FM_isValidCharacter
(Char)) Char = 0x20;
10
11
if
(Char > 0x7e) Char -= 0x21;
12
Char -= 0x20;
13
14
TRACEEXIT
();
15
return
(
byte
)Char;
16
}
FBLib_FontManager.h
FM_isValidCharacter
bool FM_isValidCharacter(byte Char)
Definition:
FM_isValidCharacter.c:3
FM_CharToIndex
byte FM_CharToIndex(byte Char)
Definition:
FM_CharToIndex.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
FontManager
FM_CharToIndex.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3