LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
d_lcd.c File Reference
#include "lms2012.h"
#include "c_ui.h"
#include "d_lcd.h"
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <errno.h>
#include <endian.h>
#include <linux/fb.h>
#include "normal_font.xbm"
#include "small_font.xbm"
#include "large_font.xbm"
#include "tiny_font.xbm"
#include "normal_icons.xbm"
#include "small_icons.xbm"
#include "large_icons.xbm"
#include "menu_icons.xbm"
#include "arrow_icons.xbm"

Go to the source code of this file.

Data Structures

struct  FONTINFO
 
struct  ICONINFO
 

Macros

#define FBCTL(cmd, arg)
 

Functions

void dLcdExec (LCD *pDisp)
 
void dLcdUpdate (LCD *pDisp)
 
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 dLcdInversePixel (UBYTE *pImage, DATA16 X0, DATA16 Y0)
 
DATA8 dLcdReadPixel (UBYTE *pImage, 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 dLcdPlotPoints (UBYTE *pImage, DATA8 Color, 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)
 
UBYTEdLcdGetIconBits (DATA8 Type)
 
DATA16 dLcdGetIconWidth (DATA8 Type)
 
DATA16 dLcdGetIconHeight (DATA8 Type)
 
DATA16 dLcdGetNoOfIcons (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 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 dLcdPlotLines (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 X1, DATA16 Y1)
 
void dLcdDrawFilledCircle (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0, DATA16 R)
 
DATA8 dLcdCheckPixel (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0)
 
void dLcdFlodfill (UBYTE *pImage, DATA8 Color, DATA16 X0, DATA16 Y0)
 

Variables

struct fb_var_screeninfo var
 
struct fb_fix_screeninfo fix
 
int dll
 
int fll
 
unsigned char * dbuf =NULL
 
UBYTE PixelTab []
 
FONTINFO FontInfo []
 
ICONINFO IconInfo []
 

Macro Definition Documentation

#define FBCTL (   cmd,
  arg 
)
Value:
if(ioctl(UiInstance.DispFile, cmd, arg) == -1) { \
void LogErrorNumber(ERR Err)
Definition: lms2012.c:445
#define UiInstance
Definition: c_ui.h:460

Definition at line 51 of file d_lcd.c.

Function Documentation

DATA8 dLcdCheckPixel ( UBYTE pImage,
DATA8  Color,
DATA16  X0,
DATA16  Y0 
)

Definition at line 1327 of file d_lcd.c.

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 dLcdExec ( LCD *  pDisp)

Definition at line 74 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.

UBYTE* dLcdGetIconBits ( DATA8  Type)

Definition at line 1001 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.

DATA16 dLcdGetNoOfIcons ( DATA8  Type)

Definition at line 1023 of file d_lcd.c.

void dLcdInit ( UBYTE pImage)

Definition at line 179 of file d_lcd.c.

void dLcdInversePixel ( UBYTE pImage,
DATA16  X0,
DATA16  Y0 
)

Definition at line 546 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.

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

Definition at line 1294 of file d_lcd.c.

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

Definition at line 697 of file d_lcd.c.

UBYTE dLcdRead ( void  )

Definition at line 199 of file d_lcd.c.

DATA8 dLcdReadPixel ( UBYTE pImage,
DATA16  X0,
DATA16  Y0 
)

Definition at line 555 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 *  pDisp)

Definition at line 167 of file d_lcd.c.

Variable Documentation

unsigned char* dbuf =NULL

Definition at line 58 of file d_lcd.c.

int dll

Definition at line 57 of file d_lcd.c.

struct fb_fix_screeninfo fix

Definition at line 56 of file d_lcd.c.

int fll

Definition at line 57 of file d_lcd.c.

FONTINFO FontInfo[]

Definition at line 752 of file d_lcd.c.

ICONINFO IconInfo[]

Definition at line 966 of file d_lcd.c.

UBYTE PixelTab[]
Initial value:
=
{
0x00,
0xE0,
0x1C,
0xFC,
0x03,
0xE3,
0x1F,
0xFF
}

Definition at line 61 of file d_lcd.c.

struct fb_var_screeninfo var

Definition at line 55 of file d_lcd.c.