ipsdisplay2 2.1.0.0
Loading...
Searching...
No Matches
ipsdisplay2.h File Reference

This file contains API for IPS Display 2 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  ipsdisplay2_t
 IPS Display 2 Click context object. More...
 
struct  ipsdisplay2_cfg_t
 IPS Display 2 Click configuration object. More...
 
struct  ipsdisplay2_point_t
 IPS Display 2 Click point coordinates object. More...
 

Macros

#define IPSDISPLAY2_CMD_NOP   0x00
 IPS Display 2 system function command list 1.
 
#define IPSDISPLAY2_CMD_SWRESET   0x01
 
#define IPSDISPLAY2_CMD_RDDID   0x04
 
#define IPSDISPLAY2_CMD_RDDST   0x09
 
#define IPSDISPLAY2_CMD_RDDPM   0x0A
 
#define IPSDISPLAY2_CMD_RDDMADCTL   0x0B
 
#define IPSDISPLAY2_CMD_RDDCOLMOD   0x0C
 
#define IPSDISPLAY2_CMD_RDDIM   0x0D
 
#define IPSDISPLAY2_CMD_RDDSM   0x0E
 
#define IPSDISPLAY2_CMD_RDDSDR   0x0F
 
#define IPSDISPLAY2_CMD_SLPIN   0x10
 
#define IPSDISPLAY2_CMD_SLPOUT   0x11
 
#define IPSDISPLAY2_CMD_PTLON   0x12
 
#define IPSDISPLAY2_CMD_NORON   0x13
 
#define IPSDISPLAY2_CMD_INVOFF   0x20
 
#define IPSDISPLAY2_CMD_INVON   0x21
 
#define IPSDISPLAY2_CMD_GAMSET   0x26
 
#define IPSDISPLAY2_CMD_DISPOFF   0x28
 
#define IPSDISPLAY2_CMD_DISPON   0x29
 
#define IPSDISPLAY2_CMD_CASET   0x2A
 
#define IPSDISPLAY2_CMD_RASET   0x2B
 
#define IPSDISPLAY2_CMD_RAMWR   0x2C
 
#define IPSDISPLAY2_CMD_RAMRD   0x2E
 
#define IPSDISPLAY2_CMD_PTLAR   0x30
 
#define IPSDISPLAY2_CMD_VSCRDEF   0x33
 
#define IPSDISPLAY2_CMD_TEOFF   0x34
 
#define IPSDISPLAY2_CMD_TEON   0x35
 
#define IPSDISPLAY2_CMD_MADCTL   0x36
 
#define IPSDISPLAY2_CMD_VSCRSADD   0x37
 
#define IPSDISPLAY2_CMD_IDMOFF   0x38
 
#define IPSDISPLAY2_CMD_IDMON   0x39
 
#define IPSDISPLAY2_CMD_COLMOD   0x3A
 
#define IPSDISPLAY2_CMD_RAMWRC   0x3C
 
#define IPSDISPLAY2_CMD_RAMRDC   0x3E
 
#define IPSDISPLAY2_CMD_TESCAN   0x44
 
#define IPSDISPLAY2_CMD_RDTESCAN   0x45
 
#define IPSDISPLAY2_CMD_WRDISBV   0x51
 
#define IPSDISPLAY2_CMD_RDDISBV   0x52
 
#define IPSDISPLAY2_CMD_WRCTRLD   0x53
 
#define IPSDISPLAY2_CMD_RDCTRLD   0x54
 
#define IPSDISPLAY2_CMD_WRCACE   0x55
 
#define IPSDISPLAY2_CMD_RDCABC   0x56
 
#define IPSDISPLAY2_CMD_WRCABCMB   0x5E
 
#define IPSDISPLAY2_CMD_RDCABCMB   0x5F
 
#define IPSDISPLAY2_CMD_RDABCSDR   0x68
 
#define IPSDISPLAY2_CMD_RDID1   0xDA
 
#define IPSDISPLAY2_CMD_RDID2   0xDB
 
