Main Page   Compound List   File List   Compound Members   File Members  

lcd.h File Reference

#include "global.h"

Go to the source code of this file.

Defines

#define LCD_H
#define LCD_PORT_INTERFACE
#define LCD_CTRL_PORT   PORTC
#define LCD_CTRL_DDR   DDRC
#define LCD_CTRL_RS   PC2
#define LCD_CTRL_RW   PC3
#define LCD_CTRL_E   PC4
#define LCD_DATA_POUT   PORTA
#define LCD_DATA_PIN   PINA
#define LCD_DATA_DDR   DDRA
#define LCD_DATA_4BIT
#define LCD_LINES   2
#define LCD_LINE_LENGTH   24
#define LCD_CLR   0
#define LCD_HOME   1
#define LCD_ENTRY_MODE   2
#define LCD_ENTRY_INC   1
#define LCD_ENTRY_SHIFT   0
#define LCD_ON_CTRL   3
#define LCD_ON_DISPLAY   2
#define LCD_ON_CURSOR   1
#define LCD_ON_BLINK   0
#define LCD_MOVE   4
#define LCD_MOVE_DISP   3
#define LCD_MOVE_RIGHT   2
#define LCD_FUNCTION   5
#define LCD_FUNCTION_8BIT   4
#define LCD_FUNCTION_2LINES   3
#define LCD_FUNCTION_10DOTS   2
#define LCD_CGRAM   6
#define LCD_DDRAM   7
#define LCD_BUSY   7
#define LCD_FDEF_1   (0<<LCD_FUNCTION_8BIT)
#define LCD_FDEF_2   (1<<LCD_FUNCTION_2LINES)
#define LCD_FUNCTION_DEFAULT   ((1<<LCD_FUNCTION) | LCD_FDEF_1 | LCD_FDEF_2)
#define LCD_MODE_DEFAULT   ((1<<LCD_ENTRY_MODE) | (1<<LCD_ENTRY_INC))
#define LCDCHAR_PROGRESS05   0
#define LCDCHAR_PROGRESS15   1
#define LCDCHAR_PROGRESS25   2
#define LCDCHAR_PROGRESS35   3
#define LCDCHAR_PROGRESS45   4
#define LCDCHAR_PROGRESS55   5
#define LCDCHAR_REWINDARROW   6
#define LCDCHAR_STOPBLOCK   7
#define LCDCHAR_PAUSEBARS   8
#define LCDCHAR_FORWARDARROW   9
#define LCDCHAR_SCROLLUPARROW   10
#define LCDCHAR_SCROLLDNARROW   11
#define LCDCHAR_BLANK   12
#define LCDCHAR_ANIPLAYICON0   13
#define LCDCHAR_ANIPLAYICON1   14
#define LCDCHAR_ANIPLAYICON2   15
#define LCDCHAR_ANIPLAYICON3   16
#define PROGRESSPIXELS_PER_CHAR   6

Functions

void lcdInitHW (void)
void lcdBusyWait (void)
void lcdControlWrite (u08 data)
u08 lcdControlRead (void)
void lcdDataWrite (u08 data)
u08 lcdDataRead (void)
void lcdInit (void)
void lcdHome (void)
void lcdClear (void)
void lcdGotoXY (u08 row, u08 col)
void lcdLoadCustomChar (u08 lcdCharNum, u08 romCharNum)
void lcdPrintData (char *data, u08 nBytes)
void lcdProgressBar (u16 progress, u16 maxprogress, u08 length)


Define Documentation

#define LCDCHAR_ANIPLAYICON0   13
 

Definition at line 141 of file lcd.h.

#define LCDCHAR_ANIPLAYICON1   14
 

Definition at line 142 of file lcd.h.

#define LCDCHAR_ANIPLAYICON2   15
 

Definition at line 143 of file lcd.h.

#define LCDCHAR_ANIPLAYICON3   16
 

Definition at line 144 of file lcd.h.

#define LCDCHAR_BLANK   12
 

Definition at line 140 of file lcd.h.

#define LCDCHAR_FORWARDARROW   9
 

Definition at line 137 of file lcd.h.

#define LCDCHAR_PAUSEBARS   8
 

Definition at line 136 of file lcd.h.

#define LCDCHAR_PROGRESS05   0
 

Definition at line 128 of file lcd.h.

#define LCDCHAR_PROGRESS15   1
 

Definition at line 129 of file lcd.h.

#define LCDCHAR_PROGRESS25   2
 

Definition at line 130 of file lcd.h.

#define LCDCHAR_PROGRESS35   3
 

Definition at line 131 of file lcd.h.

#define LCDCHAR_PROGRESS45   4
 

Definition at line 132 of file lcd.h.

#define LCDCHAR_PROGRESS55   5
 

Definition at line 133 of file lcd.h.

#define LCDCHAR_REWINDARROW   6
 

Definition at line 134 of file lcd.h.

#define LCDCHAR_SCROLLDNARROW   11
 

Definition at line 139 of file lcd.h.

#define LCDCHAR_SCROLLUPARROW   10
 

Definition at line 138 of file lcd.h.

#define LCDCHAR_STOPBLOCK   7
 

Definition at line 135 of file lcd.h.

#define LCD_BUSY   7
 

