LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
d_lcd.h File Reference

Go to the source code of this file.

Macros

#define LCDClear(I)   memset(I,0 - BG_COLOR,LCD_BUFFER_SIZE)
 
#define LCDClearTopline(I)   memset(I,0 - BG_COLOR,LCD_TOPLINE_SIZE)
 
#define LCDErase(I)   memset(&(I[LCD_TOPLINE_SIZE]),0,LCD_BUFFER_SIZE - LCD_TOPLINE_SIZE)
 
#define LCDCopy(S, D, L)   memcpy((void*)D,(const void*)S,L)
 

Functions

void dLcdUpdate (LCD *pLcd)
 
void dLcdAutoUpdate (void)
 
void dLcdInit (UBYTE *pImage)
 
UBYTE dLcdRead (void)
 
void dLcdExit (void)
 
void dLcdScroll (UBYTE *pImage, DATA16 Y0)
 
void dLcdDrawPixel (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0)
 
void dLcdDrawLine (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1)
 
void dLcdDrawDotLine (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1, DATA16 On, DATA16 Off)
 
void dLcdRect (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1)
 
void dLcdFillRect (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1)
 
void dLcdInverseRect (UBYTE *pImage, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1)
 
void dLcdDrawCircle (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 R)
 
DATA16 dLcdGetFontWidth (DATA8 Font)
 
DATA16 dLcdGetFontHeight (DATA8 Font)
 
void dLcdDrawChar (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA8 Font, DATA8 Char)
 
void dLcdDrawText (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA8 Font, DATA8 *pText)
 
DATA16 dLcdGetIconWidth (DATA8 Type)
 
DATA16 dLcdGetIconHeight (DATA8 Type)
 
void dLcdDrawPicture (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 IconWidth, DATA16 IconHeight, UBYTE *pIconBits)
 
void dLcdDrawIcon (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA8 Type, DATA8 No)
 
void dLcdGetBitmapSize (IP pBitmap, DATA16 *pWidth, DATA16 *pHeight)
 
void dLcdDrawBitmap (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, IP pBitmap)
 
void dLcdDrawFilledCircle (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 R)
 
void dLcdFlodfill (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0)
 

Macro Definition Documentation

#define LCDClear (   I)    memset(I,0 - BG_COLOR,LCD_BUFFER_SIZE)

Definition at line 76 of file d_lcd.h.

#define LCDClearTopline (   I)    memset(I,0 - BG_COLOR,LCD_TOPLINE_SIZE)

Definition at line 78 of file d_lcd.h.

#define LCDCopy (   S,
  D,
 
)    memcpy((void*)D,(const void*)S,L)

Definition at line 82 of file d_lcd.h.

#define LCDErase (   I)    memset(&(I[LCD_TOPLINE_SIZE]),0,LCD_BUFFER_SIZE - LCD_TOPLINE_SIZE)

Definition at line 80 of file d_lcd.h.

Function Documentation

void dLcdAutoUpdate ( void  )
void dLcdDrawBitmap ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
IP  pBitmap 
)

Definition at line 1105 of file d_lcd.c.

void dLcdDrawChar ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA8  Font,
DATA8  Char 
)

Definition at line 802 of file d_lcd.c.

void dLcdDrawCircle ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  R 
)

Definition at line 710 of file d_lcd.c.

void dLcdDrawDotLine ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  X1,
DATA16  Y1,
DATA16  On,
DATA16  Off 
)

Definition at line 622 of file d_lcd.c.

void dLcdDrawFilledCircle ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  R 
)

Definition at line 1303 of file d_lcd.c.

void dLcdDrawIcon ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA8  Type,
DATA8  No 
)

Definition at line 1072 of file d_lcd.c.

void dLcdDrawLine ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  X1,
DATA16  Y1 
)

Definition at line 571 of file d_lcd.c.

void dLcdDrawPicture ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  IconWidth,
DATA16  IconHeight,
UBYTE pIconBits 
)

Definition at line 1029 of file d_lcd.c.

void dLcdDrawPixel ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0 
)

Definition at line 530 of file d_lcd.c.

void dLcdDrawText ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA8  Font,
DATA8 pText 
)

Definition at line 936 of file d_lcd.c.

void dLcdExit ( void  )

Definition at line 205 of file d_lcd.c.

void dLcdFillRect ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  X1,
DATA16  Y1 
)

Definition at line 1254 of file d_lcd.c.

void dLcdFlodfill ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0 
)

Definition at line 1343 of file d_lcd.c.

void dLcdGetBitmapSize ( IP  pBitmap,
DATA16 pWidth,
DATA16 pHeight 
)

Definition at line 1091 of file d_lcd.c.

DATA16 dLcdGetFontHeight ( DATA8  Font)

Definition at line 796 of file d_lcd.c.

DATA16 dLcdGetFontWidth ( DATA8  Font)

Definition at line 790 of file d_lcd.c.

DATA16 dLcdGetIconHeight ( DATA8  Type)

Definition at line 1017 of file d_lcd.c.

DATA16 dLcdGetIconWidth ( DATA8  Type)

Definition at line 1011 of file d_lcd.c.

void dLcdInit ( UBYTE pImage)

Definition at line 179 of file d_lcd.c.

void dLcdInverseRect ( UBYTE pImage,
DATA16  X0,
DATA16  Y0,
DATA16  X1,
DATA16  Y1 
)

Definition at line 1274 of file d_lcd.c.

UBYTE dLcdRead ( void  )

Definition at line 199 of file d_lcd.c.

void dLcdRect ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0,
DATA16  X1,
DATA16  Y1 
)

Definition at line 1243 of file d_lcd.c.

void dLcdScroll ( UBYTE pImage,
DATA16  Y0 
)

Definition at line 522 of file d_lcd.c.

void dLcdUpdate ( LCD *  pLcd)

Definition at line 167 of file d_lcd.c.