Microchip® Advanced Software Framework

hx8347a.h File Reference

API driver for HX8347A TFT display component.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "board.h"
#include "conf_hx8347a.h"

Data Structures

struct  font
 Font structure. More...
 
struct  hx8347a_opt_t
 Input parameters when initializing HX8347A driver. More...
 

Macros

#define COLOR_AZUR   (0xF0FFFFu)
 
#define COLOR_BEIGE   (0xF5F5DCu)
 
#define COLOR_BLACK   (0x000000u)
 
#define COLOR_BLUE   (0x0000FFu)
 
#define COLOR_BLUEVIOLET   (0x8A2BE2u)
 
#define COLOR_BROWN   (0xA52A2Au)
 
#define COLOR_CYAN   (0x00FFFFu)
 
#define COLOR_DARKBLUE   (0x00008Bu)
 
#define COLOR_DARKCYAN   (0x008B8Bu)
 
#define COLOR_DARKGRAY   (0xA9A9A9u)
 
#define COLOR_DARKGREEN   (0x006400u)
 
#define COLOR_DARKRED   (0x800000u)
 
#define COLOR_DARKVIOLET   (0x9400D3u)
 
#define COLOR_GOLD   (0xFFD700u)
 
#define COLOR_GRAY   (0x808080u)
 
#define COLOR_GREEN   (0x00FF00u)
 
#define COLOR_GREENYELLOW   (0xADFF2Fu)
 
#define COLOR_INDIGO   (0x4B0082u)
 
#define COLOR_LIGHTBLUE   (0xADD8E6u)
 
#define COLOR_LIGHTCYAN   (0xE0FFFFu)
 
#define COLOR_LIGHTGREEN   (0x90EE90u)
 
#define COLOR_LIGHTGREY   (0xD3D3D3u)
 
#define COLOR_MAGENTA   (0xFF00FFu)
 
#define COLOR_NAVY   (0x000080u)
 
#define COLOR_OLIVE   (0x808000u)
 
#define COLOR_ORANGE   (0xFFA500u)
 
#define COLOR_RED   (0xFF0000u)
 
#define COLOR_SIENNA   (0xA0522Du)
 
#define COLOR_SILVER   (0xC0C0C0u)
 
#define COLOR_SKYBLUE   (0x87CEEBu)
 
#define COLOR_SNOW   (0xFFFAFAu)
 
#define COLOR_TOMATO   (0xFF6347u)
 
#define COLOR_TURQUOISE   (0x40E0D0u)
 
#define COLOR_VIOLET   (0xEE82EEu)
 
#define COLOR_WHITE   (0xFFFFFFu)
 
#define COLOR_YELLOW   (0xFFFF00u)
 
#define COLOR_YELLOWGREEN   (0x9ACD32u)
 
#define HX8347A_BGP_CTRL   (0x42u)
 
#define HX8347A_BGP_CTRL_BGP(value)   ((HX8347A_BGP_CTRL_BGP_MSK & ((value) << HX8347A_BGP_CTRL_BGP_POS)))
 
#define HX8347A_BGP_CTRL_BGP_MSK   (0xfu << HX8347A_BGP_CTRL_BGP_POS)
 
#define HX8347A_BGP_CTRL_BGP_POS   0
 
#define HX8347A_BGP_CTRL_VBGP_OE   (0x1u << 4)
 
#define HX8347A_COL_ADDR_END1   (0x05u)
 
#define HX8347A_COL_ADDR_END1_EC(value)   ((HX8347A_COL_ADDR_END1_EC_MSK & ((value) << HX8347A_COL_ADDR_END1_EC_POS)))
 
#define HX8347A_COL_ADDR_END1_EC_MSK   (0xffu << HX8347A_COL_ADDR_END1_EC_POS)
 
#define HX8347A_COL_ADDR_END1_EC_POS   0
 
#define HX8347A_COL_ADDR_END2   (0x04u)
 
#define HX8347A_COL_ADDR_END2_EC(value)   ((HX8347A_COL_ADDR_END2_EC_MSK & ((value) << HX8347A_COL_ADDR_END2_EC_POS)))
 
#define HX8347A_COL_ADDR_END2_EC_MSK   (0xffu << HX8347A_COL_ADDR_END2_EC_POS)
 
#define HX8347A_COL_ADDR_END2_EC_POS   0
 
#define HX8347A_COL_ADDR_START1   (0x03u)
 
#define HX8347A_COL_ADDR_START1_SC(value)   ((HX8347A_COL_ADDR_START1_SC_MSK & ((value) << HX8347A_COL_ADDR_START1_SC_POS)))
 
#define HX8347A_COL_ADDR_START1_SC_MSK   (0xffu << HX8347A_COL_ADDR_START1_SC_POS)
 
#define HX8347A_COL_ADDR_START1_SC_POS   0
 
#define HX8347A_COL_ADDR_START2   (0x02u)
 
#define HX8347A_COL_ADDR_START2_SC(value)   ((HX8347A_COL_ADDR_START2_SC_MSK & ((value) << HX8347A_COL_ADDR_START2_SC_POS)))
 
#define HX8347A_COL_ADDR_START2_SC_MSK   (0xffu << HX8347A_COL_ADDR_START2_SC_POS)
 
#define HX8347A_COL_ADDR_START2_SC_POS   0
 
#define HX8347A_CYCLE_CTRL1   (0x3Au)
 
#define HX8347A_CYCLE_CTRL1_N_NW(value)   ((HX8347A_CYCLE_CTRL1_N_NW_MSK & ((value) << HX8347A_CYCLE_CTRL1_N_NW_POS)))
 
#define HX8347A_CYCLE_CTRL1_N_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL1_N_NW_POS)
 
#define HX8347A_CYCLE_CTRL1_N_NW_POS   0
 
#define HX8347A_CYCLE_CTRL1_N_RTN(value)   ((HX8347A_CYCLE_CTRL1_N_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL1_N_RTN_POS)))
 
#define HX8347A_CYCLE_CTRL1_N_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL1_N_RTN_POS)
 
#define HX8347A_CYCLE_CTRL1_N_RTN_POS   4
 
#define HX8347A_CYCLE_CTRL2   (0x3Bu)
 
#define HX8347A_CYCLE_CTRL2_PI_NW(value)   ((HX8347A_CYCLE_CTRL2_PI_NW_MSK & ((value) << HX8347A_CYCLE_CTRL2_PI_NW_POS)))
 
#define HX8347A_CYCLE_CTRL2_PI_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL2_PI_NW_POS)
 
#define HX8347A_CYCLE_CTRL2_PI_NW_POS   0
 
#define HX8347A_CYCLE_CTRL2_PI_RTN(value)   ((HX8347A_CYCLE_CTRL2_PI_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL2_PI_RTN_POS)))
 
#define HX8347A_CYCLE_CTRL2_PI_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL2_PI_RTN_POS)
 
#define HX8347A_CYCLE_CTRL2_PI_RTN_POS   4
 
#define HX8347A_CYCLE_CTRL3   (0x3Cu)
 
#define HX8347A_CYCLE_CTRL3_I_NW(value)   ((HX8347A_CYCLE_CTRL3_I_NW_MSK & ((value) << HX8347A_CYCLE_CTRL3_I_NW_POS)))
 
#define HX8347A_CYCLE_CTRL3_I_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL3_I_NW_POS)
 
#define HX8347A_CYCLE_CTRL3_I_NW_POS   0
 
#define HX8347A_CYCLE_CTRL3_I_RTN(value)   ((HX8347A_CYCLE_CTRL3_I_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL3_I_RTN_POS)))
 
#define HX8347A_CYCLE_CTRL3_I_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL3_I_RTN_POS)
 
#define HX8347A_CYCLE_CTRL3_I_RTN_POS   4
 
#define HX8347A_CYCLE_CTRL4   (0x3Du)
 
#define HX8347A_CYCLE_CTRL4_DIV_I(value)   ((HX8347A_CYCLE_CTRL4_DIV_I_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_I_POS)))
 
#define HX8347A_CYCLE_CTRL4_DIV_I_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_I_POS)
 
#define HX8347A_CYCLE_CTRL4_DIV_I_POS   4
 
#define HX8347A_CYCLE_CTRL4_DIV_N(value)   ((HX8347A_CYCLE_CTRL4_DIV_N_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_N_POS)))
 
#define HX8347A_CYCLE_CTRL4_DIV_N_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_N_POS)
 
#define HX8347A_CYCLE_CTRL4_DIV_N_POS   0
 
#define HX8347A_CYCLE_CTRL4_DIV_PI(value)   ((HX8347A_CYCLE_CTRL4_DIV_PI_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_PI_POS)))
 
#define HX8347A_CYCLE_CTRL4_DIV_PI_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_PI_POS)
 
#define HX8347A_CYCLE_CTRL4_DIV_PI_POS   2
 
#define HX8347A_CYCLE_CTRL5   (0x3Eu)
 
#define HX8347A_CYCLE_CTRL5_SON(value)   ((HX8347A_CYCLE_CTRL5_SON_MSK & ((value) << HX8347A_CYCLE_CTRL5_SON_POS)))
 
#define HX8347A_CYCLE_CTRL5_SON_MSK   (0xffu << HX8347A_CYCLE_CTRL5_SON_POS)
 
#define HX8347A_CYCLE_CTRL5_SON_POS   0
 
#define HX8347A_CYCLE_CTRL6   (0x40u)
 
#define HX8347A_CYCLE_CTRL6_GDON(value)   ((HX8347A_CYCLE_CTRL6_GDON_MSK & ((value) << HX8347A_CYCLE_CTRL6_GDON_POS)))
 
#define HX8347A_CYCLE_CTRL6_GDON_MSK   (0xffu << HX8347A_CYCLE_CTRL6_GDON_POS)
 
#define HX8347A_CYCLE_CTRL6_GDON_POS   0
 
#define HX8347A_CYCLE_CTRL7   (0x41u)
 
#define HX8347A_CYCLE_CTRL7_GDOF(value)   ((HX8347A_CYCLE_CTRL7_GDOF_MSK & ((value) << HX8347A_CYCLE_CTRL7_GDOF_POS)))
 
#define HX8347A_CYCLE_CTRL7_GDOF_MSK   (0xffu << HX8347A_CYCLE_CTRL7_GDOF_POS)
 
#define HX8347A_CYCLE_CTRL7_GDOF_POS   0
 
#define HX8347A_CYCLE_CTRL_1   (0x23u)
 
#define HX8347A_CYCLE_CTRL_1_N_DC(value)   ((HX8347A_CYCLE_CTRL_1_N_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_1_N_DC_POS)))
 