#define IPSDISPLAY2_CMD_RDID3   0xDC
 
#define IPSDISPLAY2_CMD_RAMCTRL   0xB0
 IPS Display 2 system function command list 2.
 
#define IPSDISPLAY2_CMD_RGBCTRL   0xB1
 
#define IPSDISPLAY2_CMD_PORCTRL   0xB2
 
#define IPSDISPLAY2_CMD_FRCTRL1   0xB3
 
#define IPSDISPLAY2_CMD_PARCTRL   0xB5
 
#define IPSDISPLAY2_CMD_GCTRL   0xB7
 
#define IPSDISPLAY2_CMD_GTADJ   0xB8
 
#define IPSDISPLAY2_CMD_DGMEN   0xBA
 
#define IPSDISPLAY2_CMD_VCOMS   0xBB
 
#define IPSDISPLAY2_CMD_POWSAVE   0xBC
 
#define IPSDISPLAY2_CMD_DLPOFFSAVE   0xBD
 
#define IPSDISPLAY2_CMD_LCMCTRL   0xC0
 
#define IPSDISPLAY2_CMD_IDSET   0xC1
 
#define IPSDISPLAY2_CMD_VDVVRHEN   0xC2
 
#define IPSDISPLAY2_CMD_VRHS   0xC3
 
#define IPSDISPLAY2_CMD_VDVSET   0xC4
 
#define IPSDISPLAY2_CMD_VCMOFSET   0xC5
 
#define IPSDISPLAY2_CMD_FRCTR2   0xC6
 
#define IPSDISPLAY2_CMD_CABCCTRL   0xC7
 
#define IPSDISPLAY2_CMD_REGSEL1   0xC8
 
#define IPSDISPLAY2_CMD_REGSEL2   0xCA
 
#define IPSDISPLAY2_CMD_PWMFRSEL   0xCC
 
#define IPSDISPLAY2_CMD_PWCTRL1   0xD0
 
#define IPSDISPLAY2_CMD_VAPVANEN   0xD2
 
#define IPSDISPLAY2_CMD_CMD2EN0   0xDF
 
#define IPSDISPLAY2_CMD_CMD2EN1   0x5A
 
#define IPSDISPLAY2_CMD_CMD2EN2   0x69
 
#define IPSDISPLAY2_CMD_CMD2EN3   0x02
 
#define IPSDISPLAY2_CMD_PVGAMCTRL   0xE0
 
#define IPSDISPLAY2_CMD_NVGAMCTRL   0xE1
 
#define IPSDISPLAY2_CMD_DGMLUTR   0xE2
 
#define IPSDISPLAY2_CMD_DGMLUTB   0xE3
 
#define IPSDISPLAY2_CMD_GATECTRL   0xE4
 
#define IPSDISPLAY2_CMD_SPI2EN   0xE7
 
#define IPSDISPLAY2_CMD_PWCTRL2   0xE8
 
#define IPSDISPLAY2_CMD_EQCTRL   0xE9
 
#define IPSDISPLAY2_CMD_PROMCTRL   0xEC
 
#define IPSDISPLAY2_CMD_PROMEN   0xFA
 
#define IPSDISPLAY2_CMD_NVMSET   0xFC
 
#define IPSDISPLAY2_CMD_PROMACT   0xFE
 
#define IPSDISPLAY2_MADCTL_DEFAULT   0x00
 IPS Display 2 MADCTL command setting.
 
#define IPSDISPLAY2_MADCTL_MY   0x80
 
#define IPSDISPLAY2_MADCTL_MX   0x40
 
#define IPSDISPLAY2_MADCTL_MV   0x20
 
#define IPSDISPLAY2_MADCTL_ML   0x10
 
#define IPSDISPLAY2_MADCTL_RGB   0x08
 
#define IPSDISPLAY2_MADCTL_MH   0x04
 
#define IPSDISPLAY2_COLMOD_RGB_65K   0x50
 IPS Display 2 COLMOD command setting.
 
