Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #define TERM_ATTR_BACK_MASK 0x00
9 #define TERM_ATTR_BACK_BLACK 0x00
10 #define TERM_ATTR_BACK_WHITE 0x00
12 #define TERM_ATTR_TEXT_MASK 0x00
13 #define TERM_ATTR_TEXT_BLACK 0x00
14 #define TERM_ATTR_TEXT_WHITE 0x00
16 #define TERM_ATTR_INVERT 0x40
17 #define TERM_ATTR_BLINK 0x80
19 #define TERM_COLOR_BLACK 0
20 #define TERM_COLOR_RED 1
21 #define TERM_COLOR_GREEN 2
22 #define TERM_COLOR_YELLOW 3
23 #define TERM_COLOR_BLUE 4
24 #define TERM_COLOR_MAGENTA 5
25 #define TERM_COLOR_CYAN 6
26 #define TERM_COLOR_WHITE 7
28 #define TERM_FLG_FREEMEM 0x0080
29 #define TERM_FLG_CHANGED 0x0040
30 #define TERM_FLG_ESCAPE 0x0020
31 #define TERM_FLG_AUTOCR 0x0010
33 #define TERM_DEF_CHAR ' '
34 #define TERM_DEF_ATTR (TERM_ATTR_BACK_BLACK | TERM_ATTR_TEXT_WHITE)
36 #define TERM_BUFF_SIZE(c, r) ((r * c * 2) + (r * c + 7) / 8)
38 #define TERM_PRINTF_MAX 0xff
uint8_t attr
Definition: term.h:49
void term_clear(term_t *pt)
Definition: term.c:34
uint8_t term_get_char_at(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:51
uint8_t term_get_attr_at(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:71
uint8_t row
Definition: term.h:51
uint8_t rows
Definition: term.h:45
void term_done(term_t *pt)
Definition: term.c:26
void term_set_attr(term_t *pt, uint8_t attr)
Definition: term.c:97
uint8_t col
Definition: term.h:50
void term_set_attr_at(term_t *pt, uint8_t col, uint8_t row, uint8_t attr)
Definition: term.c:80
void term_set_char_at(term_t *pt, uint8_t col, uint8_t row, uint8_t ch)
Definition: term.c:60
uint8_t cols
Definition: term.h:44
uint16_t flg
Definition: term.h:46
void term_set_pos(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:103
const uint8_t[]
Definition: 404_html.c:3
void term_init(term_t *pt, uint8_t cols, uint8_t rows, uint8_t *buff)
Definition: term.c:6
int vterm_printf(term_t *pt, const char *fmt, va_list va)
Definition: term.c:191
void term_write_char(term_t *pt, uint8_t ch)
Definition: term.c:157
FILE * file
Definition: term.h:52
uint8_t * buff
Definition: term.h:47
int term_printf(term_t *pt, const char *fmt,...)
Definition: term.c:178
uint16_t size
Definition: term.h:48