00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00018 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00019 * 00020 * Redistribution and use in source and binary forms, with or without 00021 * modification, are permitted provided that the following conditions are met: 00022 * 00023 * 1. Redistributions of source code must retain the above copyright notice, this 00024 * list of conditions and the following disclaimer. 00025 * 00026 * 2. Redistributions in binary form must reproduce the above copyright notice, 00027 * this list of conditions and the following disclaimer in the documentation 00028 * and/or other materials provided with the distribution. 00029 * 00030 * 3. The name of Atmel may not be used to endorse or promote products derived 00031 * from this software without specific prior written permission. 00032 * 00033 * 4. This software may only be redistributed and used in connection with an Atmel 00034 * AVR product. 00035 * 00036 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00037 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00038 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00039 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00040 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00041 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00042 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00043 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00044 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00045 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00046 * 00047 */ 00048 00049 #ifndef _AVR32_DIP204_H_ 00050 #define _AVR32_DIP204_H_ 00051 00052 #include "compiler.h" 00053 00054 00058 typedef enum { 00059 backlight_IO = 0, 00060 backlight_PWM 00061 }backlight_options; 00062 00066 typedef enum { 00067 backlight_power_increase = 0, 00068 backlight_power_decrease 00069 }backlight_power; 00070 00071 00078 extern void dip204_init(backlight_options option, Bool backlight_on); 00079 00084 extern void dip204_set_backlight(backlight_power power); 00085 00089 extern void dip204_show_cursor(void); 00090 00094 extern void dip204_hide_cursor(void); 00095 00101 extern void dip204_write_data(unsigned char data); 00102 00108 extern void dip204_read_data(unsigned char *data); 00109 00116 extern void dip204_create_char(char ascii_code, const unsigned char data[8]); 00117 00124 extern void dip204_set_cursor_position(unsigned char column, unsigned char line); 00125 00130 extern void dip204_clear_display(void); 00131 00137 extern void dip204_write_string(const char *string); 00138 00144 extern void dip204_printf_string(const char *format, ...); 00145 00146 00147 #endif // _AVR32_DIP204_H_