#define HX8347A_CYCLE_CTRL_1_N_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_1_N_DC_POS)
 
#define HX8347A_CYCLE_CTRL_1_N_DC_POS   0
 
#define HX8347A_CYCLE_CTRL_2   (0x24u)
 
#define HX8347A_CYCLE_CTRL_2_PI_DC(value)   ((HX8347A_CYCLE_CTRL_2_PI_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_2_PI_DC_POS)))
 
#define HX8347A_CYCLE_CTRL_2_PI_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_2_PI_DC_POS)
 
#define HX8347A_CYCLE_CTRL_2_PI_DC_POS   0
 
#define HX8347A_CYCLE_CTRL_3   (0x25u)
 
#define HX8347A_CYCLE_CTRL_3_I_DC(value)   ((HX8347A_CYCLE_CTRL_3_I_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_3_I_DC_POS)))
 
#define HX8347A_CYCLE_CTRL_3_I_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_3_I_DC_POS)
 
#define HX8347A_CYCLE_CTRL_3_I_DC_POS   0
 
#define HX8347A_DATA_CTRL   (0x72u)
 
#define HX8347A_DATA_CTRL_DFM(value)   ((HX8347A_DATA_CTRL_DFM_MSK & ((value) << HX8347A_DATA_CTRL_DFM_POS)))
 
#define HX8347A_DATA_CTRL_DFM_MSK   (0x3u << HX8347A_DATA_CTRL_DFM_POS)
 
#define HX8347A_DATA_CTRL_DFM_POS   4
 
#define HX8347A_DATA_CTRL_TRI(value)   ((HX8347A_DATA_CTRL_TRI_MSK & ((value) << HX8347A_DATA_CTRL_TRI_POS)))
 
#define HX8347A_DATA_CTRL_TRI_MSK   (0x3u << HX8347A_DATA_CTRL_TRI_POS)
 
#define HX8347A_DATA_CTRL_TRI_POS   0
 
#define HX8347A_DCCLK_SYNC_TO_CL1   (0x95u)
 
#define HX8347A_DCCLK_SYNC_TO_CL1_DCCLK_SYNC   (0x1u << 0)
 
#define HX8347A_DEVICE_CODE   (0x47u)
 
#define HX8347A_DISP_CTRL1   (0x26u)
 
#define HX8347A_DISP_CTRL10   (0x36u)
 
#define HX8347A_DISP_CTRL10_EQP(value)   ((HX8347A_DISP_CTRL10_EQP_MSK & ((value) << HX8347A_DISP_CTRL10_EQP_POS)))
 
#define HX8347A_DISP_CTRL10_EQP_MSK   (0xffu << HX8347A_DISP_CTRL10_EQP_POS)
 
#define HX8347A_DISP_CTRL10_EQP_POS   0
 
#define HX8347A_DISP_CTRL11   (0x91u)
 
#define HX8347A_DISP_CTRL11_GEN_OFF(value)   ((HX8347A_DISP_CTRL11_GEN_OFF_MSK & ((value) << HX8347A_DISP_CTRL11_GEN_OFF_POS)))
 
#define HX8347A_DISP_CTRL11_GEN_OFF_MSK   (0xffu << HX8347A_DISP_CTRL11_GEN_OFF_POS)
 
#define HX8347A_DISP_CTRL11_GEN_OFF_POS   0
 
#define HX8347A_DISP_CTRL12   (0x37u)
 
#define HX8347A_DISP_CTRL12_ISC(value)   ((HX8347A_DISP_CTRL12_ISC_MSK & ((value) << HX8347A_DISP_CTRL12_ISC_POS)))
 
#define HX8347A_DISP_CTRL12_ISC_MSK   (0xfu << HX8347A_DISP_CTRL12_ISC_POS)
 
#define HX8347A_DISP_CTRL12_ISC_POS   0
 
#define HX8347A_DISP_CTRL12_PTG(value)   ((HX8347A_DISP_CTRL12_PTG_MSK & ((value) << HX8347A_DISP_CTRL12_PTG_POS)))
 
#define HX8347A_DISP_CTRL12_PTG_MSK   (0x3u << HX8347A_DISP_CTRL12_PTG_POS)
 
#define HX8347A_DISP_CTRL12_PTG_POS   4
 
#define HX8347A_DISP_CTRL1_D(value)   ((HX8347A_DISP_CTRL1_D_MSK & ((value) << HX8347A_DISP_CTRL1_D_POS)))
 
#define HX8347A_DISP_CTRL1_D_MSK   (0x3u << HX8347A_DISP_CTRL1_D_POS)
 
#define HX8347A_DISP_CTRL1_D_POS   2
 
#define HX8347A_DISP_CTRL1_DTE   (0x1u << 4)
 
#define HX8347A_DISP_CTRL1_GON   (0x1u << 5)
 
#define HX8347A_DISP_CTRL1_PT(value)   ((HX8347A_DISP_CTRL1_PT_MSK & ((value) << HX8347A_DISP_CTRL1_PT_POS)))
 
#define HX8347A_DISP_CTRL1_PT_MSK   (0x3u << HX8347A_DISP_CTRL1_PT_POS)
 
#define HX8347A_DISP_CTRL1_PT_POS   6
 
#define HX8347A_DISP_CTRL2   (0x27u)
 
#define HX8347A_DISP_CTRL2_N_BP(value)   ((HX8347A_DISP_CTRL2_N_BP_MSK & ((value) << HX8347A_DISP_CTRL2_N_BP_POS)))
 
#define HX8347A_DISP_CTRL2_N_BP_MSK   (0xfu << HX8347A_DISP_CTRL2_N_BP_POS)
 
#define HX8347A_DISP_CTRL2_N_BP_POS   0
 
#define HX8347A_DISP_CTRL3   (0x28u)
 
#define HX8347A_DISP_CTRL3_N_FP(value)   ((HX8347A_DISP_CTRL3_N_FP_MSK & ((value) << HX8347A_DISP_CTRL3_N_FP_POS)))
 
#define HX8347A_DISP_CTRL3_N_FP_MSK   (0xfu << HX8347A_DISP_CTRL3_N_FP_POS)
 
#define HX8347A_DISP_CTRL3_N_FP_POS   0
 
#define HX8347A_DISP_CTRL4   (0x29u)
 
#define HX8347A_DISP_CTRL4_PI_BP(value)   ((HX8347A_DISP_CTRL4_PI_BP_MSK & ((value) << HX8347A_DISP_CTRL4_PI_BP_POS)))
 
#define HX8347A_DISP_CTRL4_PI_BP_MSK   (0xfu << HX8347A_DISP_CTRL4_PI_BP_POS)
 
#define HX8347A_DISP_CTRL4_PI_BP_POS   0
 
#define HX8347A_DISP_CTRL5   (0x2Au)
 
#define HX8347A_DISP_CTRL5_PI_FP(value)   ((HX8347A_DISP_CTRL5_PI_FP_MSK & ((value) << HX8347A_DISP_CTRL5_PI_FP_POS)))
 
#define HX8347A_DISP_CTRL5_PI_FP_MSK   (0xfu << HX8347A_DISP_CTRL5_PI_FP_POS)
 
#define HX8347A_DISP_CTRL5_PI_FP_POS   0
 
#define HX8347A_DISP_CTRL6   (0x2Cu)
 
#define HX8347A_DISP_CTRL6_I_BP(value)   ((HX8347A_DISP_CTRL6_I_BP_MSK & ((value) << HX8347A_DISP_CTRL6_I_BP_POS)))
 
#define HX8347A_DISP_CTRL6_I_BP_MSK   (0xfu << HX8347A_DISP_CTRL6_I_BP_POS)
 
#define HX8347A_DISP_CTRL6_I_BP_POS   0
 
#define HX8347A_DISP_CTRL7   (0x2Du)
 
#define HX8347A_DISP_CTRL7_I_FP(value)   ((HX8347A_DISP_CTRL7_I_FP_MSK & ((value) << HX8347A_DISP_CTRL7_I_FP_POS)))
 
#define HX8347A_DISP_CTRL7_I_FP_MSK   (0xfu << HX8347A_DISP_CTRL7_I_FP_POS)
 
#define HX8347A_DISP_CTRL7_I_FP_POS   0
 
#define HX8347A_DISP_CTRL8   (0x90u)
 
#define HX8347A_DISP_CTRL8_SAP(value)   ((HX8347A_DISP_CTRL8_SAP_MSK & ((value) << HX8347A_DISP_CTRL8_SAP_POS)))
 
#define HX8347A_DISP_CTRL8_SAP_MSK   (0xffu << HX8347A_DISP_CTRL8_SAP_POS)
 
#define HX8347A_DISP_CTRL8_SAP_POS   0
 
#define HX8347A_DISP_CTRL9   (0x35u)
 
#define HX8347A_DISP_CTRL9_EQS(value)   ((HX8347A_DISP_CTRL9_EQS_MSK & ((value) << HX8347A_DISP_CTRL9_EQS_POS)))
 
#define HX8347A_DISP_CTRL9_EQS_MSK   (0xffu << HX8347A_DISP_CTRL9_EQS_POS)
 
#define HX8347A_DISP_CTRL9_EQS_POS   0
 
#define HX8347A_DISP_MODE_CTRL   (0x01u)
 
#define HX8347A_DISP_MODE_CTRL_IDMON   (0x1u << 3)
 
#define HX8347A_DISP_MODE_CTRL_INVON   (0x1u << 2)
 
#define HX8347A_DISP_MODE_CTRL_NORON   (0x1u << 1)
 
#define HX8347A_DISP_MODE_CTRL_PTLON   (0x1u << 0)
 
#define HX8347A_GATE_SCAN_CTRL   (0x18u)
 
#define HX8347A_GATE_SCAN_CTRL_SCROLL_ON   (0x1u << 1)
 
#define HX8347A_GATE_SCAN_CTRL_SM   (0x1u << 0)
 
#define HX8347A_HIMAX_ID_CODE   (0x67u)
 
#define HX8347A_LCD_HEIGHT   320
 
#define HX8347A_LCD_WIDTH   240
 
#define HX8347A_MEMORY_ACCESS_CTRL   (0x16u)
 
#define HX8347A_MEMORY_ACCESS_CTRL_BGR   (0x1u << 3)
 
#define HX8347A_MEMORY_ACCESS_CTRL_MV   (0x1u << 5)
 
#define HX8347A_MEMORY_ACCESS_CTRL_MX   (0x1u << 6)
 
#define HX8347A_MEMORY_ACCESS_CTRL_MY   (0x1u << 7)
 
#define HX8347A_OSC_CTRL1   (0x19u)
 
