sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Log

Print log messages to the display. This module uses a fifo to show every time the newest log messages. More...

+ Collaboration diagram for Log:

Files

file  log.c
 Simple graphic library message console.
Print log messages to the display. This module uses a fifo to show every time the newest log messages.
 

Macros

#define MAX_LINES   (LCD_VER_RESOLUTION / FONT_MIN_HEIGHT)
 Maximal number of lines.
 
#define MAX_COLUMNS   (LCD_HOR_RESOLUTION / FONT_MIN_WIDTH)
 Maximal number of columns.
 

Functions

void LCD_Log_AddMsg (char *ptr)
 Add a log message to the screen. More...
 
void LCD_Log_Update (void)
 Update the log messages on the display. This is used, if the screen is overwritten by user.
 

Variables

static char LOG_Messages [MAX_LINES][MAX_COLUMNS]
 Array of all log messages. The maximum line width and line count are the array dimension.
 
static uint8_t head = 0
 Index of the LOG_Messages of the last message.
 
static uint8_t count = 0
 Number of messages which are stored in LOG_Messages.
 

Detailed Description

Print log messages to the display. This module uses a fifo to show every time the newest log messages.

Function Documentation

void LCD_Log_AddMsg ( char *  ptr)

Add a log message to the screen.

Parameters
[in]*ptrPointer to string to display on LCD.
Examples:
log.c.

Definition at line 122 of file log.c.

+ Here is the call graph for this function: