eink_213inch
2.0.0.0
|
Functions | |
void | eink_213inch_cfg_setup (eink_213inch_cfg_t *cfg) |
Config Object Initialization function. More... | |
EINK213INCH_RETVAL | eink_213inch_init (eink_213inch_t *ctx, eink_213inch_cfg_t *cfg) |
Initialization function. More... | |
void | eink_213inch_generic_transfer (eink_213inch_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | eink_213_send_command (eink_213inch_t *ctx, uint8_t command) |
Function for sending a command. More... | |
void | eink_213_send_data (eink_213inch_t *ctx, uint8_t c_data) |
Function for sending data. More... | |
void | eink_213_reset (eink_213inch_t *ctx) |
Function for reset chip. More... | |
void | eink_213_sleep_mode (eink_213inch_t *ctx) |
Function for go to sleep mode. More... | |
void | eink_213_set_lut (eink_213inch_t *ctx, const uint8_t *lut, uint8_t n_bytes) |
Set LUT table. More... | |
void | eink_213_start_config (eink_213inch_t *ctx) |
Start configuration display. More... | |
void | eink_213_set_memory_pointer (eink_213inch_t *ctx, uint16_t x, uint16_t y) |
Function for setting pointers in memory. More... | |
void | eink_213_set_memory_area (eink_213inch_t *ctx, eink_213inch_xy_t *xy) |
Function for setting area in memory. More... | |
void | eink_213_update_display (eink_213inch_t *ctx) |
Functions for update display. More... | |
void | eink_213_fill_screen (eink_213inch_t *ctx, uint8_t color) |
Function that fills the screen. More... | |
void | eink_213_display_image (eink_213inch_t *ctx, const uint8_t *image_buffer) |
Display image function. More... | |
void | eink_213_text (eink_213inch_t *ctx, char *text, eink_213inch_set_text_t *text_set) |
Function for draw text on the screen. More... | |
void | eink_213_set_font (eink_213inch_t *ctx, eink_213inch_font_t *cfg_font) |
Set font function. More... | |
void eink_213_display_image | ( | eink_213inch_t * | ctx, |
const uint8_t * | image_buffer | ||
) |
Display image function.
ctx | Click object. |
image | Buffer containing the image |
@description The image can be built from VTFT or image2lcd programs
void eink_213_fill_screen | ( | eink_213inch_t * | ctx, |
uint8_t | color | ||
) |
Function that fills the screen.
ctx | Click object. |
color | The color to which the screen will be colored |
void eink_213_reset | ( | eink_213inch_t * | ctx | ) |
Function for reset chip.
ctx | Click object. |
void eink_213_send_command | ( | eink_213inch_t * | ctx, |
uint8_t | command | ||
) |
Function for sending a command.
ctx | Click object. |
command | The command to be sent |
void eink_213_send_data | ( | eink_213inch_t * | ctx, |
uint8_t | c_data | ||
) |
Function for sending data.
ctx | Click object. |
c_data | The data to be sent |
void eink_213_set_font | ( | eink_213inch_t * | ctx, |
eink_213inch_font_t * | cfg_font | ||
) |
Set font function.
ctx | Click object. |
cfg_font | Struct object |
void eink_213_set_lut | ( | eink_213inch_t * | ctx, |
const uint8_t * | lut, | ||
uint8_t | n_bytes | ||
) |
Set LUT table.
ctx | Click object. |
lut | Lut table |
n_bytes | Number of bytes in Lut table |
@Note Changing the "lut table" can change the display's performance.
void eink_213_set_memory_area | ( | eink_213inch_t * | ctx, |
eink_213inch_xy_t * | xy | ||
) |
Function for setting area in memory.
ctx | Click object. |
xy | Struct object |
void eink_213_set_memory_pointer | ( | eink_213inch_t * | ctx, |
uint16_t | x, | ||
uint16_t | y | ||
) |
Function for setting pointers in memory.
ctx | Click object. |
x | x position |
y | y position |
void eink_213_sleep_mode | ( | eink_213inch_t * | ctx | ) |
Function for go to sleep mode.
ctx | Click object. |
void eink_213_start_config | ( | eink_213inch_t * | ctx | ) |
Start configuration display.
ctx | Click object. |
void eink_213_text | ( | eink_213inch_t * | ctx, |
char * | text, | ||
eink_213inch_set_text_t * | text_set | ||
) |
Function for draw text on the screen.
ctx | Click object. |
text | Text buffer |
text_set | Struct object |
void eink_213_update_display | ( | eink_213inch_t * | ctx | ) |
Functions for update display.
ctx | Click object. |
void eink_213inch_cfg_setup | ( | eink_213inch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void eink_213inch_generic_transfer | ( | eink_213inch_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len | ||
) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
EINK213INCH_RETVAL eink_213inch_init | ( | eink_213inch_t * | ctx, |
eink_213inch_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.