lcd.h

00001 /* lcd.c -- LCD Control Panel Operations
00002    Copyright 2000 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@worldnet.fr)
00004 
00005 This file is part of GEL.
00006 
00007 GEL is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2, or (at your option)
00010 any later version.
00011 
00012 GEL is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with GEL; see the file COPYING.  If not, write to
00019 the Free Software Foundation, 59 Temple Place - Suite 330,
00020 Boston, MA 02111-1307, USA.  */
00021 
00022 #ifndef _GEL_LCD_H
00023 #define _GEL_LCD_H
00024 
00025 #include <sys/param.h>
00026 
00027 #ifndef LCD_MAX_COLS
00028 #  define LCD_MAX_COLS  16
00029 #endif
00030 
00031 #ifndef LCD_MAX_LINES
00032 #  define LCD_MAX_LINES 2
00033 #endif
00034 
00035 
00037 typedef unsigned char lcd_col_t;
00038 
00040 typedef unsigned char lcd_line_t;
00041 
00045 extern void lcd_reset (void);
00046 
00050 extern void lcd_home (void);
00051 
00055 extern void lcd_clear (void);
00056 
00057 extern void lcd_blink (int mode);
00058 
00059 extern void lcd_cursor (int mode);
00060 
00061 extern void lcd_display (int mode);
00062 
00063 extern void lcd_shift (int direction);
00064 
00071 extern void lcd_print (const char *msg);
00072 
00073 extern void lcd_putchar (unsigned char c);
00074 
00080 extern void lcd_goto (lcd_col_t col, lcd_line_t line);
00081 
00087 extern void lcd_print_at (lcd_col_t col, lcd_line_t line, const char *msg);
00088 
00089 #endif