lcd_hd44.h

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