Select one of the symbols to view example projects that use it.
 
Outline
#define __LCD_LOG_H__
#include "lcd_log_conf.h"
#define LCD_CACHE_DEPTH
#define LCD_CACHE_DEPTH
_LCD_LOG_line
LCD_LineColor;
LCD_LOG_Init();
LCD_LOG_DeInit();
LCD_LOG_SetHeader(uint8_t *);
LCD_LOG_SetFooter(uint8_t *);
LCD_LOG_ClearTextZone();
LCD_LOG_UpdateDisplay();
LCD_LOG_ScrollBack();
LCD_LOG_ScrollForward();
Files
loading...
SourceVuSTM32 Libraries and SamplesUtilitiesLog/lcd_log.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file lcd_log.h * @author MCD Application Team * @brief header for the lcd_log.c file ****************************************************************************** * @attention * * Copyright (c) 2016 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __LCD_LOG_H__ #define __LCD_LOG_H__ /* Includes ------------------------------------------------------------------*/ #include "lcd_log_conf.h" /** @addtogroup Utilities * @{ *//* ... */ /** @addtogroup STM32_EVAL * @{ *//* ... */ /** @addtogroup Common * @{ *//* ... */ /** @addtogroup LCD_LOG * @{ *//* ... */ /** @defgroup LCD_LOG * @brief * @{ *//* ... */ /** @defgroup LCD_LOG_Exported_Defines * @{ *//* ... */ #if (LCD_SCROLL_ENABLED == 1) #define LCD_CACHE_DEPTH (YWINDOW_SIZE + CACHE_SIZE) #else #define LCD_CACHE_DEPTH YWINDOW_SIZE #endif /** * @} *//* ... */ /** @defgroup LCD_LOG_Exported_Types * @{ *//* ... */ typedef struct _LCD_LOG_line { uint8_t line[128]; uint32_t color; ...}LCD_LOG_line; /** * @} *//* ... */ /** @defgroup LCD_LOG_Exported_Macros * @{ *//* ... */ #define LCD_ErrLog(...) do { \ LCD_LineColor = LCD_COLOR_RED;\ printf("ERROR: ") ;\ printf(__VA_ARGS__);\ LCD_LineColor = LCD_LOG_DEFAULT_COLOR;\ ...}while (0)... #define LCD_UsrLog(...) do { \ LCD_LineColor = LCD_LOG_TEXT_COLOR;\ printf(__VA_ARGS__);\ ...} while (0)... #define LCD_DbgLog(...) do { \ LCD_LineColor = LCD_COLOR_CYAN;\ printf(__VA_ARGS__);\ LCD_LineColor = LCD_LOG_DEFAULT_COLOR;\ ...}while (0)... /** * @} *//* ... */ /** @defgroup LCD_LOG_Exported_Variables * @{ *//* ... */ extern uint32_t LCD_LineColor; /** * @} *//* ... */ /** @defgroup LCD_LOG_Exported_FunctionsPrototype * @{ *//* ... */ void LCD_LOG_Init(void); void LCD_LOG_DeInit(void); void LCD_LOG_SetHeader(uint8_t *Title); void LCD_LOG_SetFooter(uint8_t *Status); void LCD_LOG_ClearTextZone(void); void LCD_LOG_UpdateDisplay (void); #if (LCD_SCROLL_ENABLED == 1) ErrorStatus LCD_LOG_ScrollBack(void); ErrorStatus LCD_LOG_ScrollForward(void);/* ... */ #endif /** * @} *//* ... */ /* ... */ #endif /* __LCD_LOG_H__ */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */
Details