STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
lcd_log.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef __LCD_LOG_H__
40 #define __LCD_LOG_H__
41 
42 /* Includes ------------------------------------------------------------------*/
43 
44 #include "lcd_log_conf.h"
45 
72 #if (LCD_SCROLL_ENABLED == 1)
73  #define LCD_CACHE_DEPTH (YWINDOW_SIZE + CACHE_SIZE)
74 #else
75  #define LCD_CACHE_DEPTH YWINDOW_SIZE
76 #endif
77 
84 typedef struct _LCD_LOG_line
85 {
86  uint8_t line[128];
87  uint32_t color;
88 
90 
98 #define LCD_ErrLog(...) LCD_LineColor = LCD_COLOR_RED;\
99  printf("ERROR: ") ;\
100  printf(__VA_ARGS__);\
101  LCD_LineColor = LCD_LOG_DEFAULT_COLOR
102 
103 #define LCD_UsrLog(...) LCD_LineColor = LCD_LOG_TEXT_COLOR;\
104  printf(__VA_ARGS__);\
105 
106 
107 #define LCD_DbgLog(...) LCD_LineColor = LCD_COLOR_CYAN;\
108  printf(__VA_ARGS__);\
109  LCD_LineColor = LCD_LOG_DEFAULT_COLOR
110 
117 extern uint32_t LCD_LineColor;
118 
126 void LCD_LOG_Init(void);
127 void LCD_LOG_DeInit(void);
128 void LCD_LOG_SetHeader(uint8_t *Title);
129 void LCD_LOG_SetFooter(uint8_t *Status);
130 void LCD_LOG_ClearTextZone(void);
131 void LCD_LOG_UpdateDisplay (void);
132 
133 #if (LCD_SCROLL_ENABLED == 1)
136 #endif
137 
142 #endif /* __LCD_LOG_H__ */
143 
164 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
void LCD_LOG_SetHeader(uint8_t *Title)
Display the application header on the LCD screen.
Definition: lcd_log.c:177
void LCD_LOG_SetFooter(uint8_t *Status)
Display the application footer on the LCD screen.
Definition: lcd_log.c:201
void LCD_LOG_UpdateDisplay(void)
Update the text area display.
Definition: lcd_log.c:319
struct _LCD_LOG_line LCD_LOG_line
uint32_t color
Definition: lcd_log.h:87
ErrorStatus
Definition: stm32f7xx.h:165
void LCD_LOG_DeInit(void)
DeInitializes the LCD Log module.
Definition: lcd_log.c:155
ErrorStatus LCD_LOG_ScrollBack(void)
Display previous text frame.
Definition: lcd_log.c:367
void LCD_LOG_ClearTextZone(void)
Clear the Text Zone.
Definition: lcd_log.c:225
uint8_t line[128]
Definition: lcd_log.h:86
ErrorStatus LCD_LOG_ScrollForward(void)
Display next text frame.
Definition: lcd_log.c:439
void LCD_LOG_Init(void)
Initializes the LCD Log module.
Definition: lcd_log.c:141
uint32_t LCD_LineColor
Definition: lcd_log.c:102