#define IPSDISPLAY2_COLMOD_RGB_262K   0x60
 
#define IPSDISPLAY2_COLMOD_RGB_MASK   0x70
 
#define IPSDISPLAY2_COLMOD_CTRL_12BIT_PIXEL   0x03
 
#define IPSDISPLAY2_COLMOD_CTRL_16BIT_PIXEL   0x05
 
#define IPSDISPLAY2_COLMOD_CTRL_18BIT_PIXEL   0x06
 
#define IPSDISPLAY2_COLMOD_CTRL_16M_TRUNCATED   0x07
 
#define IPSDISPLAY2_COLMOD_CTRL_MASK   0x07
 
#define IPSDISPLAY2_PORCTRL_0_BPA_DEFAULT   0x0C
 IPS Display 2 PORCTRL command setting.
 
#define IPSDISPLAY2_PORCTRL_0_BPA_MASK   0x7F
 
#define IPSDISPLAY2_PORCTRL_1_FPA_DEFAULT   0x0C
 
#define IPSDISPLAY2_PORCTRL_1_FPA_MASK   0x7F
 
#define IPSDISPLAY2_PORCTRL_2_PSEN_DISABLE   0x00
 
#define IPSDISPLAY2_PORCTRL_2_PSEN_ENABLE   0x01
 
#define IPSDISPLAY2_PORCTRL_3_BPB_DEFAULT   0x30
 
#define IPSDISPLAY2_PORCTRL_3_BPB_MASK   0xF0
 
#define IPSDISPLAY2_PORCTRL_3_FPB_DEFAULT   0x03
 
#define IPSDISPLAY2_PORCTRL_3_FPB_MASK   0x0F
 
#define IPSDISPLAY2_PORCTRL_4_BPC_DEFAULT   0x30
 
#define IPSDISPLAY2_PORCTRL_4_BPC_MASK   0xF0
 
#define IPSDISPLAY2_PORCTRL_4_FPC_DEFAULT   0x03
 
#define IPSDISPLAY2_PORCTRL_4_FPC_MASK   0x0F
 
#define IPSDISPLAY2_GCTRL_VGHS_DEFAULT   0x30
 IPS Display 2 GCTRL command setting.
 
#define IPSDISPLAY2_GCTRL_VGHS_MASK   0x70
 
#define IPSDISPLAY2_GCTRL_VGLS_DEFAULT   0x05
 
#define IPSDISPLAY2_GCTRL_VGLS_MASK   0x07
 
#define IPSDISPLAY2_VCOMS_VCOM_DEFAULT   0x3A
 IPS Display 2 VCOMS command setting.
 
#define IPSDISPLAY2_VCOMS_VCOM_MASK   0x3F
 
#define IPSDISPLAY2_LCMCTRL_XMY   0x40
 IPS Display 2 LCMCTRL command setting.
 
#define IPSDISPLAY2_LCMCTRL_XBGR   0x20
 
#define IPSDISPLAY2_LCMCTRL_XINV   0x10
 
#define IPSDISPLAY2_LCMCTRL_XMX   0x08
 
#define IPSDISPLAY2_LCMCTRL_XMH   0x04
 
#define IPSDISPLAY2_LCMCTRL_XMV   0x02
 
#define IPSDISPLAY2_LCMCTRL_XGS   0x01
 
#define IPSDISPLAY2_VDVVRHEN_CMDEN_DISABLE   0x00
 IPS Display 2 VDVVRHEN command setting.
 
#define IPSDISPLAY2_VDVVRHEN_CMDEN_ENABLE   0x01
 
#define IPSDISPLAY2_VRHS_DEFAULT   0x19
 IPS Display 2 VRHS command setting.
 
#define IPSDISPLAY2_VRHS_MASK   0x3F
 
#define IPSDISPLAY2_VDVSET_DEFAULT   0x20
 IPS Display 2 VDVSET command setting.
 
#define IPSDISPLAY2_VDVSET_MASK   0x3F
 
