capi/text.c File Reference

#include "io.h"
#include "type.h"
#include "ssd192X.h"
#include "text.h"
#include "color.h"
#include "msg.h"
#include "eeprom.h"
#include "trace.h"
Include dependency graph for text.c:

Defines

#define LARGENUM
#define USESECONDFONT
#define FONT_WIDTH   (8>>2)
#define FONT_HEIGHT   8

Functions

UINT8 getFontWidth (UINT8 nFont)
UINT8 getFontHeight (UINT8 nFont)
UINT8 getFontChars (UINT8 nFont)
UINT8 TextDataLow (UINT8 pIconData)
UINT8 TextDataHigh (UINT8 pIconData)
UINT8 TextDataHigh2 (UINT8 pIconData)
UINT8 TextDataLow2 (UINT8 pIconData)
UINT8 GetFontByte (UINT8 nFont, UINT32 offset)
void CurShapeToSSDMem (int pMemOffset)
void CharToCursorMem (int pMemOffset, int destWidth, const UINT8 iAsciiNum, int iXPos, int iYPos, int iInvert)
void StringToCursorMem (int pMemOffset, int destWidth, const char *str, int iXPos, int iYPos, int iInvert)
void CharTo16bppMem (UINT8 nFont, UINT32 memOffset, UINT16 byWidth, UINT8 bypp, SSDRGBAType *pfrColor, SSDRGBAType *pbkColor, UINT8 nChar, UINT8 *charWidthOut)
void FontCharToPos (UINT8 nFont, UINT16 wndWidth, const char chIn, UINT8 bIsAscii, INT16 *px, INT16 *py, UINT8 *pCharWidth)
void MoveFontToSSD16bppMem (UINT8 nFont, UINT32 memOffset, UINT16 byWidth, UINT8 bypp, SSDRGBAType *pfrColor, SSDRGBAType *pbkColor)

Variables

fontHeaderType fontDesc []
UINT8 bitLookup1 []
UINT8 bitLookup2 []
UINT8 sofaChromeByteLookup []

Define Documentation

#define FONT_HEIGHT   8

Referenced by CharToCursorMem().

#define FONT_WIDTH   (8>>2)

Referenced by CharToCursorMem().

#define LARGENUM
#define USESECONDFONT

Function Documentation

void CharTo16bppMem ( UINT8  nFont,
UINT32  memOffset,
UINT16  byWidth,
UINT8  bypp,
SSDRGBAType pfrColor,
SSDRGBAType pbkColor,
UINT8  nChar,
UINT8 charWidthOut 
)

References SSDRGBAType::a, bitLookup1, bitLookup2, Get16bitColor(), GetFontByte(), getFontHeight(), getFontWidth(), sofaChromeByteLookup, and SSD_MEMWW.

Referenced by MoveFontToSSD16bppMem().

Here is the call graph for this function:

Here is the caller graph for this function:

void CharToCursorMem ( int  pMemOffset,
int  destWidth,
const UINT8  iAsciiNum,
int  iXPos,
int  iYPos,
int  iInvert 
)

References FONT_HEIGHT, FONT_WIDTH, GetFontByte(), SSD_MEMWB, TextDataHigh2(), and TextDataLow2().

Referenced by StringToCursorMem().

Here is the call graph for this function:

Here is the caller graph for this function:

void CurShapeToSSDMem ( int  pMemOffset  ) 

References SSD_MEMWB.

Referenced by main().

Here is the caller graph for this function:

void FontCharToPos ( UINT8  nFont,
UINT16  wndWidth,
const char  chIn,
UINT8  bIsAscii,
INT16 px,
INT16 py,
UINT8 pCharWidth 
)

References GetFontByte(), getFontChars(), getFontHeight(), and getFontWidth().

Referenced by MoveFontToSSD16bppMem(), and TextOut().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT8 GetFontByte ( UINT8  nFont,
UINT32  offset 
)

References Font1Off, Font2Off, Font3Off, and read_I2C_EE().

Referenced by CharTo16bppMem(), CharToCursorMem(), and FontCharToPos().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT8 getFontChars ( UINT8  nFont  ) 

References fontHeaderType::gliphs.

Referenced by FontCharToPos(), and MoveFontToSSD16bppMem().

Here is the caller graph for this function:

UINT8 getFontHeight ( UINT8  nFont  ) 

References fontHeaderType::height.

Referenced by CharTo16bppMem(), FontCharToPos(), and TextOut().

Here is the caller graph for this function:

UINT8 getFontWidth ( UINT8  nFont  ) 

References fontHeaderType::width.

Referenced by CharTo16bppMem(), FontCharToPos(), and TextOut().

Here is the caller graph for this function:

void MoveFontToSSD16bppMem ( UINT8  nFont,
UINT32  memOffset,
UINT16  byWidth,
UINT8  bypp,
SSDRGBAType pfrColor,
SSDRGBAType pbkColor 
)

References CharTo16bppMem(), FontCharToPos(), and getFontChars().

Referenced by RedrawFont().

Here is the call graph for this function:

Here is the caller graph for this function:

void StringToCursorMem ( int  pMemOffset,
int  destWidth,
const char *  str,
int  iXPos,
int  iYPos,
int  iInvert 
)

References CharToCursorMem().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT8 TextDataHigh ( UINT8  pIconData  ) 
UINT8 TextDataHigh2 ( UINT8  pIconData  ) 

Referenced by CharToCursorMem().

Here is the caller graph for this function:

UINT8 TextDataLow ( UINT8  pIconData  ) 
UINT8 TextDataLow2 ( UINT8  pIconData  ) 

Referenced by CharToCursorMem().

Here is the caller graph for this function:


Variable Documentation

Initial value:
 
{
        0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1
}

Referenced by CharTo16bppMem().

Initial value:
 
{
        0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1, 
                0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
                0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1,
                0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1
}

Referenced by CharTo16bppMem().

Initial value:
 
{
        
        {8,             8,         1,      127}, 
        {24,    10,        0,      40},  
        {24,    32,        1,      12}   
}
Initial value:
 
{
        0,1,2,3 
}

Referenced by CharTo16bppMem().

Generated on Wed Mar 23 11:08:34 2011 for Omnima LCD by  doxygen 1.6.3