AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
lcd_defs.h
1 
22 #ifndef _AVRIO_LCD_DEFS_H_
23 #define _AVRIO_LCD_DEFS_H_
24 
25 #include <avrio/defs.h>
26 
27 __BEGIN_C_DECLS
28 /* ========================================================================== */
29 #include <avrio/twi_addr.h>
30 
36 /* constants ================================================================ */
41  typedef enum {
42 
46 } eLcdCursor;
47 
48 /* types ==================================================================== */
52 typedef uint8_t xLcdCoord;
53 
54 /* structures =============================================================== */
59 typedef struct xLcdPos {
60 
61  xLcdCoord xX;
62  xLcdCoord xY;
63 } xLcdPos;
68 /* init. constants ========================================================== */
69 
80 #define LCD_IO_4BITS 7
81 #define LCD_IO_PIO_8 (0x01 + (0<<LCD_IO_4BITS))
82 #define LCD_IO_PIO_4 (0x01 + (1<<LCD_IO_4BITS))
83 #define LCD_IO_TWI 0x02
84 #define LCD_TWI_PCF8574 (0x03 + (1<<LCD_IO_4BITS))
100 #define LCD_CTRL_HD44780 0x01
101 #define LCD_CTRL_PCF2119 0x02
102 #define LCD_CTRL_ST7032 0x03
103 #define LCD_CTRL_THMI 0x04
115 /* HD44780 - Bits de contrôle du registre d'instruction */
116 #define HD44780_ENTM 0x04
117 #define HD44780_S 0x01
118 #define HD44780_ID 0x02
120 #define HD44780_DCTL 0x08
121 #define HD44780_B 0x01
122 #define HD44780_C 0x02
123 #define HD44780_D 0x04
125 #define HD44780_SHFT 0x10
126 #define HD44780_RL 0x04
127 #define HD44780_SC 0x08
129 #define HD44780_FSET 0x20
130 #define HD44780_F 0x04
131 #define HD44780_N 0x08
132 #define HD44780_DL 0x10
145 /* PCF2119 - Bits de contrôle du registre d'instruction */
146 #define PCF2119_ENTM 0x04
147 #define PCF2119_S 0x01
148 #define PCF2119_ID 0x02
150 #define PCF2119_DCTL 0x08
151 #define PCF2119_B 0x01
152 #define PCF2119_C 0x02
153 #define PCF2119_D 0x04
155 #define PCF2119_SHFT 0x10
156 #define PCF2119_RL 0x04
157 #define PCF2119_SC 0x08
159 #define PCF2119_FSET 0x20
160 #define PCF2119_H 0x01
161 #define PCF2119_SL 0x02
162 #define PCF2119_M 0x04
163 #define PCF2119_DL 0x10
176 /* ST7032 - Bits de contrôle du registre d'instruction */
177 #define ST7032_ENTM 0x04
178 #define ST7032_S 0x01
179 #define ST7032_ID 0x02
181 #define ST7032_DCTL 0x08
182 #define ST7032_B 0x01
183 #define ST7032_C 0x02
184 #define ST7032_D 0x04
186 #define ST7032_SHFT 0x10
187 #define ST7032_RL 0x04
188 #define ST7032_SC 0x08
190 #define ST7032_FSET 0x20
191 #define ST7032_IS 0x01
192 #define ST7032_DH 0x04
193 #define ST7032_N 0x08
194 #define ST7032_DL 0x10
207 /* THMI - Bits de contrôle du registre d'instruction */
208 #define THMI_ENTM 0x04
209 #define THMI_S 0x01
210 #define THMI_ID 0x02
212 #define THMI_DCTL 0x08
213 #define THMI_B 0x01
214 #define THMI_C 0x02
215 #define THMI_D 0x04
217 #define THMI_SHFT 0x10
218 #define THMI_RL 0x04
219 #define THMI_SC 0x08
221 #define THMI_FSET 0x20
222 #define THMI_IS 0x01
223 #define THMI_F 0x04
224 #define THMI_N 0x08
225 #define THMI_DL 0x10
227 /* Commandes en mode étendu */
228 #define THMI_SRST 0x01
229 #define THMI_FVER 0x02
230 #define THMI_FNC3 0x04
231 #define THMI_FNC2 0x08
232 #define THMI_FNC1 0x10
233 #define THMI_BON 0x20
234 #define THMI_CSET 0x40
235 #define THMI_BSET 0x80
244 /* ========================================================================== */
245 __END_C_DECLS
246 #endif /* _AVRIO_LCD_DEFS_H_ not defined */
Coordonnées d&#39;un point ou d&#39;un caractère.
Definition: lcd_defs.h:59
uint8_t xLcdCoord
Coordonnée d&#39;un point ou d&#39;un caractère.
Definition: lcd_defs.h:52
eLcdCursor
Constantes utilisées pour spécifier le type de curseur à vLcdEnableCursor()
Definition: lcd_defs.h:41