#define IPSDISPLAY2_FRCTR2_NLA_DEFAULT   0x00
 IPS Display 2 FRCTR2 command setting.
 
#define IPSDISPLAY2_FRCTR2_NLA_MASK   0xE0
 
#define IPSDISPLAY2_FRCTR2_RTNA_DEFAULT   0x0F
 
#define IPSDISPLAY2_FRCTR2_RTNA_MASK   0x1F
 
#define IPSDISPLAY2_PWCTRL1_0_DEFAULT   0xA4
 IPS Display 2 PWCTRL1 command setting.
 
#define IPSDISPLAY2_PWCTRL1_1_AVDD_DEFAULT   0x80
 
#define IPSDISPLAY2_PWCTRL1_1_AVDD_MASK   0xC0
 
#define IPSDISPLAY2_PWCTRL1_1_AVCL_DEFAULT   0x20
 
#define IPSDISPLAY2_PWCTRL1_1_AVCL_MASK   0x30
 
#define IPSDISPLAY2_PWCTRL1_1_VDS_DEFAULT   0x01
 
#define IPSDISPLAY2_PWCTRL1_1_VDS_MASK   0x03
 
#define IPSDISPLAY2_PVGAMCTRL_0_V63P_DEFAULT   0xD0
 IPS Display 2 PVGAMCTRL command setting.
 
#define IPSDISPLAY2_PVGAMCTRL_0_V63P_MASK   0xF0
 
#define IPSDISPLAY2_PVGAMCTRL_0_V0P_DEFAULT   0x00
 
#define IPSDISPLAY2_PVGAMCTRL_0_V0P_MASK   0x0F
 
#define IPSDISPLAY2_PVGAMCTRL_1_V1P_DEFAULT   0x08
 
#define IPSDISPLAY2_PVGAMCTRL_1_V1P_MASK   0x3F
 
#define IPSDISPLAY2_PVGAMCTRL_2_V2P_DEFAULT   0x0E
 
#define IPSDISPLAY2_PVGAMCTRL_2_V2P_MASK   0x3F
 
#define IPSDISPLAY2_PVGAMCTRL_3_V4P_DEFAULT   0x09
 
#define IPSDISPLAY2_PVGAMCTRL_3_V4P_MASK   0x1F
 
#define IPSDISPLAY2_PVGAMCTRL_4_V6P_DEFAULT   0x09
 
#define IPSDISPLAY2_PVGAMCTRL_4_V6P_MASK   0x1F
 
#define IPSDISPLAY2_PVGAMCTRL_5_J0P_DEFAULT   0x00
 
#define IPSDISPLAY2_PVGAMCTRL_5_J0P_MASK   0x30
 
#define IPSDISPLAY2_PVGAMCTRL_5_J13P_DEFAULT   0x05
 
#define IPSDISPLAY2_PVGAMCTRL_5_J13P_MASK   0x0F
 
#define IPSDISPLAY2_PVGAMCTRL_6_V20P_DEFAULT   0x31
 
#define IPSDISPLAY2_PVGAMCTRL_6_V20P_MASK   0x7F
 
#define IPSDISPLAY2_PVGAMCTRL_7_V36P_DEFAULT   0x30
 
#define IPSDISPLAY2_PVGAMCTRL_7_V36P_MASK   0x70
 
#define IPSDISPLAY2_PVGAMCTRL_7_V27P_DEFAULT   0x03
 
#define IPSDISPLAY2_PVGAMCTRL_7_V27P_MASK   0x07
 
#define IPSDISPLAY2_PVGAMCTRL_8_V43P_DEFAULT   0x48
 
#define IPSDISPLAY2_PVGAMCTRL_8_V43P_MASK   0x7F
 
#define IPSDISPLAY2_PVGAMCTRL_9_J1P_DEFAULT   0x10
 
#define IPSDISPLAY2_PVGAMCTRL_9_11P_MASK   0x30
 
#define IPSDISPLAY2_PVGAMCTRL_9_V50P_DEFAULT   0x07
 
