#include <mios32.h>
#include <stdarg.h>
#include <string.h>
#include <glcd_font.h>
#include <seq_bpm.h>
#include "app.h"
#include "mbng_lcd.h"
#include "mbng_file_l.h"
#include "mbng_file_s.h"
#include "mbng_event.h"
#include "mbng_patch.h"
Defines | |
#define | DEBUG_PRINT_ITEM_PERFORMANCE 0 |
#define | MBNG_LCD_CLEAR { if( !out_buffer ) { MBNG_LCD_Clear(); } } |
#define | MBNG_LCD_PRINT_CHAR(c) |
#define | MBNG_LCD_PRINT_STRING(str) |
#define | MBNG_LCD_PRINT_FORMATTED_STRING(str, value) |
Functions | |
s32 | MBNG_LCD_Init (u32 mode) |
s32 | MBNG_LCD_Clear (void) |
s32 | MBNG_LCD_FontInit (char font_name) |
u8 * | MBNG_LCD_FontGet (void) |
s32 | MBNG_LCD_CursorSet (u8 lcd, u16 x, u16 y) |
s32 | MBNG_LCD_PrintChar (char c) |
s32 | MBNG_LCD_PrintString (char *str) |
s32 | MBNG_LCD_PrintFormattedString (char *format,...) |
s32 | MBNG_LCD_PrintSpaces (int num) |
s32 | MBNG_LCD_ClearScreenOnNextMessage (void) |
s32 | MBNG_LCD_PrintItemLabel (mbng_event_item_t *item, char *out_buffer, u32 max_buffer_len) |
s32 | MBNG_LCD_SpecialCharsInit (u8 charset, u8 force) |
s32 | MBNG_LCD_SpecialCharsReInit (void) |
Variables | |
u8 * | glcd_font = NULL |
#define MBNG_LCD_CLEAR { if( !out_buffer ) { MBNG_LCD_Clear(); } } |
#define MBNG_LCD_PRINT_CHAR | ( | c | ) |
{ if( !out_buffer ) { MBNG_LCD_PrintChar(c); } else \ { s32 len = MBNG_LCD_StreamChar(out_buffer, max_buffer_len, c); out_buffer += len; buffer_len += len; max_buffer_len -= len; } }
#define MBNG_LCD_PRINT_FORMATTED_STRING | ( | str, | |||
value | ) |
{ if( !out_buffer ) { MBNG_LCD_PrintFormattedString(str, value); } else \ { s32 len = MBNG_LCD_StreamFormattedString(out_buffer, max_buffer_len, str, value); out_buffer += len; buffer_len += len; max_buffer_len -= len; } }
#define MBNG_LCD_PRINT_STRING | ( | str | ) |
{ if( !out_buffer ) { MBNG_LCD_PrintString(str); } else \ { s32 len = MBNG_LCD_StreamString(out_buffer, max_buffer_len, str); out_buffer += len; buffer_len += len; max_buffer_len -= len; } }