Definition at line 114 of file lcd.h.

#define LCD_CGRAM   6
 

Definition at line 111 of file lcd.h.

#define LCD_CLR   0
 

Definition at line 95 of file lcd.h.

#define LCD_CTRL_DDR   DDRC
 

Definition at line 59 of file lcd.h.

#define LCD_CTRL_E   PC4
 

Definition at line 63 of file lcd.h.

#define LCD_CTRL_PORT   PORTC
 

Definition at line 58 of file lcd.h.

#define LCD_CTRL_RS   PC2
 

Definition at line 61 of file lcd.h.

#define LCD_CTRL_RW   PC3
 

Definition at line 62 of file lcd.h.

#define LCD_DATA_4BIT
 

Value:

Definition at line 71 of file lcd.h.

#define LCD_DATA_DDR   DDRA
 

Definition at line 69 of file lcd.h.

#define LCD_DATA_PIN   PINA
 

Definition at line 68 of file lcd.h.

#define LCD_DATA_POUT   PORTA
 

Definition at line 67 of file lcd.h.

#define LCD_DDRAM   7
 

Definition at line 112 of file lcd.h.

#define LCD_ENTRY_INC   1
 

Definition at line 98 of file lcd.h.

#define LCD_ENTRY_MODE   2
 

Definition at line 97 of file lcd.h.

#define LCD_ENTRY_SHIFT   0
 

Definition at line 99 of file lcd.h.

#define LCD_FDEF_1   (0<<LCD_FUNCTION_8BIT)
 

Definition at line 119 of file lcd.h.

#define LCD_FDEF_2   (1<<LCD_FUNCTION_2LINES)
 

Definition at line 123 of file lcd.h.

#define LCD_FUNCTION   5
 

Definition at line 107 of file lcd.h.

#define LCD_FUNCTION_10DOTS   2
 

Definition at line 110 of file lcd.h.

#define LCD_FUNCTION_2LINES   3
 

Definition at line 109 of file lcd.h.

#define LCD_FUNCTION_8BIT   4
 

Definition at line 108 of file lcd.h.

#define LCD_FUNCTION_DEFAULT   ((1<<LCD_FUNCTION) | LCD_FDEF_1 | LCD_FDEF_2)
 

Definition at line 124 of file lcd.h.

#define LCD_H
 

Value:

Definition at line 25 of file lcd.h.

#define LCD_HOME   1
 

Definition at line 96 of file lcd.h.

#define LCD_LINES   2
 

Definition at line 90 of file lcd.h.

#define LCD_LINE_LENGTH   24
 

Definition at line 91 of file lcd.h.

#define LCD_MODE_DEFAULT   ((1<<LCD_ENTRY_MODE) | (1<<LCD_ENTRY_INC))
 

Definition at line 125 of file lcd.h.

#define LCD_MOVE   4
 

Definition at line 104 of file lcd.h.

#define LCD_MOVE_DISP   3
 

Definition at line 105 of file lcd.h.

#define LCD_MOVE_RIGHT   2
 

Definition at line 106 of file lcd.h.

#define LCD_ON_BLINK   0
 

Definition at line 103 of file lcd.h.

#define LCD_ON_CTRL   3
 

Definition at line 100 of file lcd.h.

#define LCD_ON_CURSOR   1
 

Definition at line 102 of file lcd.h.

#define LCD_ON_DISPLAY   2
 

Definition at line 101 of file lcd.h.

#define LCD_PORT_INTERFACE
 

Value:

Definition at line 51 of file lcd.h.

#define PROGRESSPIXELS_PER_CHAR   6
 

Definition at line 147 of file lcd.h.


Function Documentation

void lcdBusyWait ( void )
 

Definition at line 79 of file lcd.c.

void lcdClear ( void )
 

Definition at line 355 of file lcd.c.

u08 lcdControlRead ( void )
 

Definition at line 171 of file lcd.c.

void lcdControlWrite ( u08 data )
 

Definition at line 123 of file lcd.c.

Referenced by lcdClear(), lcdGotoXY(), lcdHome(), lcdInit(), and lcdLoadCustomChar().

u08 lcdDataRead ( void )
 

Definition at line 266 of file lcd.c.

void lcdDataWrite ( u08 data )
 

Definition at line 218 of file lcd.c.

Referenced by lcdLoadCustomChar(), lcdPrintData(), and lcdProgressBar().

void lcdGotoXY ( u08 row,
u08 col )
 

Definition at line 361 of file lcd.c.

Referenced by debug().

void lcdHome ( void )
 

Definition at line 349 of file lcd.c.

void lcdInit ( void )
 

Definition at line 320 of file lcd.c.

void lcdInitHW ( void )
 

Definition at line 54 of file lcd.c.

void lcdLoadCustomChar ( u08 lcdCharNum,
u08 romCharNum )
 

Definition at line 380 of file lcd.c.

Referenced by lcdInit().

void lcdPrintData ( char * data,
u08 nBytes )
 

Definition at line 404 of file lcd.c.

void lcdProgressBar ( u16 progress,
u16 maxprogress,
u08 length )
 

Definition at line 418 of file lcd.c.


Generated at Fri Oct 25 15:36:38 2002 for avrlib by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001