#define IPSDISPLAY2_PVGAMCTRL_9_V50P_MASK   0x0F
 
#define IPSDISPLAY2_PVGAMCTRL_10_V57P_DEFAULT   0x14
 
#define IPSDISPLAY2_PVGAMCTRL_10_V57P_MASK   0x1F
 
#define IPSDISPLAY2_PVGAMCTRL_11_V59P_DEFAULT   0x15
 
#define IPSDISPLAY2_PVGAMCTRL_11_V59P_MASK   0x1F
 
#define IPSDISPLAY2_PVGAMCTRL_12_V61P_DEFAULT   0x31
 
#define IPSDISPLAY2_PVGAMCTRL_12_V61P_MASK   0x3F
 
#define IPSDISPLAY2_PVGAMCTRL_13_V62P_DEFAULT   0x34
 
#define IPSDISPLAY2_PVGAMCTRL_13_V62P_MASK   0x3F
 
#define IPSDISPLAY2_NVGAMCTRL_0_V63N_DEFAULT   0xD0
 IPS Display 2 NVGAMCTRL command setting.
 
#define IPSDISPLAY2_NVGAMCTRL_0_V63N_MASK   0xF0
 
#define IPSDISPLAY2_NVGAMCTRL_0_V0N_DEFAULT   0x00
 
#define IPSDISPLAY2_NVGAMCTRL_0_V0N_MASK   0x0F
 
#define IPSDISPLAY2_NVGAMCTRL_1_V1N_DEFAULT   0x08
 
#define IPSDISPLAY2_NVGAMCTRL_1_V1N_MASK   0x3F
 
#define IPSDISPLAY2_NVGAMCTRL_2_V2N_DEFAULT   0x0E
 
#define IPSDISPLAY2_NVGAMCTRL_2_V2N_MASK   0x3F
 
#define IPSDISPLAY2_NVGAMCTRL_3_V4N_DEFAULT   0x09
 
#define IPSDISPLAY2_NVGAMCTRL_3_V4N_MASK   0x1F
 
#define IPSDISPLAY2_NVGAMCTRL_4_V6N_DEFAULT   0x09
 
#define IPSDISPLAY2_NVGAMCTRL_4_V6N_MASK   0x1F
 
#define IPSDISPLAY2_NVGAMCTRL_5_J0N_DEFAULT   0x10
 
#define IPSDISPLAY2_NVGAMCTRL_5_J0N_MASK   0x30
 
#define IPSDISPLAY2_NVGAMCTRL_5_J13N_DEFAULT   0x05
 
#define IPSDISPLAY2_NVGAMCTRL_5_J13N_MASK   0x0F
 
#define IPSDISPLAY2_NVGAMCTRL_6_V20N_DEFAULT   0x31
 
#define IPSDISPLAY2_NVGAMCTRL_6_V20N_MASK   0x7F
 
#define IPSDISPLAY2_NVGAMCTRL_7_V36N_DEFAULT   0x30
 
#define IPSDISPLAY2_NVGAMCTRL_7_V36N_MASK   0x70
 
#define IPSDISPLAY2_NVGAMCTRL_7_V27N_DEFAULT   0x03
 
#define IPSDISPLAY2_NVGAMCTRL_7_V27N_MASK   0x07
 
#define IPSDISPLAY2_NVGAMCTRL_8_V43N_DEFAULT   0x48
 
#define IPSDISPLAY2_NVGAMCTRL_8_V43N_MASK   0x7F
 
#define IPSDISPLAY2_NVGAMCTRL_9_J1N_DEFAULT   0x10
 
#define IPSDISPLAY2_NVGAMCTRL_9_11N_MASK   0x30
 
#define IPSDISPLAY2_NVGAMCTRL_9_V50N_DEFAULT   0x07
 
#define IPSDISPLAY2_NVGAMCTRL_9_V50N_MASK   0x0F
 
#define IPSDISPLAY2_NVGAMCTRL_10_V57N_DEFAULT   0x14
 
