-
Notifications
You must be signed in to change notification settings - Fork 0
/
DR_lcd.h
65 lines (44 loc) · 2.89 KB
/
DR_lcd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/***********************************************************************************************************************************
*** MODULO
**********************************************************************************************************************************/
#ifndef DRIVERIMPRESORABRAILLE_DR_LCD_H_
#define DRIVERIMPRESORABRAILLE_DR_LCD_H_
/***********************************************************************************************************************************
*** INCLUDES GLOBALES
**********************************************************************************************************************************/
#include "DR_tipos.h"
#include "PR_lcd.h"
/***********************************************************************************************************************************
*** DEFINES GLOBALES
**********************************************************************************************************************************/
#define LCD_CONTROL 0
#define LCD_DATA 1
#define NO_DATA -1
#define TAMANO_BUFFER_LCD 150 //no es solo 2x2x16 sino hay que contar mensajes de control
#define LCD_D4 0,5
#define LCD_D5 0,10
#define LCD_D6 2,4
#define LCD_D7 2,5
#define LCD_EN 0,4
#define LCD_RS 2,6
/***********************************************************************************************************************************
*** MACROS GLOBALES
**********************************************************************************************************************************/
/***********************************************************************************************************************************
*** TIPO DE DATOS GLOBALES
**********************************************************************************************************************************/
/***********************************************************************************************************************************
*** VARIABLES GLOBALES
**********************************************************************************************************************************/
extern __RW uint8_t Buffer_LCD[ TAMANO_BUFFER_LCD ]; // Buffer del LCD
extern __RW int32_t inicio_buffer_lcd ; // Indice del buffer del LCD
extern __RW int32_t cantidad_cola_lcd ; // Cantidad de datos en el buffer del LCD
/***********************************************************************************************************************************
*** PROTOTIPOS DE FUNCIONES GLOBALES
**********************************************************************************************************************************/
void lcd_inicializacion( void );
void DriverDemoraLCD( void );
void actualizar_lcd ( void );
int32_t PopLCD ( void );
void BorrarLCD( void );
#endif /* DRIVERIMPRESORABRAILLE_DR_LCD_H_ */