#define HX8347A_OSC_CTRL1_CADJ(value)   ((HX8347A_OSC_CTRL1_CADJ_MSK & ((value) << HX8347A_OSC_CTRL1_CADJ_POS)))
 
#define HX8347A_OSC_CTRL1_CADJ_MSK   (0xfu << HX8347A_OSC_CTRL1_CADJ_POS)
 
#define HX8347A_OSC_CTRL1_CADJ_POS   4
 
#define HX8347A_OSC_CTRL1_CUADJ(value)   ((HX8347A_OSC_CTRL1_CUADJ_MSK & ((value) << HX8347A_OSC_CTRL1_CUADJ_POS)))
 
#define HX8347A_OSC_CTRL1_CUADJ_MSK   (0x7u << HX8347A_OSC_CTRL1_CUADJ_POS)
 
#define HX8347A_OSC_CTRL1_CUADJ_POS   1
 
#define HX8347A_OSC_CTRL1_OSC_EN   (0x1u << 0)
 
#define HX8347A_OSC_CTRL2   (0x1Au)
 
#define HX8347A_OSC_CTRL2_OSC_TEST   (0x1u << 0)
 
#define HX8347A_OSC_CTRL3   (0x93u)
 
#define HX8347A_OSC_CTRL3_RADJ(value)   ((HX8347A_OSC_CTRL3_RADJ_MSK & ((value) << HX8347A_OSC_CTRL3_RADJ_POS)))
 
#define HX8347A_OSC_CTRL3_RADJ_MSK   (0xfu << HX8347A_OSC_CTRL3_RADJ_POS)
 
#define HX8347A_OSC_CTRL3_RADJ_POS   0
 
#define HX8347A_OTP_CTRL1   (0x52u)
 
#define HX8347A_OTP_CTRL1_OTP_MASK(value)   ((HX8347A_OTP_CTRL1_OTP_MASK_MSK & ((value) << HX8347A_OTP_CTRL1_OTP_MASK_POS)))
 
#define HX8347A_OTP_CTRL1_OTP_MASK_MSK   (0xffu << HX8347A_OTP_CTRL1_OTP_MASK_POS)
 
#define HX8347A_OTP_CTRL1_OTP_MASK_POS   0
 
#define HX8347A_OTP_CTRL2   (0x53u)
 
#define HX8347A_OTP_CTRL2_OTP_INDEX(value)   ((HX8347A_OTP_CTRL2_OTP_INDEX_MSK & ((value) << HX8347A_OTP_CTRL2_OTP_INDEX_POS)))
 
#define HX8347A_OTP_CTRL2_OTP_INDEX_MSK   (0xffu << HX8347A_OTP_CTRL2_OTP_INDEX_POS)
 
#define HX8347A_OTP_CTRL2_OTP_INDEX_POS   0
 
#define HX8347A_OTP_CTRL3   (0x54u)
 
#define HX8347A_OTP_CTRL3_DCCLK_DISABLE   (0x1u << 6)
 
#define HX8347A_OTP_CTRL3_OTP_LOAD_DISABLE   (0x1u << 7)
 
#define HX8347A_OTP_CTRL3_OTP_POR   (0x1u << 5)
 
#define HX8347A_OTP_CTRL3_OTP_PROG   (0x1u << 0)
 
#define HX8347A_OTP_CTRL3_OTP_PTM   (0x1u << 3)
 
#define HX8347A_OTP_CTRL3_OTP_PWE   (0x1u << 4)
 
#define HX8347A_OTP_CTRL3_VPP_SEL   (0x1u << 1)
 
#define HX8347A_PARTIAL_AREA_END_ROW1   (0x0Du)
 
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL(value)   ((HX8347A_PARTIAL_AREA_END_ROW1_PEL_MSK & ((value) << HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS)))
 
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL_MSK   (0xffu << HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS)
 
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS   0
 
#define HX8347A_PARTIAL_AREA_END_ROW2   (0x0Cu)
 
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL(value)   ((HX8347A_PARTIAL_AREA_END_ROW2_PEL_MSK & ((value) << HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS)))
 
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL_MSK   (0xffu << HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS)
 
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS   0
 
#define HX8347A_PARTIAL_AREA_START_ROW1   (0x0Bu)
 
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL(value)   ((HX8347A_PARTIAL_AREA_START_ROW1_PSL_MSK & ((value) << HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS)))
 
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL_MSK   (0xffu << HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS)
 
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS   0
 
#define HX8347A_PARTIAL_AREA_START_ROW2   (0x0Au)
 
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL(value)   ((HX8347A_PARTIAL_AREA_START_ROW2_PSL_MSK & ((value) << HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS)))
 
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL_MSK   (0xffu << HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS)
 
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS   0
 
#define HX8347A_POWER_CTRL1   (0x1Bu)
 
#define HX8347A_POWER_CTRL11   (0x2Bu)
 
#define HX8347A_POWER_CTRL11_BLANK_DIV(value)   ((HX8347A_POWER_CTRL11_BLANK_DIV_MSK & ((value) << HX8347A_POWER_CTRL11_BLANK_DIV_POS)))
 
#define HX8347A_POWER_CTRL11_BLANK_DIV_MSK   (0xfu << HX8347A_POWER_CTRL11_BLANK_DIV_POS)
 
#define HX8347A_POWER_CTRL11_BLANK_DIV_POS   0
 
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH(value)   ((HX8347A_POWER_CTRL11_PI_PRE_REFRESH_MSK & ((value) << HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS)))
 
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH_MSK   (0x3u << HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS)
 
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS   4
 
#define HX8347A_POWER_CTRL1_DK   (0x1u << 3)
 
#define HX8347A_POWER_CTRL1_GASENB   (0x1u << 7)
 
#define HX8347A_POWER_CTRL1_PON   (0x1u << 4)
 
#define HX8347A_POWER_CTRL1_STB   (0x1u << 0)
 
#define HX8347A_POWER_CTRL1_VLCD_TRI   (0x1u << 1)
 
#define HX8347A_POWER_CTRL1_XDK   (0x1u << 2)
 
#define HX8347A_POWER_CTRL2   (0x1Cu)
 
#define HX8347A_POWER_CTRL2_AP(value)   ((HX8347A_POWER_CTRL2_AP_MSK & ((value) << HX8347A_POWER_CTRL2_AP_POS)))
 
#define HX8347A_POWER_CTRL2_AP_MSK   (0x7u << HX8347A_POWER_CTRL2_AP_POS)
 
#define HX8347A_POWER_CTRL2_AP_POS   0
 
#define HX8347A_POWER_CTRL3   (0x1Du)
 
#define HX8347A_POWER_CTRL3_VC1(value)   ((HX8347A_POWER_CTRL3_VC1_MSK & ((value) << HX8347A_POWER_CTRL3_VC1_POS)))
 
#define HX8347A_POWER_CTRL3_VC1_MSK   (0x7u << HX8347A_POWER_CTRL3_VC1_POS)
 
#define HX8347A_POWER_CTRL3_VC1_POS   0
 
#define HX8347A_POWER_CTRL4   (0x1Eu)
 
#define HX8347A_POWER_CTRL4_VC3(value)   ((HX8347A_POWER_CTRL4_VC3_MSK & ((value) << HX8347A_POWER_CTRL4_VC3_POS)))
 
#define HX8347A_POWER_CTRL4_VC3_MSK   (0x7u << HX8347A_POWER_CTRL4_VC3_POS)
 
#define HX8347A_POWER_CTRL4_VC3_POS   0
 
#define HX8347A_POWER_CTRL5   (0x1Fu)
 
#define HX8347A_POWER_CTRL5_VRH(value)   ((HX8347A_POWER_CTRL5_VRH_MSK & ((value) << HX8347A_POWER_CTRL5_VRH_POS)))
 
#define HX8347A_POWER_CTRL5_VRH_MSK   (0xfu << HX8347A_POWER_CTRL5_VRH_POS)
 
#define HX8347A_POWER_CTRL5_VRH_POS   0
 
#define HX8347A_POWER_CTRL6   (0x20u)
 
#define HX8347A_POWER_CTRL6_BT(value)   ((HX8347A_POWER_CTRL6_BT_MSK & ((value) << HX8347A_POWER_CTRL6_BT_POS)))
 
#define HX8347A_POWER_CTRL6_BT_MSK   (0xfu << HX8347A_POWER_CTRL6_BT_POS)
 
#define HX8347A_POWER_CTRL6_BT_POS   4
 
#define HX8347A_POWER_CTRL7   (0x21u)
 
#define HX8347A_POWER_CTRL7_FS0(value)   ((HX8347A_POWER_CTRL7_FS0_MSK & ((value) << HX8347A_POWER_CTRL7_FS0_POS)))
 
#define HX8347A_POWER_CTRL7_FS0_MSK   (0x3u << HX8347A_POWER_CTRL7_FS0_POS)
 
#define HX8347A_POWER_CTRL7_FS0_POS   0
 
#define HX8347A_POWER_CTRL7_FS1(value)   ((HX8347A_POWER_CTRL7_FS1_MSK & ((value) << HX8347A_POWER_CTRL7_FS1_POS)))
 
#define HX8347A_POWER_CTRL7_FS1_MSK   (0x3u << HX8347A_POWER_CTRL7_FS1_POS)
 
#define HX8347A_POWER_CTRL7_FS1_POS   4
 
#define HX8347A_R_CTRL1   (0x46u)
 
#define HX8347A_R_CTRL10   (0x4Fu)
 
#define HX8347A_R_CTRL10_CGMP2   (0x1u << 6)
 
#define HX8347A_R_CTRL10_CGMP3   (0x1u << 7)
 
#define HX8347A_R_CTRL10_OP10   (0x1u << 0)
 
#define HX8347A_R_CTRL10_OP11   (0x1u << 1)
 
#define HX8347A_R_CTRL10_OP12   (0x1u << 2)
 
#define HX8347A_R_CTRL10_OP13   (0x1u << 3)
 
#define HX8347A_R_CTRL10_OP14   (0x1u << 4)
 
#define HX8347A_R_CTRL11   (0x50u)
 
#define HX8347A_R_CTRL11_CGMN00   (0x1u << 4)
 
#define HX8347A_R_CTRL11_CGMN01   (0x1u << 5)
 
#define HX8347A_R_CTRL11_CGMN10   (0x1u << 6)
 
#define HX8347A_R_CTRL11_CGMN11   (0x1u << 7)
 
#define HX8347A_R_CTRL11_ON00   (0x1u << 0)
 
#define HX8347A_R_CTRL11_ON01   (0x1u << 1)
 
#define HX8347A_R_CTRL11_ON02   (0x1u << 2)
 
