/********************************************************************************
    KS0066-compatible LCD display driver - internal commands
    Copyright (C) 2006  Alexey "Gall" Galakhov

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*********************************************************************************/
#ifndef _LCDCMD_H
#define _LCDCMD_H

#define LCD_CMD_CLS 	BV (0)
#define LCD_CMD_HOME	BV (1)
#define LCD_CMD_ENTRY	BV (2)
#define LCD_CMD_ONOFF	BV (3)
#define LCD_CMD_SHIFT	BV (4)
#define LCD_CMD_FUNC	BV (5)
#define LCD_CMD_GCRAM	BV (6)
#define LCD_CMD_DDRAM	BV (7)

#define LCD_ENTRY_DECR		0
#define LCD_ENTRY_INCR		BV (1)
#define LCD_ENTRY_NOSHIFT	0
#define LCD_ENTRY_SHIFT		BV (0)

#define LCD_ONOFF_OFF		0
#define LCD_ONOFF_ON		BV (2)
#define LCD_ONOFF_NOCURSOR	0
#define LCD_ONOFF_CURSOR	BV (1)
#define LCD_ONOFF_NOBLINK	0
#define LCD_ONOFF_BLINK		BV (0)

#define LCD_SHIFT_CURSOR	0
#define LCD_SHIFT_DISPLAY	BV (3)
#define LCD_SHIFT_LEFT		0
#define LCD_SHIFT_RIGHT		BV (2)

#define LCD_FUNC_4BIT		0
#define LCD_FUNC_8BIT		BV (4)
#define LCD_FUNC_1LINE		0
#define LCD_FUNC_2LINE		BV (3)
#define LCD_FUNC_5x8FONT	0
#define LCD_FUNC_5x11FONT	BV (2)

#define LCD_BUSY		BV (7)

#endif /* _LCDCMD_H */
