Main Page | Modules | Data Structures | File List | Data Fields | Globals

lcd.h

Go to the documentation of this file.
00001 /*
00002  * $Id: lcd.h,v 1.4 2002/12/02 20:19:20 dwalters Exp $
00003  * Useful routines for driving the MRM LCD interface.
00004  *
00005  * Copyright (C) 2001 Martin Calsyn
00006  *
00007  * This library is distributed under the terms of the GNU Lesser General
00008  * Public License (LGPL).  You should have received a copy of the
00009  * license along with this library (LGPL.txt); if not, write to
00010  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00011  * Boston, MA  02111-1307  USA
00012  */
00013 
00033 #ifndef __LCD_H__
00034 #define __LCD_H__
00035 
00036 #include <sys/types.h>
00037 #include <68332/types.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00051 int lcd_init (
00052         uint8 rows, 
00053         uint8 columns, 
00054         uint8 font, 
00055         bool fourbitmode
00056 );
00057 
00063 void lcd_display_enable (
00064         bool on
00065 );
00066 
00073 void lcd_cursor (
00074         bool on, 
00075         bool flashing
00076 );
00077 
00081 void lcd_clear ();
00082 
00086 void lcd_home ();
00087 
00094 void lcd_gotoxy (
00095         uint8 x, 
00096         uint8 y
00097 );
00098 
00104 void lcd_printf (
00105         char *pszPattern, 
00106         ...
00107 );
00108 
00112 void lcd_write_string (
00113         char *string
00114 );
00115 
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 
00120 #endif  /* #ifndef __LCD_H__ */
00121 

Generated on Wed Sep 6 03:02:21 2006 for MotoRobots by doxygen 1.3.6