#define HX8347A_R_CTRL11_ON03   (0x1u << 3)
 
#define HX8347A_R_CTRL12   (0x51u)
 
#define HX8347A_R_CTRL12_CGMN2   (0x1u << 6)
 
#define HX8347A_R_CTRL12_CGMN3   (0x1u << 7)
 
#define HX8347A_R_CTRL12_ON10   (0x1u << 0)
 
#define HX8347A_R_CTRL12_ON11   (0x1u << 1)
 
#define HX8347A_R_CTRL12_ON12   (0x1u << 2)
 
#define HX8347A_R_CTRL12_ON13   (0x1u << 3)
 
#define HX8347A_R_CTRL12_ON14   (0x1u << 4)
 
#define HX8347A_R_CTRL1_CP00   (0x1u << 0)
 
#define HX8347A_R_CTRL1_CP01   (0x1u << 1)
 
#define HX8347A_R_CTRL1_CP02   (0x1u << 2)
 
#define HX8347A_R_CTRL1_CP10   (0x1u << 4)
 
#define HX8347A_R_CTRL1_CP11   (0x1u << 5)
 
#define HX8347A_R_CTRL1_CP12   (0x1u << 6)
 
#define HX8347A_R_CTRL1_GSEL   (0x1u << 7)
 
#define HX8347A_R_CTRL2   (0x47u)
 
#define HX8347A_R_CTRL2_CN00   (0x1u << 0)
 
#define HX8347A_R_CTRL2_CN01   (0x1u << 1)
 
#define HX8347A_R_CTRL2_CN02   (0x1u << 2)
 
#define HX8347A_R_CTRL2_CN10   (0x1u << 4)
 
#define HX8347A_R_CTRL2_CN11   (0x1u << 5)
 
#define HX8347A_R_CTRL2_CN12   (0x1u << 6)
 
#define HX8347A_R_CTRL3   (0x48u)
 
#define HX8347A_R_CTRL3_NP00   (0x1u << 0)
 
#define HX8347A_R_CTRL3_NP01   (0x1u << 1)
 
#define HX8347A_R_CTRL3_NP02   (0x1u << 2)
 
#define HX8347A_R_CTRL3_NP10   (0x1u << 4)
 
#define HX8347A_R_CTRL3_NP11   (0x1u << 5)
 
#define HX8347A_R_CTRL3_NP12   (0x1u << 6)
 
#define HX8347A_R_CTRL4   (0x49u)
 
#define HX8347A_R_CTRL4_NP20   (0x1u << 0)
 
#define HX8347A_R_CTRL4_NP21   (0x1u << 1)
 
#define HX8347A_R_CTRL4_NP22   (0x1u << 2)
 
#define HX8347A_R_CTRL4_NP30   (0x1u << 4)
 
#define HX8347A_R_CTRL4_NP31   (0x1u << 5)
 
#define HX8347A_R_CTRL4_NP32   (0x1u << 6)
 
#define HX8347A_R_CTRL5   (0x4Au)
 
#define HX8347A_R_CTRL5_NP40   (0x1u << 0)
 
#define HX8347A_R_CTRL5_NP41   (0x1u << 1)
 
#define HX8347A_R_CTRL5_NP42   (0x1u << 2)
 
#define HX8347A_R_CTRL5_NP50   (0x1u << 4)
 
#define HX8347A_R_CTRL5_NP51   (0x1u << 5)
 
#define HX8347A_R_CTRL5_NP52   (0x1u << 6)
 
#define HX8347A_R_CTRL6   (0x4Bu)
 
#define HX8347A_R_CTRL6_NN00   (0x1u << 0)
 
#define HX8347A_R_CTRL6_NN01   (0x1u << 1)
 
#define HX8347A_R_CTRL6_NN02   (0x1u << 2)
 
#define HX8347A_R_CTRL6_NN10   (0x1u << 4)
 
#define HX8347A_R_CTRL6_NN11   (0x1u << 5)
 
#define HX8347A_R_CTRL6_NN12   (0x1u << 6)
 
#define HX8347A_R_CTRL7   (0x4Cu)
 
#define HX8347A_R_CTRL7_NN20   (0x1u << 0)
 
#define HX8347A_R_CTRL7_NN21   (0x1u << 1)
 
#define HX8347A_R_CTRL7_NN22   (0x1u << 2)
 
#define HX8347A_R_CTRL7_NN30   (0x1u << 4)
 
#define HX8347A_R_CTRL7_NN31   (0x1u << 5)
 
#define HX8347A_R_CTRL7_NN32   (0x1u << 6)
 
#define HX8347A_R_CTRL8   (0x4Du)
 
#define HX8347A_R_CTRL8_NN40   (0x1u << 0)
 
#define HX8347A_R_CTRL8_NN41   (0x1u << 1)
 
#define HX8347A_R_CTRL8_NN42   (0x1u << 2)
 
#define HX8347A_R_CTRL8_NN50   (0x1u << 4)
 
#define HX8347A_R_CTRL8_NN51   (0x1u << 5)
 
#define HX8347A_R_CTRL8_NN52   (0x1u << 6)
 
#define HX8347A_R_CTRL9   (0x4Eu)
 
#define HX8347A_R_CTRL9_CGMP00   (0x1u << 4)
 
#define HX8347A_R_CTRL9_CGMP01   (0x1u << 5)
 
#define HX8347A_R_CTRL9_CGMP10   (0x1u << 6)
 
#define HX8347A_R_CTRL9_CGMP11   (0x1u << 7)
 
#define HX8347A_R_CTRL9_OP00   (0x1u << 0)
 
#define HX8347A_R_CTRL9_OP01   (0x1u << 1)
 
#define HX8347A_R_CTRL9_OP02   (0x1u << 2)
 
#define HX8347A_R_CTRL9_OP03   (0x1u << 3)
 
#define HX8347A_RGB_INTERFACE_CTRL1   (0x38u)
 
#define HX8347A_RGB_INTERFACE_CTRL1_DPL   (0x1u << 3)
 
#define HX8347A_RGB_INTERFACE_CTRL1_EPL   (0x1u << 0)
 
#define HX8347A_RGB_INTERFACE_CTRL1_HSPL   (0x1u << 2)
 
#define HX8347A_RGB_INTERFACE_CTRL1_RGB_EN   (0x1u << 4)
 
#define HX8347A_RGB_INTERFACE_CTRL1_VSPL   (0x1u << 1)
 
#define HX8347A_RGB_INTERFACE_CTRL2   (0x39u)
 
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV(value)   ((HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_MSK & ((value) << HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS)))
 
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_MSK   (0xffu << HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS)
 
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS   0
 
#define HX8347A_ROW_ADDR_END1   (0x09u)
 
#define HX8347A_ROW_ADDR_END1_EP(value)   ((HX8347A_ROW_ADDR_END1_EP_MSK & ((value) << HX8347A_ROW_ADDR_END1_EP_POS)))
 
#define HX8347A_ROW_ADDR_END1_EP_MSK   (0xffu << HX8347A_ROW_ADDR_END1_EP_POS)
 
#define HX8347A_ROW_ADDR_END1_EP_POS   0
 
#define HX8347A_ROW_ADDR_END2   (0x08u)
 
#define HX8347A_ROW_ADDR_END2_EP(value)   ((HX8347A_ROW_ADDR_END2_EP_MSK & ((value) << HX8347A_ROW_ADDR_END2_EP_POS)))
 
#define HX8347A_ROW_ADDR_END2_EP_MSK   (0xffu << HX8347A_ROW_ADDR_END2_EP_POS)
 
#define HX8347A_ROW_ADDR_END2_EP_POS   0
 
#define HX8347A_ROW_ADDR_START1   (0x07u)
 
#define HX8347A_ROW_ADDR_START1_SP(value)   ((HX8347A_ROW_ADDR_START1_SP_MSK & ((value) << HX8347A_ROW_ADDR_START1_SP_POS)))
 
#define HX8347A_ROW_ADDR_START1_SP_MSK   (0xffu << HX8347A_ROW_ADDR_START1_SP_POS)
 
#define HX8347A_ROW_ADDR_START1_SP_POS   0
 
#define HX8347A_ROW_ADDR_START2   (0x06u)
 
#define HX8347A_ROW_ADDR_START2_SP(value)   ((HX8347A_ROW_ADDR_START2_SP_MSK & ((value) << HX8347A_ROW_ADDR_START2_SP_POS)))
 
#define HX8347A_ROW_ADDR_START2_SP_MSK   (0xffu << HX8347A_ROW_ADDR_START2_SP_POS)
 
#define HX8347A_ROW_ADDR_START2_SP_POS   0
 
#define HX8347A_SAP_IDLE_MODE   (0x94u)
 
#define HX8347A_SAP_IDLE_MODE_SAP_I(value)   (HX8347A_SAP_IDLE_MODE_SAP_I_MSK & ((value) << HX8347A_SAP_IDLE_MODE_SAP_I_POS)))
 
#define HX8347A_SAP_IDLE_MODE_SAP_I_MSK   (0xffu << HX8347A_SAP_IDLE_MODE_SAP_I_POS)
 
#define HX8347A_SAP_IDLE_MODE_SAP_I_POS   0
 
#define HX8347A_SRAM_WRITE_CTRL   (0x22u)
 
#define HX8347A_VCOM_CTRL1   (0x43u)
 
#define HX8347A_VCOM_CTRL1_VCOMG   (0x1u << 7)
 
#define HX8347A_VCOM_CTRL2   (0x44u)
 
#define HX8347A_VCOM_CTRL2_VCM(value)   ((HX8347A_VCOM_CTRL2_VCM_MSK & ((value) << HX8347A_VCOM_CTRL2_VCM_POS)))
 
#define HX8347A_VCOM_CTRL2_VCM_MSK   (0x7fu << HX8347A_VCOM_CTRL2_VCM_POS)
 
#define HX8347A_VCOM_CTRL2_VCM_POS   0
 
#define HX8347A_VCOM_CTRL3   (0x45u)
 
#define HX8347A_VCOM_CTRL3_VDV(value)   ((HX8347A_VCOM_CTRL3_VDV_MSK & ((value) << HX8347A_VCOM_CTRL3_VDV_POS)))
 
#define HX8347A_VCOM_CTRL3_VDV_MSK   (0x1fu << HX8347A_VCOM_CTRL3_VDV_POS)
 
