Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
lcdDOGM162.h
Go to the documentation of this file.
1 /**
2  *************************************************************************
3  * @file lcdDOGM162.h
4  * @author Johann Mayr
5  * @author Prof. Dr.-Ing. Ferdinand Englberger
6  * @version V2.0.1
7  * @date 05.11.2014
8  * @copyright 2011 - 2014 UniBw M - ETTI - WE 4
9  * @brief Header for Initialization program for LCD DOGM162.
10  * Qsys uses Altera LCD component "altera_avalon_lcd_16207".
11  * @remark This initialization function extends the standard
12  * initialization by DOGM162 specific initialization. This
13  * function has to be called before the display can be used.
14  *************************************************************************
15  * @par History:
16  * @details V2.0.1 05.11.2014 Michael Riedel
17  * - added functions for better lcd-usage from script (p. 1-122)
18  * @details V2.0.0 Ferdinand Englberger
19  * - comments in english
20  * - Remove all functions, but initialization function
21  * - uses component register interface, instead of own access
22  * function.
23  * - uses a base parameter to identify lcd.
24  * @details V1.1 25.06.2012 Johann Mayr
25  * - Initial version
26  * @details V1.0 20.12.2011 Johann Mayr
27  * - Initial version
28  **************************************************************************
29  */
30 
31 #ifndef LCD_DOGM_162_A_H
32 #define LCD_DOGM_162_A_H
33 
34 #include <stdint.h>
35 
36 #define LCD_CURSOR_OFF (0x00) //!< Code for Cursor off
37 #define LCD_CURSOR_ON (0x02) //!< Code for Cursor on
38 #define LCD_BLINK (0x01) //!< Code for Cursor blink
39 
40 #define DATA8_LINES2_TABLE0 (0x38) //!< Function Set: 8 bit data, 2 lines, instruction table 0
41 #define DATA8_LINES2_TABLE1 (0x39) //!< Function Set: 8 bit data, 2 lines, instruction table 1
42 #define BIAS1_2LINES2 (0x14) //!< Bias Set: Bias = 1/5, 2 lines
43 #define ICON0_BOOSTER1_CONTRAST_C4_0_C5_1 (0x55) //!< Power Control: Icon Display off, Booster on, Internal Contrast C5 off, C4 on
44 #define FOLLOWER1_RAB6 (0x6E) //!< Follower Control: Follower on, Rab = 6
45 #define CONTRAST2 (0x72) //!< Contrast Set: Contrast = 2
46 #define DISPLAY1_CURSOR1_POS0 (0x0C) //!< Display Set: Display on, Cursor on, Cursor Pos off
47 #define DISPLAY_CLEAR (0x01) //!< Display Clear
48 #define DDRAM_INC_SHIFT0 (0x06) //!< Entry Mode Set: Increment DDRAM-Addr, ShiftEntireDisplay off
49 
50 /**
51  * @brief Initialization function of LCD DOGM162B-A
52  * @details This initialization function extends the standard
53  * initialization by DOGM162 specific initialization. This
54  * function has to be called before the display can be used.
55  * @param lcdBase : Base address of DOGM162 LCD (from system.h)
56  * @retval None
57  */
58 void DOGM162lcd_init(uint32_t lcdBase);
59 
60 /**
61  * @brief function changes cursor mode
62  * @details This function requires an extra wait period
63  * @param lcdBase : Base address of LCD (from system.h)
64  * @param cursorMode: new Cursor mode, can be
65  * @arg LCD_CURSOR_OFF
66  * @arg LCD_CURSOR_ON
67  * @arg LCD_BLINK
68  * @retval none
69  */
70 void DOGM162lcd_setCursorMode(uint32_t lcdBase, int32_t cursorMode);
71 
72 #endif /*LCD_DOGM_162_A_H*/
void DOGM162lcd_setCursorMode(uint32_t lcdBase, int32_t cursorMode)
function changes cursor mode
Definition: lcdDOGM162.c:64
void DOGM162lcd_init(uint32_t lcdBase)
Initialization function of LCD DOGM162B-A.
Definition: lcdDOGM162.c:39