lcdmono
2.0.0.0
|
Functions | |
void | lcdmono_cfg_setup (lcdmono_cfg_t *cfg) |
Config Object Initialization function. More... | |
LCDMONO_RETVAL | lcdmono_init (lcdmono_t *ctx, lcdmono_cfg_t *cfg) |
Initialization function. More... | |
void | lcdmono_generic_transfer (lcdmono_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | lcdmono_send_line_package (lcdmono_t *ctx, uint8_t addr, uint8_t *__generic tx_data) |
Send line data package. More... | |
void | lcdmono_clear (lcdmono_t *ctx) |
Clear display. More... | |
void | lcdmono_draw_frame (lcdmono_t *ctx, uint8_t *__generic frame_data) |
Displays draw frame. More... | |
void | lcdmono_draw_text (lcdmono_t *ctx, char *__generic text_buf, lcdmono_text_settings_t *tx_set, uint8_t end_mode) |
Draw text on the screen. More... | |
void | lcdmono_set_font (lcdmono_t *ctx, lcdmono_font_t *dev_lcd_font) |
Set font. More... | |
void | lcdmono_display_power (lcdmono_t *ctx, uint8_t ctrl) |
Display Power State. More... | |
void | lcdmono_display_reset (lcdmono_t *ctx) |
Reset procedure. More... | |
void lcdmono_cfg_setup | ( | lcdmono_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void lcdmono_clear | ( | lcdmono_t * | ctx | ) |
Clear display.
ctx | Click object. |
void lcdmono_display_power | ( | lcdmono_t * | ctx, |
uint8_t | ctrl | ||
) |
Display Power State.
ctx | Click object. |
ctrl | Power on or power off display |
void lcdmono_display_reset | ( | lcdmono_t * | ctx | ) |
Reset procedure.
ctx | Click object. |
void lcdmono_draw_frame | ( | lcdmono_t * | ctx, |
uint8_t *__generic | frame_data | ||
) |
Displays draw frame.
ctx | Click object. |
frame_data | Buffer the frame data [ or image ] |
void lcdmono_draw_text | ( | lcdmono_t * | ctx, |
char *__generic | text_buf, | ||
lcdmono_text_settings_t * | tx_set, | ||
uint8_t | end_mode | ||
) |
Draw text on the screen.
ctx | Click object. |
text_buf | Text buffer |
tx_set | Text settings - Structure for settings text |
end_mode | Mode |
Mode options:
void lcdmono_generic_transfer | ( | lcdmono_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len | ||
) |
Generic transfer function.
ctx | Click object. |
block | Transfer block structure. |
@description Generic SPI transfer, for sending and receiving packages
LCDMONO_RETVAL lcdmono_init | ( | lcdmono_t * | ctx, |
lcdmono_cfg_t * | cfg | ||
) |
Initialization function.
lcdmono | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void lcdmono_send_line_package | ( | lcdmono_t * | ctx, |
uint8_t | addr, | ||
uint8_t *__generic | tx_data | ||
) |
Send line data package.
ctx | Click object. |
addr | Line address [from 1 to 128] |
tx_data | 16 bytes[128 bits] data |
@description Function just adding a command to display update and 2 x Dummy data at the end
void lcdmono_set_font | ( | lcdmono_t * | ctx, |
lcdmono_font_t * | dev_lcd_font | ||
) |
Set font.
ctx | Click object. |
dev_lcd_font | Select new active font |