#define HX8347A_VCOM_CTRL3_VDV_POS   0
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1   (0x13u)
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA(value)   ((HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS)
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS   0
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2   (0x12u)
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA(value)   ((HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS)
 
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS   0
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1   (0x11u)
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA(value)   ((HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS)
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS   0
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2   (0x10u)
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA(value)   ((HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS)
 
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS   0
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR1   (0x15u)
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP(value)   ((HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_MSK & ((value) << HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS)))
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS)
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS   0
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR2   (0x14u)
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP(value)   ((HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_MSK & ((value) << HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS)))
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS)
 
#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS   0
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1   (0x0Fu)
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA(value)   ((HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS)
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS   0
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2   (0x0Eu)
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA(value)   ((HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS)))
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS)
 
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS   0
 

Typedefs

typedef enum display_direction display_direction_t
 Display direction option. More...
 
typedef uint16_t hx8347a_color_t
 Data type for HX8347A color (RGB565) More...
 

Enumerations

enum  display_direction {
  LANDSCAPE = 0,
  PORTRAIT = 1
}
 Display direction option. More...
 

Functions

void hx8347a_disable_scroll (void)
 Disables the scrolling. More...
 
void hx8347a_display_off (void)
 Turn off the LCD. More...
 
void hx8347a_display_on (void)
 Turn on the LCD. More...
 
uint32_t hx8347a_draw_circle (uint32_t ul_x, uint32_t ul_y, uint32_t ul_r)
 Draw a circle on LCD. More...
 
uint32_t hx8347a_draw_filled_circle (uint32_t ul_x, uint32_t ul_y, uint32_t ul_r)
 Draw a filled circle on LCD. More...
 
void hx8347a_draw_filled_rectangle (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2)
 Draw a filled rectangle on LCD. More...
 
void hx8347a_draw_line (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2)
 Draw a line on LCD. More...
 
uint32_t hx8347a_draw_pixel (uint32_t ul_x, uint32_t ul_y)
 Draw a pixel on LCD. More...
 
void hx8347a_draw_pixmap (uint32_t ul_x, uint32_t ul_y, uint32_t ul_width, uint32_t ul_height, const hx8347a_color_t *p_ul_pixmap)
 Draw a pixmap on LCD. More...
 
void hx8347a_draw_rectangle (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2)
 Draw a rectangle on LCD. More...
 
void hx8347a_draw_string (uint32_t ul_x, uint32_t ul_y, const uint8_t *p_str)
 Draw a string on LCD. More...
 
void hx8347a_enable_scroll (void)
 Enables the scrolling feature. More...
 
void hx8347a_fill (hx8347a_color_t us_color)
 Fill the LCD buffer with the specified color. More...
 
hx8347a_color_t hx8347a_get_pixel (uint32_t ul_x, uint32_t ul_y)
 Get a pixel from LCD. More...
 
uint32_t hx8347a_init (struct hx8347a_opt_t *p_opt)
 Initialize the HX8347A lcd driver. More...
 
void hx8347a_scroll (int32_t ul_lines)
 Scroll up/down for the number of specified lines. More...
 
void hx8347a_set_cursor_position (uint16_t us_x, uint16_t us_y)
 Set cursor of LCD screen. More...
 
void hx8347a_set_display_direction (display_direction_t dd)
 Set display direction. More...
 
void hx8347a_set_foreground_color (hx8347a_color_t us_color)
 Set foreground color. More...
 
void hx8347a_set_window (uint32_t ul_x, uint32_t ul_y, uint32_t ul_width, uint32_t ul_height)
 Set display window. More...
 

#define COLOR_AZUR   (0xF0FFFFu)
#define COLOR_BEIGE   (0xF5F5DCu)
#define COLOR_BLACK   (0x000000u)
#define COLOR_BLUE   (0x0000FFu)
#define COLOR_BLUEVIOLET   (0x8A2BE2u)
#define COLOR_BROWN   (0xA52A2Au)
#define COLOR_CYAN   (0x00FFFFu)
#define COLOR_DARKBLUE   (0x00008Bu)
#define COLOR_DARKCYAN   (0x008B8Bu)
#define COLOR_DARKGRAY   (0xA9A9A9u)
#define COLOR_DARKGREEN   (0x006400u)
#define COLOR_DARKRED   (0x800000u)
#define COLOR_DARKVIOLET   (0x9400D3u)
#define COLOR_GOLD   (0xFFD700u)
#define COLOR_GRAY   (0x808080u)
#define COLOR_GREEN   (0x00FF00u)
#define COLOR_GREENYELLOW   (0xADFF2Fu)
#define COLOR_INDIGO   (0x4B0082u)
#define COLOR_LIGHTBLUE   (0xADD8E6u)
#define COLOR_LIGHTCYAN   (0xE0FFFFu)
#define COLOR_LIGHTGREEN   (0x90EE90u)
#define COLOR_LIGHTGREY   (0xD3D3D3u)
#define COLOR_MAGENTA   (0xFF00FFu)
#define COLOR_NAVY   (0x000080u)
#define COLOR_OLIVE   (0x808000u)
#define COLOR_ORANGE   (0xFFA500u)
#define COLOR_RED   (0xFF0000u)
#define COLOR_SIENNA   (0xA0522Du)
#define COLOR_SILVER   (0xC0C0C0u)
#define COLOR_SKYBLUE   (0x87CEEBu)
#define COLOR_SNOW   (0xFFFAFAu)
#define COLOR_TOMATO   (0xFF6347u)
#define COLOR_TURQUOISE   (0x40E0D0u)
#define COLOR_VIOLET   (0xEE82EEu)
#define COLOR_WHITE   (0xFFFFFFu)
#define COLOR_YELLOW   (0xFFFF00u)
#define COLOR_YELLOWGREEN   (0x9ACD32u)
#define HX8347A_BGP_CTRL   (0x42u)
#define HX8347A_BGP_CTRL_BGP (   value)    ((HX8347A_BGP_CTRL_BGP_MSK & ((value) << HX8347A_BGP_CTRL_BGP_POS)))
#define HX8347A_BGP_CTRL_BGP_MSK   (0xfu << HX8347A_BGP_CTRL_BGP_POS)
#define HX8347A_BGP_CTRL_BGP_POS   0
#define HX8347A_BGP_CTRL_VBGP_OE   (0x1u << 4)
#define HX8347A_COL_ADDR_END1   (0x05u)

Referenced by hx8347a_init(), and hx8347a_set_window().

#define HX8347A_COL_ADDR_END1_EC (   value)    ((HX8347A_COL_ADDR_END1_EC_MSK & ((value) << HX8347A_COL_ADDR_END1_EC_POS)))

Referenced by hx8347a_init().

#define HX8347A_COL_ADDR_END1_EC_MSK   (0xffu << HX8347A_COL_ADDR_END1_EC_POS)
#define HX8347A_COL_ADDR_END1_EC_POS   0
#define HX8347A_COL_ADDR_END2   (0x04u)

Referenced by hx8347a_init(), and hx8347a_set_window().

#define HX8347A_COL_ADDR_END2_EC (   value)    ((HX8347A_COL_ADDR_END2_EC_MSK & ((value) << HX8347A_COL_ADDR_END2_EC_POS)))

Referenced by hx8347a_init().

#define HX8347A_COL_ADDR_END2_EC_MSK   (0xffu << HX8347A_COL_ADDR_END2_EC_POS)
#define HX8347A_COL_ADDR_END2_EC_POS   0
#define HX8347A_COL_ADDR_START1   (0x03u)
#define HX8347A_COL_ADDR_START1_SC (   value)    ((HX8347A_COL_ADDR_START1_SC_MSK & ((value) << HX8347A_COL_ADDR_START1_SC_POS)))

Referenced by hx8347a_init().

#define HX8347A_COL_ADDR_START1_SC_MSK   (0xffu << HX8347A_COL_ADDR_START1_SC_POS)
#define HX8347A_COL_ADDR_START1_SC_POS   0
#define HX8347A_COL_ADDR_START2   (0x02u)
#define HX8347A_COL_ADDR_START2_SC (   value)    ((HX8347A_COL_ADDR_START2_SC_MSK & ((value) << HX8347A_COL_ADDR_START2_SC_POS)))

Referenced by hx8347a_init().

#define HX8347A_COL_ADDR_START2_SC_MSK   (0xffu << HX8347A_COL_ADDR_START2_SC_POS)
#define HX8347A_COL_ADDR_START2_SC_POS   0
#define HX8347A_CYCLE_CTRL1   (0x3Au)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL1_N_NW (   value)    ((HX8347A_CYCLE_CTRL1_N_NW_MSK & ((value) << HX8347A_CYCLE_CTRL1_N_NW_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL1_N_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL1_N_NW_POS)
#define HX8347A_CYCLE_CTRL1_N_NW_POS   0
#define HX8347A_CYCLE_CTRL1_N_RTN (   value)    ((HX8347A_CYCLE_CTRL1_N_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL1_N_RTN_POS)))
#define HX8347A_CYCLE_CTRL1_N_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL1_N_RTN_POS)
#define HX8347A_CYCLE_CTRL1_N_RTN_POS   4
#define HX8347A_CYCLE_CTRL2   (0x3Bu)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL2_PI_NW (   value)    ((HX8347A_CYCLE_CTRL2_PI_NW_MSK & ((value) << HX8347A_CYCLE_CTRL2_PI_NW_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL2_PI_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL2_PI_NW_POS)
#define HX8347A_CYCLE_CTRL2_PI_NW_POS   0
#define HX8347A_CYCLE_CTRL2_PI_RTN (   value)    ((HX8347A_CYCLE_CTRL2_PI_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL2_PI_RTN_POS)))
#define HX8347A_CYCLE_CTRL2_PI_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL2_PI_RTN_POS)
#define HX8347A_CYCLE_CTRL2_PI_RTN_POS   4
#define HX8347A_CYCLE_CTRL3   (0x3Cu)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL3_I_NW (   value)    ((HX8347A_CYCLE_CTRL3_I_NW_MSK & ((value) << HX8347A_CYCLE_CTRL3_I_NW_POS)))
#define HX8347A_CYCLE_CTRL3_I_NW_MSK   (0x7u << HX8347A_CYCLE_CTRL3_I_NW_POS)
#define HX8347A_CYCLE_CTRL3_I_NW_POS   0
#define HX8347A_CYCLE_CTRL3_I_RTN (   value)    ((HX8347A_CYCLE_CTRL3_I_RTN_MSK & ((value) << HX8347A_CYCLE_CTRL3_I_RTN_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL3_I_RTN_MSK   (0xfu << HX8347A_CYCLE_CTRL3_I_RTN_POS)
#define HX8347A_CYCLE_CTRL3_I_RTN_POS   4
#define HX8347A_CYCLE_CTRL4   (0x3Du)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL4_DIV_I (   value)    ((HX8347A_CYCLE_CTRL4_DIV_I_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_I_POS)))
#define HX8347A_CYCLE_CTRL4_DIV_I_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_I_POS)
#define HX8347A_CYCLE_CTRL4_DIV_I_POS   4
#define HX8347A_CYCLE_CTRL4_DIV_N (   value)    ((HX8347A_CYCLE_CTRL4_DIV_N_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_N_POS)))
#define HX8347A_CYCLE_CTRL4_DIV_N_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_N_POS)
#define HX8347A_CYCLE_CTRL4_DIV_N_POS   0
#define HX8347A_CYCLE_CTRL4_DIV_PI (   value)    ((HX8347A_CYCLE_CTRL4_DIV_PI_MSK & ((value) << HX8347A_CYCLE_CTRL4_DIV_PI_POS)))
#define HX8347A_CYCLE_CTRL4_DIV_PI_MSK   (0x3u << HX8347A_CYCLE_CTRL4_DIV_PI_POS)
#define HX8347A_CYCLE_CTRL4_DIV_PI_POS   2
#define HX8347A_CYCLE_CTRL5   (0x3Eu)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL5_SON (   value)    ((HX8347A_CYCLE_CTRL5_SON_MSK & ((value) << HX8347A_CYCLE_CTRL5_SON_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL5_SON_MSK   (0xffu << HX8347A_CYCLE_CTRL5_SON_POS)
#define HX8347A_CYCLE_CTRL5_SON_POS   0
#define HX8347A_CYCLE_CTRL6   (0x40u)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL6_GDON (   value)    ((HX8347A_CYCLE_CTRL6_GDON_MSK & ((value) << HX8347A_CYCLE_CTRL6_GDON_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL6_GDON_MSK   (0xffu << HX8347A_CYCLE_CTRL6_GDON_POS)
#define HX8347A_CYCLE_CTRL6_GDON_POS   0
#define HX8347A_CYCLE_CTRL7   (0x41u)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL7_GDOF (   value)    ((HX8347A_CYCLE_CTRL7_GDOF_MSK & ((value) << HX8347A_CYCLE_CTRL7_GDOF_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL7_GDOF_MSK   (0xffu << HX8347A_CYCLE_CTRL7_GDOF_POS)
#define HX8347A_CYCLE_CTRL7_GDOF_POS   0
#define HX8347A_CYCLE_CTRL_1   (0x23u)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_1_N_DC (   value)    ((HX8347A_CYCLE_CTRL_1_N_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_1_N_DC_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_1_N_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_1_N_DC_POS)
#define HX8347A_CYCLE_CTRL_1_N_DC_POS   0
#define HX8347A_CYCLE_CTRL_2   (0x24u)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_2_PI_DC (   value)    ((HX8347A_CYCLE_CTRL_2_PI_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_2_PI_DC_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_2_PI_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_2_PI_DC_POS)
#define HX8347A_CYCLE_CTRL_2_PI_DC_POS   0
#define HX8347A_CYCLE_CTRL_3   (0x25u)

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_3_I_DC (   value)    ((HX8347A_CYCLE_CTRL_3_I_DC_MSK & ((value) << HX8347A_CYCLE_CTRL_3_I_DC_POS)))

Referenced by hx8347a_init().

#define HX8347A_CYCLE_CTRL_3_I_DC_MSK   (0xffu << HX8347A_CYCLE_CTRL_3_I_DC_POS)
#define HX8347A_CYCLE_CTRL_3_I_DC_POS   0
#define HX8347A_DATA_CTRL   (0x72u)
#define HX8347A_DATA_CTRL_DFM (   value)    ((HX8347A_DATA_CTRL_DFM_MSK & ((value) << HX8347A_DATA_CTRL_DFM_POS)))
#define HX8347A_DATA_CTRL_DFM_MSK   (0x3u << HX8347A_DATA_CTRL_DFM_POS)
#define HX8347A_DATA_CTRL_DFM_POS   4
#define HX8347A_DATA_CTRL_TRI (   value)    ((HX8347A_DATA_CTRL_TRI_MSK & ((value) << HX8347A_DATA_CTRL_TRI_POS)))
#define HX8347A_DATA_CTRL_TRI_MSK   (0x3u << HX8347A_DATA_CTRL_TRI_POS)
#define HX8347A_DATA_CTRL_TRI_POS   0
#define HX8347A_DCCLK_SYNC_TO_CL1   (0x95u)
#define HX8347A_DCCLK_SYNC_TO_CL1_DCCLK_SYNC   (0x1u << 0)
#define HX8347A_DEVICE_CODE   (0x47u)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL1   (0x26u)
#define HX8347A_DISP_CTRL10   (0x36u)
#define HX8347A_DISP_CTRL10_EQP (   value)    ((HX8347A_DISP_CTRL10_EQP_MSK & ((value) << HX8347A_DISP_CTRL10_EQP_POS)))
#define HX8347A_DISP_CTRL10_EQP_MSK   (0xffu << HX8347A_DISP_CTRL10_EQP_POS)
#define HX8347A_DISP_CTRL10_EQP_POS   0
#define HX8347A_DISP_CTRL11   (0x91u)
#define HX8347A_DISP_CTRL11_GEN_OFF (   value)    ((HX8347A_DISP_CTRL11_GEN_OFF_MSK & ((value) << HX8347A_DISP_CTRL11_GEN_OFF_POS)))
#define HX8347A_DISP_CTRL11_GEN_OFF_MSK   (0xffu << HX8347A_DISP_CTRL11_GEN_OFF_POS)
#define HX8347A_DISP_CTRL11_GEN_OFF_POS   0
#define HX8347A_DISP_CTRL12   (0x37u)
#define HX8347A_DISP_CTRL12_ISC (   value)    ((HX8347A_DISP_CTRL12_ISC_MSK & ((value) << HX8347A_DISP_CTRL12_ISC_POS)))
#define HX8347A_DISP_CTRL12_ISC_MSK   (0xfu << HX8347A_DISP_CTRL12_ISC_POS)
#define HX8347A_DISP_CTRL12_ISC_POS   0
#define HX8347A_DISP_CTRL12_PTG (   value)    ((HX8347A_DISP_CTRL12_PTG_MSK & ((value) << HX8347A_DISP_CTRL12_PTG_POS)))
#define HX8347A_DISP_CTRL12_PTG_MSK   (0x3u << HX8347A_DISP_CTRL12_PTG_POS)
#define HX8347A_DISP_CTRL12_PTG_POS   4
#define HX8347A_DISP_CTRL1_D (   value)    ((HX8347A_DISP_CTRL1_D_MSK & ((value) << HX8347A_DISP_CTRL1_D_POS)))

Referenced by hx8347a_display_on().

#define HX8347A_DISP_CTRL1_D_MSK   (0x3u << HX8347A_DISP_CTRL1_D_POS)
#define HX8347A_DISP_CTRL1_D_POS   2
#define HX8347A_DISP_CTRL1_DTE   (0x1u << 4)

Referenced by hx8347a_display_on().

#define HX8347A_DISP_CTRL1_GON   (0x1u << 5)

Referenced by hx8347a_display_on().

#define HX8347A_DISP_CTRL1_PT (   value)    ((HX8347A_DISP_CTRL1_PT_MSK & ((value) << HX8347A_DISP_CTRL1_PT_POS)))
#define HX8347A_DISP_CTRL1_PT_MSK   (0x3u << HX8347A_DISP_CTRL1_PT_POS)
#define HX8347A_DISP_CTRL1_PT_POS   6
#define HX8347A_DISP_CTRL2   (0x27u)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL2_N_BP (   value)    ((HX8347A_DISP_CTRL2_N_BP_MSK & ((value) << HX8347A_DISP_CTRL2_N_BP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL2_N_BP_MSK   (0xfu << HX8347A_DISP_CTRL2_N_BP_POS)
#define HX8347A_DISP_CTRL2_N_BP_POS   0
#define HX8347A_DISP_CTRL3   (0x28u)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL3_N_FP (   value)    ((HX8347A_DISP_CTRL3_N_FP_MSK & ((value) << HX8347A_DISP_CTRL3_N_FP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL3_N_FP_MSK   (0xfu << HX8347A_DISP_CTRL3_N_FP_POS)
#define HX8347A_DISP_CTRL3_N_FP_POS   0
#define HX8347A_DISP_CTRL4   (0x29u)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL4_PI_BP (   value)    ((HX8347A_DISP_CTRL4_PI_BP_MSK & ((value) << HX8347A_DISP_CTRL4_PI_BP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL4_PI_BP_MSK   (0xfu << HX8347A_DISP_CTRL4_PI_BP_POS)
#define HX8347A_DISP_CTRL4_PI_BP_POS   0
#define HX8347A_DISP_CTRL5   (0x2Au)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL5_PI_FP (   value)    ((HX8347A_DISP_CTRL5_PI_FP_MSK & ((value) << HX8347A_DISP_CTRL5_PI_FP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL5_PI_FP_MSK   (0xfu << HX8347A_DISP_CTRL5_PI_FP_POS)
#define HX8347A_DISP_CTRL5_PI_FP_POS   0
#define HX8347A_DISP_CTRL6   (0x2Cu)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL6_I_BP (   value)    ((HX8347A_DISP_CTRL6_I_BP_MSK & ((value) << HX8347A_DISP_CTRL6_I_BP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL6_I_BP_MSK   (0xfu << HX8347A_DISP_CTRL6_I_BP_POS)
#define HX8347A_DISP_CTRL6_I_BP_POS   0
#define HX8347A_DISP_CTRL7   (0x2Du)

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL7_I_FP (   value)    ((HX8347A_DISP_CTRL7_I_FP_MSK & ((value) << HX8347A_DISP_CTRL7_I_FP_POS)))

Referenced by hx8347a_init().

#define HX8347A_DISP_CTRL7_I_FP_MSK   (0xfu << HX8347A_DISP_CTRL7_I_FP_POS)
#define HX8347A_DISP_CTRL7_I_FP_POS   0
#define HX8347A_DISP_CTRL8   (0x90u)
#define HX8347A_DISP_CTRL8_SAP (   value)    ((HX8347A_DISP_CTRL8_SAP_MSK & ((value) << HX8347A_DISP_CTRL8_SAP_POS)))

Referenced by hx8347a_display_on().

#define HX8347A_DISP_CTRL8_SAP_MSK   (0xffu << HX8347A_DISP_CTRL8_SAP_POS)
#define HX8347A_DISP_CTRL8_SAP_POS   0
#define HX8347A_DISP_CTRL9   (0x35u)
#define HX8347A_DISP_CTRL9_EQS (   value)    ((HX8347A_DISP_CTRL9_EQS_MSK & ((value) << HX8347A_DISP_CTRL9_EQS_POS)))
#define HX8347A_DISP_CTRL9_EQS_MSK   (0xffu << HX8347A_DISP_CTRL9_EQS_POS)
#define HX8347A_DISP_CTRL9_EQS_POS   0
#define HX8347A_DISP_MODE_CTRL   (0x01u)

Referenced by hx8347a_init().

#define HX8347A_DISP_MODE_CTRL_IDMON   (0x1u << 3)
#define HX8347A_DISP_MODE_CTRL_INVON   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_DISP_MODE_CTRL_NORON   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_DISP_MODE_CTRL_PTLON   (0x1u << 0)
#define HX8347A_GATE_SCAN_CTRL   (0x18u)
#define HX8347A_GATE_SCAN_CTRL_SCROLL_ON   (0x1u << 1)

Referenced by hx8347a_enable_scroll().

#define HX8347A_GATE_SCAN_CTRL_SM   (0x1u << 0)
#define HX8347A_HIMAX_ID_CODE   (0x67u)

Referenced by hx8347a_init().

#define HX8347A_MEMORY_ACCESS_CTRL   (0x16u)
#define HX8347A_MEMORY_ACCESS_CTRL_BGR   (0x1u << 3)
#define HX8347A_MEMORY_ACCESS_CTRL_MV   (0x1u << 5)
#define HX8347A_MEMORY_ACCESS_CTRL_MX   (0x1u << 6)
#define HX8347A_MEMORY_ACCESS_CTRL_MY   (0x1u << 7)
#define HX8347A_OSC_CTRL1   (0x19u)

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL1_CADJ (   value)    ((HX8347A_OSC_CTRL1_CADJ_MSK & ((value) << HX8347A_OSC_CTRL1_CADJ_POS)))

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL1_CADJ_MSK   (0xfu << HX8347A_OSC_CTRL1_CADJ_POS)
#define HX8347A_OSC_CTRL1_CADJ_POS   4
#define HX8347A_OSC_CTRL1_CUADJ (   value)    ((HX8347A_OSC_CTRL1_CUADJ_MSK & ((value) << HX8347A_OSC_CTRL1_CUADJ_POS)))

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL1_CUADJ_MSK   (0x7u << HX8347A_OSC_CTRL1_CUADJ_POS)
#define HX8347A_OSC_CTRL1_CUADJ_POS   1
#define HX8347A_OSC_CTRL1_OSC_EN   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL2   (0x1Au)
#define HX8347A_OSC_CTRL2_OSC_TEST   (0x1u << 0)
#define HX8347A_OSC_CTRL3   (0x93u)

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL3_RADJ (   value)    ((HX8347A_OSC_CTRL3_RADJ_MSK & ((value) << HX8347A_OSC_CTRL3_RADJ_POS)))

Referenced by hx8347a_init().

#define HX8347A_OSC_CTRL3_RADJ_MSK   (0xfu << HX8347A_OSC_CTRL3_RADJ_POS)
#define HX8347A_OSC_CTRL3_RADJ_POS   0
#define HX8347A_OTP_CTRL1   (0x52u)
#define HX8347A_OTP_CTRL1_OTP_MASK (   value)    ((HX8347A_OTP_CTRL1_OTP_MASK_MSK & ((value) << HX8347A_OTP_CTRL1_OTP_MASK_POS)))
#define HX8347A_OTP_CTRL1_OTP_MASK_MSK   (0xffu << HX8347A_OTP_CTRL1_OTP_MASK_POS)
#define HX8347A_OTP_CTRL1_OTP_MASK_POS   0
#define HX8347A_OTP_CTRL2   (0x53u)
#define HX8347A_OTP_CTRL2_OTP_INDEX (   value)    ((HX8347A_OTP_CTRL2_OTP_INDEX_MSK & ((value) << HX8347A_OTP_CTRL2_OTP_INDEX_POS)))
#define HX8347A_OTP_CTRL2_OTP_INDEX_MSK   (0xffu << HX8347A_OTP_CTRL2_OTP_INDEX_POS)
#define HX8347A_OTP_CTRL2_OTP_INDEX_POS   0
#define HX8347A_OTP_CTRL3   (0x54u)
#define HX8347A_OTP_CTRL3_DCCLK_DISABLE   (0x1u << 6)
#define HX8347A_OTP_CTRL3_OTP_LOAD_DISABLE   (0x1u << 7)
#define HX8347A_OTP_CTRL3_OTP_POR   (0x1u << 5)
#define HX8347A_OTP_CTRL3_OTP_PROG   (0x1u << 0)
#define HX8347A_OTP_CTRL3_OTP_PTM   (0x1u << 3)
#define HX8347A_OTP_CTRL3_OTP_PWE   (0x1u << 4)
#define HX8347A_OTP_CTRL3_VPP_SEL   (0x1u << 1)
#define HX8347A_PARTIAL_AREA_END_ROW1   (0x0Du)
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL (   value)    ((HX8347A_PARTIAL_AREA_END_ROW1_PEL_MSK & ((value) << HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS)))
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL_MSK   (0xffu << HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS)
#define HX8347A_PARTIAL_AREA_END_ROW1_PEL_POS   0
#define HX8347A_PARTIAL_AREA_END_ROW2   (0x0Cu)
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL (   value)    ((HX8347A_PARTIAL_AREA_END_ROW2_PEL_MSK & ((value) << HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS)))
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL_MSK   (0xffu << HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS)
#define HX8347A_PARTIAL_AREA_END_ROW2_PEL_POS   0
#define HX8347A_PARTIAL_AREA_START_ROW1   (0x0Bu)
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL (   value)    ((HX8347A_PARTIAL_AREA_START_ROW1_PSL_MSK & ((value) << HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS)))
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL_MSK   (0xffu << HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS)
#define HX8347A_PARTIAL_AREA_START_ROW1_PSL_POS   0
#define HX8347A_PARTIAL_AREA_START_ROW2   (0x0Au)
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL (   value)    ((HX8347A_PARTIAL_AREA_START_ROW2_PSL_MSK & ((value) << HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS)))
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL_MSK   (0xffu << HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS)
#define HX8347A_PARTIAL_AREA_START_ROW2_PSL_POS   0
#define HX8347A_POWER_CTRL1   (0x1Bu)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL11   (0x2Bu)
#define HX8347A_POWER_CTRL11_BLANK_DIV (   value)    ((HX8347A_POWER_CTRL11_BLANK_DIV_MSK & ((value) << HX8347A_POWER_CTRL11_BLANK_DIV_POS)))
#define HX8347A_POWER_CTRL11_BLANK_DIV_MSK   (0xfu << HX8347A_POWER_CTRL11_BLANK_DIV_POS)
#define HX8347A_POWER_CTRL11_BLANK_DIV_POS   0
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH (   value)    ((HX8347A_POWER_CTRL11_PI_PRE_REFRESH_MSK & ((value) << HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS)))
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH_MSK   (0x3u << HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS)
#define HX8347A_POWER_CTRL11_PI_PRE_REFRESH_POS   4
#define HX8347A_POWER_CTRL1_DK   (0x1u << 3)
#define HX8347A_POWER_CTRL1_GASENB   (0x1u << 7)
#define HX8347A_POWER_CTRL1_PON   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL1_STB   (0x1u << 0)
#define HX8347A_POWER_CTRL1_VLCD_TRI   (0x1u << 1)
#define HX8347A_POWER_CTRL1_XDK   (0x1u << 2)
#define HX8347A_POWER_CTRL2   (0x1Cu)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL2_AP (   value)    ((HX8347A_POWER_CTRL2_AP_MSK & ((value) << HX8347A_POWER_CTRL2_AP_POS)))

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL2_AP_MSK   (0x7u << HX8347A_POWER_CTRL2_AP_POS)
#define HX8347A_POWER_CTRL2_AP_POS   0
#define HX8347A_POWER_CTRL3   (0x1Du)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL3_VC1 (   value)    ((HX8347A_POWER_CTRL3_VC1_MSK & ((value) << HX8347A_POWER_CTRL3_VC1_POS)))

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL3_VC1_MSK   (0x7u << HX8347A_POWER_CTRL3_VC1_POS)
#define HX8347A_POWER_CTRL3_VC1_POS   0
#define HX8347A_POWER_CTRL4   (0x1Eu)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL4_VC3 (   value)    ((HX8347A_POWER_CTRL4_VC3_MSK & ((value) << HX8347A_POWER_CTRL4_VC3_POS)))

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL4_VC3_MSK   (0x7u << HX8347A_POWER_CTRL4_VC3_POS)
#define HX8347A_POWER_CTRL4_VC3_POS   0
#define HX8347A_POWER_CTRL5   (0x1Fu)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL5_VRH (   value)    ((HX8347A_POWER_CTRL5_VRH_MSK & ((value) << HX8347A_POWER_CTRL5_VRH_POS)))

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL5_VRH_MSK   (0xfu << HX8347A_POWER_CTRL5_VRH_POS)
#define HX8347A_POWER_CTRL5_VRH_POS   0
#define HX8347A_POWER_CTRL6   (0x20u)

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL6_BT (   value)    ((HX8347A_POWER_CTRL6_BT_MSK & ((value) << HX8347A_POWER_CTRL6_BT_POS)))

Referenced by hx8347a_init().

#define HX8347A_POWER_CTRL6_BT_MSK   (0xfu << HX8347A_POWER_CTRL6_BT_POS)
#define HX8347A_POWER_CTRL6_BT_POS   4
#define HX8347A_POWER_CTRL7   (0x21u)
#define HX8347A_POWER_CTRL7_FS0 (   value)    ((HX8347A_POWER_CTRL7_FS0_MSK & ((value) << HX8347A_POWER_CTRL7_FS0_POS)))
#define HX8347A_POWER_CTRL7_FS0_MSK   (0x3u << HX8347A_POWER_CTRL7_FS0_POS)
#define HX8347A_POWER_CTRL7_FS0_POS   0
#define HX8347A_POWER_CTRL7_FS1 (   value)    ((HX8347A_POWER_CTRL7_FS1_MSK & ((value) << HX8347A_POWER_CTRL7_FS1_POS)))
#define HX8347A_POWER_CTRL7_FS1_MSK   (0x3u << HX8347A_POWER_CTRL7_FS1_POS)
#define HX8347A_POWER_CTRL7_FS1_POS   4
#define HX8347A_R_CTRL1   (0x46u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL10   (0x4Fu)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL10_CGMP2   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL10_CGMP3   (0x1u << 7)
#define HX8347A_R_CTRL10_OP10   (0x1u << 0)
#define HX8347A_R_CTRL10_OP11   (0x1u << 1)
#define HX8347A_R_CTRL10_OP12   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL10_OP13   (0x1u << 3)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL10_OP14   (0x1u << 4)
#define HX8347A_R_CTRL11   (0x50u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL11_CGMN00   (0x1u << 4)
#define HX8347A_R_CTRL11_CGMN01   (0x1u << 5)
#define HX8347A_R_CTRL11_CGMN10   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL11_CGMN11   (0x1u << 7)
#define HX8347A_R_CTRL11_ON00   (0x1u << 0)
#define HX8347A_R_CTRL11_ON01   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL11_ON02   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL11_ON03   (0x1u << 3)
#define HX8347A_R_CTRL12   (0x51u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL12_CGMN2   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL12_CGMN3   (0x1u << 7)
#define HX8347A_R_CTRL12_ON10   (0x1u << 0)
#define HX8347A_R_CTRL12_ON11   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL12_ON12   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL12_ON13   (0x1u << 3)
#define HX8347A_R_CTRL12_ON14   (0x1u << 4)
#define HX8347A_R_CTRL1_CP00   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL1_CP01   (0x1u << 1)
#define HX8347A_R_CTRL1_CP02   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL1_CP10   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL1_CP11   (0x1u << 5)
#define HX8347A_R_CTRL1_CP12   (0x1u << 6)
#define HX8347A_R_CTRL1_GSEL   (0x1u << 7)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL2   (0x47u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL2_CN00   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL2_CN01   (0x1u << 1)
#define HX8347A_R_CTRL2_CN02   (0x1u << 2)
#define HX8347A_R_CTRL2_CN10   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL2_CN11   (0x1u << 5)
#define HX8347A_R_CTRL2_CN12   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL3   (0x48u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL3_NP00   (0x1u << 0)
#define HX8347A_R_CTRL3_NP01   (0x1u << 1)
#define HX8347A_R_CTRL3_NP02   (0x1u << 2)
#define HX8347A_R_CTRL3_NP10   (0x1u << 4)
#define HX8347A_R_CTRL3_NP11   (0x1u << 5)
#define HX8347A_R_CTRL3_NP12   (0x1u << 6)
#define HX8347A_R_CTRL4   (0x49u)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL4_NP20   (0x1u << 0)
#define HX8347A_R_CTRL4_NP21   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL4_NP22   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL4_NP30   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL4_NP31   (0x1u << 5)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL4_NP32   (0x1u << 6)
#define HX8347A_R_CTRL5   (0x4Au)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL5_NP40   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL5_NP41   (0x1u << 1)
#define HX8347A_R_CTRL5_NP42   (0x1u << 2)
#define HX8347A_R_CTRL5_NP50   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL5_NP51   (0x1u << 5)
#define HX8347A_R_CTRL5_NP52   (0x1u << 6)
#define HX8347A_R_CTRL6   (0x4Bu)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL6_NN00   (0x1u << 0)
#define HX8347A_R_CTRL6_NN01   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL6_NN02   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL6_NN10   (0x1u << 4)
#define HX8347A_R_CTRL6_NN11   (0x1u << 5)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL6_NN12   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL7   (0x4Cu)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL7_NN20   (0x1u << 0)
#define HX8347A_R_CTRL7_NN21   (0x1u << 1)
#define HX8347A_R_CTRL7_NN22   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL7_NN30   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL7_NN31   (0x1u << 5)
#define HX8347A_R_CTRL7_NN32   (0x1u << 6)
#define HX8347A_R_CTRL8   (0x4Du)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN40   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN41   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN42   (0x1u << 2)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN50   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN51   (0x1u << 5)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL8_NN52   (0x1u << 6)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL9   (0x4Eu)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL9_CGMP00   (0x1u << 4)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL9_CGMP01   (0x1u << 5)
#define HX8347A_R_CTRL9_CGMP10   (0x1u << 6)
#define HX8347A_R_CTRL9_CGMP11   (0x1u << 7)
#define HX8347A_R_CTRL9_OP00   (0x1u << 0)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL9_OP01   (0x1u << 1)

Referenced by hx8347a_init().

#define HX8347A_R_CTRL9_OP02   (0x1u << 2)
#define HX8347A_R_CTRL9_OP03   (0x1u << 3)
#define HX8347A_RGB_INTERFACE_CTRL1   (0x38u)
#define HX8347A_RGB_INTERFACE_CTRL1_DPL   (0x1u << 3)
#define HX8347A_RGB_INTERFACE_CTRL1_EPL   (0x1u << 0)
#define HX8347A_RGB_INTERFACE_CTRL1_HSPL   (0x1u << 2)
#define HX8347A_RGB_INTERFACE_CTRL1_RGB_EN   (0x1u << 4)
#define HX8347A_RGB_INTERFACE_CTRL1_VSPL   (0x1u << 1)
#define HX8347A_RGB_INTERFACE_CTRL2   (0x39u)
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV (   value)    ((HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_MSK & ((value) << HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS)))
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_MSK   (0xffu << HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS)
#define HX8347A_RGB_INTERFACE_CTRL2_DOTCLK_DIV_POS   0
#define HX8347A_ROW_ADDR_END1   (0x09u)

Referenced by hx8347a_init(), and hx8347a_set_window().

#define HX8347A_ROW_ADDR_END1_EP (   value)    ((HX8347A_ROW_ADDR_END1_EP_MSK & ((value) << HX8347A_ROW_ADDR_END1_EP_POS)))

Referenced by hx8347a_init().

#define HX8347A_ROW_ADDR_END1_EP_MSK   (0xffu << HX8347A_ROW_ADDR_END1_EP_POS)
#define HX8347A_ROW_ADDR_END1_EP_POS   0
#define HX8347A_ROW_ADDR_END2   (0x08u)

Referenced by hx8347a_init(), and hx8347a_set_window().

#define HX8347A_ROW_ADDR_END2_EP (   value)    ((HX8347A_ROW_ADDR_END2_EP_MSK & ((value) << HX8347A_ROW_ADDR_END2_EP_POS)))

Referenced by hx8347a_init().

#define HX8347A_ROW_ADDR_END2_EP_MSK   (0xffu << HX8347A_ROW_ADDR_END2_EP_POS)
#define HX8347A_ROW_ADDR_END2_EP_POS   0
#define HX8347A_ROW_ADDR_START1   (0x07u)
#define HX8347A_ROW_ADDR_START1_SP (   value)    ((HX8347A_ROW_ADDR_START1_SP_MSK & ((value) << HX8347A_ROW_ADDR_START1_SP_POS)))

Referenced by hx8347a_init().

#define HX8347A_ROW_ADDR_START1_SP_MSK   (0xffu << HX8347A_ROW_ADDR_START1_SP_POS)
#define HX8347A_ROW_ADDR_START1_SP_POS   0
#define HX8347A_ROW_ADDR_START2   (0x06u)
#define HX8347A_ROW_ADDR_START2_SP (   value)    ((HX8347A_ROW_ADDR_START2_SP_MSK & ((value) << HX8347A_ROW_ADDR_START2_SP_POS)))

Referenced by hx8347a_init().

#define HX8347A_ROW_ADDR_START2_SP_MSK   (0xffu << HX8347A_ROW_ADDR_START2_SP_POS)
#define HX8347A_ROW_ADDR_START2_SP_POS   0
#define HX8347A_SAP_IDLE_MODE   (0x94u)
#define HX8347A_SAP_IDLE_MODE_SAP_I (   value)    (HX8347A_SAP_IDLE_MODE_SAP_I_MSK & ((value) << HX8347A_SAP_IDLE_MODE_SAP_I_POS)))
#define HX8347A_SAP_IDLE_MODE_SAP_I_MSK   (0xffu << HX8347A_SAP_IDLE_MODE_SAP_I_POS)
#define HX8347A_SAP_IDLE_MODE_SAP_I_POS   0
#define HX8347A_SRAM_WRITE_CTRL   (0x22u)
#define HX8347A_VCOM_CTRL1   (0x43u)

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL1_VCOMG   (0x1u << 7)

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL2   (0x44u)

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL2_VCM (   value)    ((HX8347A_VCOM_CTRL2_VCM_MSK & ((value) << HX8347A_VCOM_CTRL2_VCM_POS)))

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL2_VCM_MSK   (0x7fu << HX8347A_VCOM_CTRL2_VCM_POS)
#define HX8347A_VCOM_CTRL2_VCM_POS   0
#define HX8347A_VCOM_CTRL3   (0x45u)

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL3_VDV (   value)    ((HX8347A_VCOM_CTRL3_VDV_MSK & ((value) << HX8347A_VCOM_CTRL3_VDV_POS)))

Referenced by hx8347a_init().

#define HX8347A_VCOM_CTRL3_VDV_MSK   (0x1fu << HX8347A_VCOM_CTRL3_VDV_POS)
#define HX8347A_VCOM_CTRL3_VDV_POS   0
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1   (0x13u)
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA (   value)    ((HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS)))
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS)
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA1_BFA_POS   0
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2   (0x12u)
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA (   value)    ((HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS)))
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS)
#define HX8347A_VERTICAL_SCROLL_BUTTON_AREA2_BFA_POS   0
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1   (0x11u)
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA (   value)    ((HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS)))
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS)
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA1_VSA_POS   0
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2   (0x10u)
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA (   value)    ((HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS)))
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS)
#define HX8347A_VERTICAL_SCROLL_HEIGHT_AREA2_VSA_POS   0
#define HX8347A_VERTICAL_SCROLL_START_ADDR1   (0x15u)

Referenced by hx8347a_scroll().

#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP (   value)    ((HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_MSK & ((value) << HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS)))

Referenced by hx8347a_scroll().

#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS)
#define HX8347A_VERTICAL_SCROLL_START_ADDR1_VSP_POS   0
#define HX8347A_VERTICAL_SCROLL_START_ADDR2   (0x14u)

Referenced by hx8347a_scroll().

#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP (   value)    ((HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_MSK & ((value) << HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS)))

Referenced by hx8347a_scroll().

#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS)
#define HX8347A_VERTICAL_SCROLL_START_ADDR2_VSP_POS   0
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1   (0x0Fu)
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA (   value)    ((HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS)))
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS)
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA1_TFA_POS   0
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2   (0x0Eu)
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA (   value)    ((HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_MSK & ((value) << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS)))
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_MSK   (0xffu << HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS)
#define HX8347A_VERTICAL_SCROLL_TOP_FIXED_AREA2_TFA_POS   0

Display direction option.

typedef uint16_t hx8347a_color_t

Data type for HX8347A color (RGB565)

Display direction option.

Enumerator
LANDSCAPE 
PORTRAIT