#define IPSDISPLAY2_NVGAMCTRL_10_V57N_MASK   0x1F
 
#define IPSDISPLAY2_NVGAMCTRL_11_V59N_DEFAULT   0x15
 
#define IPSDISPLAY2_NVGAMCTRL_11_V59N_MASK   0x1F
 
#define IPSDISPLAY2_NVGAMCTRL_12_V61N_DEFAULT   0x31
 
#define IPSDISPLAY2_NVGAMCTRL_12_V61N_MASK   0x3F
 
#define IPSDISPLAY2_NVGAMCTRL_13_V62N_DEFAULT   0x34
 
#define IPSDISPLAY2_NVGAMCTRL_13_V62N_MASK   0x3F
 
#define IPSDISPLAY2_RES_WIDTH   240
 IPS Display 2 resolution setting.
 
#define IPSDISPLAY2_RES_HEIGHT   240
 
#define IPSDISPLAY2_NUM_PIXELS   ( ( uint16_t ) IPSDISPLAY2_RES_WIDTH * IPSDISPLAY2_RES_HEIGHT )
 
#define IPSDISPLAY2_POS_WIDTH_MIN   0
 IPS Display 2 position and coordinates setting.
 
#define IPSDISPLAY2_POS_WIDTH_MAX   ( IPSDISPLAY2_RES_WIDTH - 1 )
 
#define IPSDISPLAY2_POS_HEIGHT_MIN   0
 
#define IPSDISPLAY2_POS_HEIGHT_MAX   ( IPSDISPLAY2_RES_HEIGHT - 1 )
 
#define IPSDISPLAY2_POS_OFFSET_LEFT   0
 
#define IPSDISPLAY2_POS_OFFSET_RIGHT   0
 
#define IPSDISPLAY2_POS_OFFSET_UP   0
 
#define IPSDISPLAY2_POS_OFFSET_DOWN   80
 
#define IPSDISPLAY2_FONT_WIDTH   6
 IPS Display 2 font setting.
 
#define IPSDISPLAY2_FONT_HEIGHT   12
 
#define IPSDISPLAY2_FONT_TEXT_SPACE   1
 
#define IPSDISPLAY2_FONT_ASCII_OFFSET   32
 
#define IPSDISPLAY2_FONT_WIDTH_MSB   0x80
 
#define IPSDISPLAY2_ROTATION_VERTICAL_0   0
 IPS Display 2 rotation setting.
 
#define IPSDISPLAY2_ROTATION_VERTICAL_180   1
 
#define IPSDISPLAY2_ROTATION_HORIZONTAL_0   2
 
#define IPSDISPLAY2_ROTATION_HORIZONTAL_180   3
 
#define IPSDISPLAY2_COLOR_BLACK   0x0000
 IPS Display 2 RGB565 colors definition.
 
#define IPSDISPLAY2_COLOR_WHITE   0xFFFF
 
#define IPSDISPLAY2_COLOR_RED   0xF800
 
#define IPSDISPLAY2_COLOR_LIME   0x07E0
 
#define IPSDISPLAY2_COLOR_BLUE   0x001F
 
#define IPSDISPLAY2_COLOR_YELLOW   0xFFE0
 
#define IPSDISPLAY2_COLOR_CYAN   0x07FF
 
#define IPSDISPLAY2_COLOR_MAGENTA   0xF81F
 
#define IPSDISPLAY2_COLOR_SILVER   0xBDF7
 
#define IPSDISPLAY2_COLOR_GRAY   0x8410
 
#define IPSDISPLAY2_COLOR_MAROON   0x8000
 
#define IPSDISPLAY2_COLOR_OLIVE   0x8400
 
#define IPSDISPLAY2_COLOR_GREEN   0x0400
 
#define IPSDISPLAY2_COLOR_PURPLE   0x8010
 
#define IPSDISPLAY2_COLOR_TEAL   0x0410
 
#define IPSDISPLAY2_COLOR_NAVY   0x0010
 
