DGUS LCD Library
1
|
DGUS II LCD Text Utilites. More...
Go to the source code of this file.
Functions | |
struct | __attribute__ ((packed)) dgus_control_text_display |
DGUS_RETURN | dgus_get_text (uint16_t addr, uint8_t *buf, uint8_t len) |
Read from VAR address as text Reads in 8 bit data format when using 0x02 GBK. More... | |
DGUS_RETURN | dgus_set_text (uint16_t addr, char *text) |
Write text to the address VAR. More... | |
DGUS_RETURN | dgus_set_text_padded (uint16_t addr, char *text, uint8_t len) |
Write text to the address VAR and clear all text after to field length len . More... | |
DGUS_RETURN | dgus_get_text_vp (uint16_t addr, uint16_t *vp) |
Set the VP pointer address in memory. More... | |
DGUS_RETURN | dgus_set_text_vp (uint16_t addr, uint16_t vp) |
Set the virtual pointer VP address for the control. More... | |
DGUS_RETURN | dgus_get_text_pos (uint16_t addr, dgus_control_position *pos) |
Get the position of the text on the screen. More... | |
DGUS_RETURN | dgus_set_text_pos (uint16_t addr, dgus_control_position pos) |
Set the position of the text on the screen. More... | |
DGUS_RETURN | dgus_get_text_colour (uint16_t addr, uint16_t *colour) |
Get the colour of the text. More... | |
DGUS_RETURN | dgus_set_text_colour (uint16_t addr, uint16_t colour) |
Set the colur of the text. More... | |
DGUS_RETURN | dgus_get_text_bounding_size (uint16_t addr, dgus_control_size *size) |
Set the size of the box containing the text. More... | |
DGUS_RETURN | dgus_set_text_bounding_size (uint16_t addr, dgus_control_size size) |
Get the size of the box containing the text. More... | |
DGUS_RETURN | dgus_get_text_len (uint16_t addr, uint16_t *len) |
Get the text length. More... | |
DGUS_RETURN | dgus_set_text_len (uint16_t addr, uint16_t len) |
Set the text length. More... | |
DGUS_RETURN | dgus_get_text_fonts (uint16_t addr, uint8_t *font0, uint8_t *font1) |
Get the current font id. More... | |
DGUS_RETURN | dgus_set_text_fonts (uint16_t addr, uint8_t font0, uint8_t font1) |
set the font ids More... | |
DGUS_RETURN | dgus_get_text_font_dots (uint16_t addr, uint8_t *fontx_dots, uint8_t *fonty_dots) |
Get the elipses breakpoint. i.e. how long before we ... More... | |
DGUS_RETURN | dgus_set_text_font_dots (uint16_t addr, uint8_t fontx_dots, uint8_t fonty_dots) |
Set the elipses breakpoint. i.e. how long before we ... More... | |
DGUS_RETURN | dgus_get_text_encode_mode_distance (uint16_t addr, uint8_t *encode_mode, uint8_t *vert_distance, uint8_t *horiz_distance) |
Set the text encoding mode and vertical spacing. More... | |
DGUS_RETURN | dgus_set_text_encode_mode_distance (uint16_t addr, uint8_t encode_mode, uint8_t vert_distance, uint8_t horiz_distance) |
get text encoding mode and vertical spacing More... | |
Variables | |
dgus_control_text_display | |
DGUS II LCD Text Utilites.
DGUS_RETURN dgus_get_text | ( | uint16_t | addr, |
uint8_t * | buf, | ||
uint8_t | len | ||
) |
Read from VAR address as text Reads in 8 bit data format when using 0x02 GBK.
addr | |
buf | |
len |
DGUS_RETURN dgus_get_text_bounding_size | ( | uint16_t | addr, |
dgus_control_size * | size | ||
) |
Set the size of the box containing the text.
addr | |
size |
DGUS_RETURN dgus_get_text_colour | ( | uint16_t | addr, |
uint16_t * | colour | ||
) |
Get the colour of the text.
addr | |
colour |
DGUS_RETURN dgus_get_text_encode_mode_distance | ( | uint16_t | addr, |
uint8_t * | encode_mode, | ||
uint8_t * | vert_distance, | ||
uint8_t * | horiz_distance | ||
) |
Set the text encoding mode and vertical spacing.
addr | |
encode_mode | 0x00=8bit, 0x01=GB2312, 0x02=GBK (most compatible with this lib), 0x03=BIG5, 0x04=SJIS, 0x05=UNICODE |
vert_distance | spacing y |
horiz_distance | spacing x |
DGUS_RETURN dgus_get_text_font_dots | ( | uint16_t | addr, |
uint8_t * | fontx_dots, | ||
uint8_t * | fonty_dots | ||
) |
Get the elipses breakpoint. i.e. how long before we ...
addr | |
fontx_dots | |
fonty_dots |
DGUS_RETURN dgus_get_text_fonts | ( | uint16_t | addr, |
uint8_t * | font0, | ||
uint8_t * | font1 | ||
) |
Get the current font id.
addr | |
font0 | |
font1 |
DGUS_RETURN dgus_get_text_len | ( | uint16_t | addr, |
uint16_t * | len | ||
) |
Get the text length.
addr | |
len |
DGUS_RETURN dgus_get_text_pos | ( | uint16_t | addr, |
dgus_control_position * | pos | ||
) |
Get the position of the text on the screen.
addr | |
pos |
DGUS_RETURN dgus_get_text_vp | ( | uint16_t | addr, |
uint16_t * | vp | ||
) |
Set the VP pointer address in memory.
addr | address to write to |
vp | variable to place result the memory VP address |
DGUS_RETURN dgus_set_text | ( | uint16_t | addr, |
char * | text | ||
) |
Write text to the address VAR.
addr | address to write to |
text | text to send. Must be null terinated |
DGUS_RETURN dgus_set_text_bounding_size | ( | uint16_t | addr, |
dgus_control_size | size | ||
) |
Get the size of the box containing the text.
addr | |
size |
DGUS_RETURN dgus_set_text_colour | ( | uint16_t | addr, |
uint16_t | colour | ||
) |
Set the colur of the text.
addr | |
colour |
DGUS_RETURN dgus_set_text_encode_mode_distance | ( | uint16_t | addr, |
uint8_t | encode_mode, | ||
uint8_t | vert_distance, | ||
uint8_t | horiz_distance | ||
) |
get text encoding mode and vertical spacing
addr | |
encode_mode | 0x00=8bit, 0x01=GB2312, 0x02=GBK (most compatible with this lib), 0x03=BIG5, 0x04=SJIS, 0x05=UNICODE |
vert_distance | spacing y |
horiz_distance | spacing x |
DGUS_RETURN dgus_set_text_font_dots | ( | uint16_t | addr, |
uint8_t | fontx_dots, | ||
uint8_t | fonty_dots | ||
) |
Set the elipses breakpoint. i.e. how long before we ...
addr | |
fontx_dots | |
fonty_dots |
DGUS_RETURN dgus_set_text_fonts | ( | uint16_t | addr, |
uint8_t | font0, | ||
uint8_t | font1 | ||
) |
set the font ids
addr | |
font0 | |
font1 |
DGUS_RETURN dgus_set_text_len | ( | uint16_t | addr, |
uint16_t | len | ||
) |
Set the text length.
addr | |
len |
DGUS_RETURN dgus_set_text_padded | ( | uint16_t | addr, |
char * | text, | ||
uint8_t | len | ||
) |
Write text to the address VAR and clear all text after to field length len
.
addr | |
text | |
len |
DGUS_RETURN dgus_set_text_pos | ( | uint16_t | addr, |
dgus_control_position | pos | ||
) |
Set the position of the text on the screen.
addr | |
pos |
DGUS_RETURN dgus_set_text_vp | ( | uint16_t | addr, |
uint16_t | vp | ||
) |
Set the virtual pointer VP address for the control.
addr | |
vp |
dgus_control_text_display |
Register layout for the text SP register