eink_213inch  2.0.0.0
Data Structures | Macros | Functions
eink_213inch.h File Reference

This file contains API for eINK 213 Inch Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  eink_213inch_font_t
 
struct  eink_213inch_cord_t
 
struct  eink_213inch_xy_t
 
struct  eink_213inch_set_text_t
 
struct  eink_213inch_t
 Click ctx object definition. More...
 
struct  eink_213inch_cfg_t
 Click configuration structure definition. More...
 

Macros

#define EINK213INCH_MAP_MIKROBUS(cfg, mikrobus)
 
#define EINK213INCH_RETVAL   uint8_t
 
#define EINK213INCH_OK   0x00
 
#define EINK213INCH_INIT_ERROR   0xFF
 
#define EINK213_DISPLAY_WIDTH   128
 
#define EINK213_DISPLAY_HEIGHT   250
 
#define EINK213_DISPLAY_RESOLUTIONS   4000
 
#define EINK213_COMMUNICATION_SPI   0
 
#define EINK213_COMMUNICATION_I2C   1
 
#define EINK213_SCREEN_COLOR_WHITE   0xFF
 
#define EINK213_SCREEN_COLOR_BLACK   0x00
 
#define EINK213_SCREEN_COLOR_LIGHT_GREY   0xAA
 
#define EINK213_SCREEN_COLOR_DARK_GREY   0x55
 
#define EINK213_FO_HORIZONTAL   0x00
 
#define EINK213_FO_VERTICAL   0x01
 
#define EINK213_FO_VERTICAL_COLUMN   0x02
 
#define EINK213_CMD_DRIVER_OUTPUT_CONTROL   0x01
 
#define EINK213_CMD_BOOSTER_SOFT_START_CONTROL   0x0C
 
#define EINK213_CMD_GATE_SCAN_START_POSITION   0x0F
 
#define EINK213_CMD_DEEP_SLEEP_MODE   0x10
 
#define EINK213_CMD_DATA_ENTRY_MODE_SETTING   0x11
 
#define EINK213_CMD_SW_RESET   0x12
 
#define EINK213_CMD_TEMPERATURE_SENSOR_CONTROL   0x1A
 
#define EINK213_CMD_MASTER_ACTIVATION   0x20
 
#define EINK213_CMD_DISPLAY_UPDATE_CONTROL_1   0x21
 
#define EINK213_CMD_DISPLAY_UPDATE_CONTROL_2   0x22
 
#define EINK213_CMD_WRITE_RAM   0x24
 
#define EINK213_CMD_WRITE_VCOM_REGISTER   0x2C
 
#define EINK213_CMD_WRITE_LUT_REGISTER   0x32
 
#define EINK213_CMD_SET_DUMMY_LINE_PERIOD   0x3A
 
#define EINK213_CMD_SET_GATE_TIME   0x3B
 
#define EINK213_CMD_BORDER_WAVEFORM_CONTROL   0x3C
 
#define EINK213_CMD_SET_RAM_X_ADDRESS_START_END_POSITION   0x44
 
#define EINK213_CMD_SET_RAM_Y_ADDRESS_START_END_POSITION   0x45
 
#define EINK213_CMD_SET_RAM_X_ADDRESS_COUNTER   0x4E
 
#define EINK213_CMD_SET_RAM_Y_ADDRESS_COUNTER   0x4F
 
#define EINK213_CMD_TERMINATE_FRAME_READ_WRITE   0xFF
 

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...
 

Detailed Description

This file contains API for eINK 213 Inch Click driver.