BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
c2b0401
Branches
Tags
master
mips_sys
fw
lcd.h
added file headers
Stefan Schuermans
commited
c2b0401
at 2012-04-08 11:54:40
lcd.h
Blame
History
Raw
/* MIPS I system * Copyright 2011-2012 Stefan Schuermans <stefan@schuermans.info> * Copyleft GNU public license V2 or later * http://www.gnu.org/copyleft/gpl.html */ #ifndef LCD_H #define LCD_H /** * @brief set data to LCD * @param[in] data data to LCD */ void lcd_set_data(unsigned char data); /** * @brief set enable signal to LCD * @param[in] state state for enable signal (0 or 1) */ void lcd_set_e(unsigned char state); /** * @brief set register select signal to LCD * @param[in] state state for register select signal (0 or 1) */ void lcd_set_rs(unsigned char state); /** * @brief set read/write signal to LCD * @param[in] state state for read/write signal (0 or 1) */ void lcd_set_rw(unsigned char state); /** set LCD to 4 bit mode */ void lcd_set4bit(void); /** * @brief output a byte to LCD * @param[in] data if the byte is a data byte (command otherwise) * @param[in] byte byte to write */ void lcd_byte(unsigned char data, unsigned char byte); /** initialize LCD */ void lcd_init(void); /** * @brief show character * @param[in] line number of line (0..1) * @param[in] pos position in line (0..15) * @param[in] chr character to set */ void lcd_chr(unsigned int line, unsigned int pos, char chr); /** * @brief show string * @param[in] line number of line (0..1) * @param[in] str string to show */ void lcd_str(unsigned int line, const char *str); #endif /* #ifndef LCD_H */