ili9325
ili9325_WriteReg()
is only used within ili9325.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
ili9325
ili9325_WriteReg()
ili9325_WriteReg() function
Writes to the selected LCD register.
Syntax
from
ili9325.h:188
void
ili9325_WriteReg
(
uint8_t
LCDReg
,
uint16_t
LCDRegValue
)
;
Implemented in
ili9325.c:319
Arguments
LCDReg
Address of the selected register.
LCDRegValue
Value to write to the selected register.
Return value
None
References
Location
Referrer
Text
ili9325.c:319
void
ili9325_WriteReg
(
uint8_t
LCDReg
,
uint16_t
LCDRegValue
)
ili9325.h:188
void
ili9325_WriteReg
(
uint8_t
LCDReg
,
uint16_t
LCDRegValue
)
;
ili9325.c:111
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_0
,
0x0001
)
;
/* Start internal OSC. */
ili9325.c:112
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_1
,
0x0100
)
;
/* Set SS and SM bit */
ili9325.c:113
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_2
,
0x0700
)
;
/* Set 1 line inversion */
ili9325.c:114
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_3
,
0x1018
)
;
/* Set GRAM write direction and BGR=1. */
ili9325.c:115
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_4
,
0x0000
)
;
/* Resize register */
ili9325.c:116
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_8
,
0x0202
)
;
/* Set the back porch and front porch */
ili9325.c:117
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_9
,
0x0000
)
;
/* Set non-display area refresh cycle ISC[3:0] */
ili9325.c:118
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_10
,
0x0000
)
;
/* FMARK function */
ili9325.c:119
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_12
,
0x0000
)
;
/* RGB interface setting */
ili9325.c:120
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_13
,
0x0000
)
;
/* Frame marker Position */
ili9325.c:121
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_15
,
0x0000
)
;
/* RGB interface polarity */
ili9325.c:124
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_16
,
0x0000
)
;
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
ili9325.c:125
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_17
,
0x0000
)
;
/* DC1[2:0], DC0[2:0], VC[2:0] */
ili9325.c:126
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_18
,
0x0000
)
;
/* VREG1OUT voltage */
ili9325.c:127
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_19
,
0x0000
)
;
/* VDV[4:0] for VCOM amplitude */
ili9325.c:129
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_16
,
0x17B0
)
;
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
ili9325.c:130
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_17
,
0x0137
)
;
/* DC1[2:0], DC0[2:0], VC[2:0] */
ili9325.c:132
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_18
,
0x0139
)
;
/* VREG1OUT voltage */
ili9325.c:134
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_19
,
0x1d00
)
;
/* VDV[4:0] for VCOM amplitude */
ili9325.c:135
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_41
,
0x0013
)
;
/* VCM[4:0] for VCOMH */
ili9325.c:137
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_32
,
0x0000
)
;
/* GRAM horizontal Address */
ili9325.c:138
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_33
,
0x0000
)
;
/* GRAM Vertical Address */
ili9325.c:141
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_48
,
0x0007
)
;
ili9325.c:142
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_49
,
0x0302
)
;
ili9325.c:143
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_50
,
0x0105
)
;
ili9325.c:144
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_53
,
0x0206
)
;
ili9325.c:145
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_54
,
0x0808
)
;
ili9325.c:146
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_55
,
0x0206
)
;
ili9325.c:147
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_56
,
0x0504
)
;
ili9325.c:148
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_57
,
0x0007
)
;
ili9325.c:149
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_60
,
0x0105
)
;
ili9325.c:150
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_61
,
0x0808
)
;
ili9325.c:153
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_80
,
0x0000
)
;
/* Horizontal GRAM Start Address */
ili9325.c:154
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_81
,
0x00EF
)
;
/* Horizontal GRAM End Address */
ili9325.c:155
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_82
,
0x0000
)
;
/* Vertical GRAM Start Address */
ili9325.c:156
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_83
,
0x013F
)
;
/* Vertical GRAM End Address */
ili9325.c:158
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_96
,
0xA700
)
;
/* Gate Scan Line(GS=1, scan direction is G320~G1) */
ili9325.c:159
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_97
,
0x0001
)
;
/* NDL,VLE, REV */
ili9325.c:160
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_106
,
0x0000
)
;
/* set scrolling line */
ili9325.c:163
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_128
,
0x0000
)
;
ili9325.c:164
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_129
,
0x0000
)
;
ili9325.c:165
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_130
,
0x0000
)
;
ili9325.c:166
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_131
,
0x0000
)
;
ili9325.c:167
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_132
,
0x0000
)
;
ili9325.c:168
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_133
,
0x0000
)
;
ili9325.c:171
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_144
,
0x0010
)
;
ili9325.c:172
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_146
,
0x0000
)
;
ili9325.c:173
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_147
,
0x0003
)
;
ili9325.c:174
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_149
,
0x0110
)
;
ili9325.c:175
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_151
,
0x0000
)
;
ili9325.c:176
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_152
,
0x0000
)
;
ili9325.c:181
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_3
,
0x1018
)
;
ili9325.c:184
ili9325_Init()
ili9325_WriteReg
(
LCD_REG_7
,
0x0173
)
;
ili9325.c:201
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_16
,
0x0000
)
;
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
ili9325.c:202
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_17
,
0x0000
)
;
/* DC1[2:0], DC0[2:0], VC[2:0] */
ili9325.c:203
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_18
,
0x0000
)
;
/* VREG1OUT voltage */
ili9325.c:204
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_19
,
0x0000
)
;
/* VDV[4:0] for VCOM amplitude*/
ili9325.c:206
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_16
,
0x17B0
)
;
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
ili9325.c:207
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_17
,
0x0137
)
;
/* DC1[2:0], DC0[2:0], VC[2:0] */
ili9325.c:209
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_18
,
0x0139
)
;
/* VREG1OUT voltage */
ili9325.c:211
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_19
,
0x1d00
)
;
/* VDV[4:0] for VCOM amplitude */
ili9325.c:212
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_41
,
0x0013
)
;
/* VCM[4:0] for VCOMH */
ili9325.c:215
ili9325_DisplayOn()
ili9325_WriteReg
(
LCD_REG_7
,
0x0173
)
;
/* 262K color and display ON */
ili9325.c:226
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_16
,
0x0000
)
;
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
ili9325.c:227
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_17
,
0x0000
)
;
/* DC1[2:0], DC0[2:0], VC[2:0] */
ili9325.c:228
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_18
,
0x0000
)
;
/* VREG1OUT voltage */
ili9325.c:229
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_19
,
0x0000
)
;
/* VDV[4:0] for VCOM amplitude*/
ili9325.c:231
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_41
,
0x0000
)
;
/* VCM[4:0] for VCOMH */
ili9325.c:234
ili9325_DisplayOff()
ili9325_WriteReg
(
LCD_REG_7
,
0x0
)
;
ili9325.c:276
ili9325_SetCursor()
ili9325_WriteReg
(
LCD_REG_32
,
Ypos
)
;
ili9325.c:277
ili9325_SetCursor()
ili9325_WriteReg
(
LCD_REG_33
,
(
ILI9325_LCD_PIXEL_WIDTH
-
1
-
Xpos
)
)
;
ili9325.c:349
ili9325_SetDisplayWindow()
ili9325_WriteReg
(
LCD_REG_80
,
(
Ypos
)
)
;
ili9325.c:351
ili9325_SetDisplayWindow()
ili9325_WriteReg
(
LCD_REG_81
,
(
Ypos
+
Height
-
1
)
)
;
ili9325.c:354
ili9325_SetDisplayWindow()
ili9325_WriteReg
(
LCD_REG_82
,
ILI9325_LCD_PIXEL_WIDTH
-
Xpos
-
Width
)
;
ili9325.c:356
ili9325_SetDisplayWindow()
ili9325_WriteReg
(
LCD_REG_83
,
ILI9325_LCD_PIXEL_WIDTH
-
Xpos
-
1
)
;
ili9325.c:401
ili9325_DrawVLine()
ili9325_WriteReg
(
LCD_REG_3
,
0x1010
)
;
ili9325.c:421
ili9325_DrawVLine()
ili9325_WriteReg
(
LCD_REG_3
,
0x1018
)
;
ili9325.c:445
ili9325_DrawBitmap()
ili9325_WriteReg
(
LCD_REG_3
,
0x1008
)
;
ili9325.c:458
ili9325_DrawBitmap()
ili9325_WriteReg
(
LCD_REG_3
,
0x1018
)
;
Call Tree
Functions calling
ili9325_WriteReg()
Functions called by
ili9325_WriteReg()
ili9325_Init()
ili9325_DisplayOn()
ili9325_DisplayOff()
ili9325_SetCursor()
ili9325_SetDisplayWindow()
ili9325_DrawVLine()
ili9325_DrawBitmap()
all items filtered out
ili9325_WriteReg()
LCD_IO_WriteMultipleData()
LCD_IO_WriteReg()
all items filtered out
Data read by
ili9325_WriteReg()
ili9325_WriteReg()::LCDReg
all items filtered out
ili9325_WriteReg()