lcd_hd44.h

Go to the documentation of this file.
00001 
00040 #ifndef DRV_LCD_HD44_H
00041 #define DRV_LCD_HD44_H
00042 
00043 #include <appconfig.h>
00044 #include <cfg/compiler.h> /* For stdint types */
00045 
00050 #define LCD_ROWS  2
00051 #define LCD_COLS  16
00052 /* \} */
00053 
00058 #define LCD_CMD_DISPLAY_INI      0x30
00059 
00060 #if CONFIG_LCD_4BIT
00061     #define LCD_CMD_SETFUNC  0x28   
00062 #else
00063     #define LCD_CMD_SETFUNC  0x38   
00064 #endif
00065 
00066 #define LCD_CMD_DISPLAY_ON       0x0F   
00067 #define LCD_CMD_DISPLAY_OFF      0x08   
00068 #define LCD_CMD_CLEAR            0x01   
00069 #define LCD_CMD_CURSOR_BLOCK     0x0D   
00070 #define LCD_CMD_CURSOR_LINE      0x0F   
00071 #define LCD_CMD_CURSOR_OFF       0x0C   
00072 #define LCD_CMD_DISPLAYMODE      0x06
00073 #define LCD_CMD_SET_CGRAMADDR    0x40
00074 #define LCD_CMD_RESET_DDRAM      0x80
00075 #define LCD_CMD_SET_DDRAMADDR    0x80
00076 #define LCD_CMD_DISPLAY_SHIFT    0x18
00077 #define LCD_CMD_MOVESHIFT_LEFT   0x00
00078 #define LCD_CMD_MOVESHIFT_RIGHT  0x04
00079 /*\}*/
00080 
00082 typedef uint8_t lcdpos_t;
00083 
00084 void lcd_waitBusy(void);
00085 void lcd_moveTo(uint8_t addr);
00086 void lcd_setReg(uint8_t val);
00087 void lcd_putc(uint8_t a, uint8_t c);
00088 void lcd_remapChar(const char *glyph, char code);
00089 void lcd_hw_init(void);
00090 void lcd_hw_test(void);
00091 
00092 #endif /* DRV_LCD_HD44_H */