#define IPSDISPLAY2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define IPSDISPLAY2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define IPSDISPLAY2_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  ipsdisplay2_return_value_t { IPSDISPLAY2_OK = 0 , IPSDISPLAY2_ERROR = -1 }
 IPS Display 2 Click return value data. More...
 

Functions

void ipsdisplay2_cfg_setup (ipsdisplay2_cfg_t *cfg)
 IPS Display 2 configuration object setup function.
 
err_t ipsdisplay2_init (ipsdisplay2_t *ctx, ipsdisplay2_cfg_t *cfg)
 IPS Display 2 initialization function.
 
err_t ipsdisplay2_default_cfg (ipsdisplay2_t *ctx)
 IPS Display 2 default configuration function.
 
err_t ipsdisplay2_write_cmd (ipsdisplay2_t *ctx, uint8_t cmd)
 IPS Display 2 write cmd function.
 
err_t ipsdisplay2_write_cmd_par (ipsdisplay2_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len)
 IPS Display 2 write cmd par function.
 
err_t ipsdisplay2_write_data (ipsdisplay2_t *ctx, uint16_t *data_in, uint16_t len)
 IPS Display 2 write data function.
 
void ipsdisplay2_disable_device (ipsdisplay2_t *ctx)
 IPS Display 2 disable device function.
 
void ipsdisplay2_enable_device (ipsdisplay2_t *ctx)
 IPS Display 2 enable device function.
 
void ipsdisplay2_reset_device (ipsdisplay2_t *ctx)
 IPS Display 2 reset device function.
 
void ipsdisplay2_disable_backlight (ipsdisplay2_t *ctx)
 IPS Display 2 disable backlight function.
 
void ipsdisplay2_enable_backlight (ipsdisplay2_t *ctx)
 IPS Display 2 enable backlight function.
 
void ipsdisplay2_enter_cmd_mode (ipsdisplay2_t *ctx)
 IPS Display 2 enter cmd mode function.
 
void ipsdisplay2_enter_data_mode (ipsdisplay2_t *ctx)
 IPS Display 2 enter data mode function.
 
err_t ipsdisplay2_set_rotation (ipsdisplay2_t *ctx, uint8_t rotation)
 IPS Display 2 set rotation function.
 
err_t ipsdisplay2_set_pos (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, ipsdisplay2_point_t end_pt)
 IPS Display 2 set pos function.
 
err_t ipsdisplay2_fill_screen (ipsdisplay2_t *ctx, uint16_t color)
 IPS Display 2 fill screen function.
 
err_t ipsdisplay2_write_char (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, uint8_t data_in, uint16_t color)
 IPS Display 2 write char function.
 
err_t ipsdisplay2_write_string (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, uint8_t *data_in, uint16_t color)
 IPS Display 2 write string function.
 
err_t ipsdisplay2_draw_pixel (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, uint16_t color)
 IPS Display 2 draw pixel function.
 
err_t ipsdisplay2_draw_line (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, ipsdisplay2_point_t end_pt, uint16_t color)
 IPS Display 2 draw line function.
 
err_t ipsdisplay2_draw_rectangle (ipsdisplay2_t *ctx, ipsdisplay2_point_t start_pt, ipsdisplay2_point_t end_pt, uint16_t color)
 IPS Display 2 draw rectangle function.
 
err_t ipsdisplay2_draw_circle (ipsdisplay2_t *ctx, ipsdisplay2_point_t center_pt, uint8_t radius, uint16_t color)
 IPS Display 2 draw circle function.
 
err_t ipsdisplay2_draw_picture (ipsdisplay2_t *ctx, uint8_t rotation, const uint16_t *image)
 IPS Display 2 draw picture function.
 

Detailed Description

This file contains API for IPS Display 2 Click Driver.

Enumeration Type Documentation

◆ ipsdisplay2_return_value_t

IPS Display 2 Click return value data.

Predefined enum values for driver return values.

Enumerator
IPSDISPLAY2_OK 
IPSDISPLAY2_ERROR