altos: Add telerepeat-v1.0
[fw/altos] / src / kernel / ao_lcd.h
1 /*
2  * Copyright © 2012 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17
18 #ifndef _AO_LCD_H_
19 #define _AO_LCD_H_
20
21 /* ao_lcd.c */
22   
23 void
24 ao_lcd_putchar(uint8_t d);
25
26 void
27 ao_lcd_putstring(char *string);
28
29 void
30 ao_lcd_contrast_set(uint8_t contrast);
31
32 void
33 ao_lcd_clear(void);
34
35 void
36 ao_lcd_cursor_on(void);
37
38 void
39 ao_lcd_cursor_off(void);
40
41 #define AO_LCD_ADDR(row,col)    ((row << 6) | (col))
42
43 void
44 ao_lcd_goto(uint8_t addr);
45
46 void
47 ao_lcd_start(void);
48
49 void
50 ao_lcd_init(void);
51
52 /* ao_lcd_port.c */
53
54 void
55 ao_lcd_port_put_nibble(uint8_t rs, uint8_t d);
56
57 void
58 ao_lcd_port_init(void);
59
60 #endif /* _AO_LCD_H_ */