Select one of the symbols to view example projects that use it.
 
Outline
#define __OTM8009A_H
Includes
#include <stdint.h>
#define __weak
#define OTM8009A_ORIENTATION_PORTRAIT
#define OTM8009A_ORIENTATION_LANDSCAPE
#define OTM8009A_FORMAT_RGB888
#define OTM8009A_FORMAT_RBG565
#define OTM8009A_480X800_WIDTH
#define OTM8009A_480X800_HEIGHT
#define OTM8009A_800X480_WIDTH
#define OTM8009A_800X480_HEIGHT
#define OTM8009A_480X800_HSYNC
#define OTM8009A_480X800_HBP
#define OTM8009A_480X800_HFP
#define OTM8009A_480X800_VSYNC
#define OTM8009A_480X800_VBP
#define OTM8009A_480X800_VFP
#define OTM8009A_800X480_HSYNC
#define OTM8009A_800X480_HBP
#define OTM8009A_800X480_HFP
#define OTM8009A_800X480_VSYNC
#define OTM8009A_800X480_VBP
#define OTM8009A_800X480_VFP
#define OTM8009A_CMD_NOP
#define OTM8009A_CMD_SWRESET
#define OTM8009A_CMD_RDDMADCTL
#define OTM8009A_CMD_RDDCOLMOD
#define OTM8009A_CMD_SLPIN
#define OTM8009A_CMD_SLPOUT
#define OTM8009A_CMD_PTLON
#define OTM8009A_CMD_DISPOFF
#define OTM8009A_CMD_DISPON
#define OTM8009A_CMD_CASET
#define OTM8009A_CMD_PASET
#define OTM8009A_CMD_RAMWR
#define OTM8009A_CMD_RAMRD
#define OTM8009A_CMD_PLTAR
#define OTM8009A_CMD_TEOFF
#define OTM8009A_CMD_TEEON
#define OTM8009A_TEEON_TELOM_VBLANKING_INFO_ONLY
#define OTM8009A_TEEON_TELOM_VBLANKING_AND_HBLANKING_INFO
#define OTM8009A_CMD_MADCTR
#define OTM8009A_MADCTR_MODE_PORTRAIT
#define OTM8009A_MADCTR_MODE_LANDSCAPE
#define OTM8009A_CMD_IDMOFF
#define OTM8009A_CMD_IDMON
#define OTM8009A_CMD_COLMOD
#define OTM8009A_COLMOD_RGB565
#define OTM8009A_COLMOD_RGB888
#define OTM8009A_CMD_RAMWRC
#define OTM8009A_CMD_RAMRDC
#define OTM8009A_CMD_WRTESCN
#define OTM8009A_CMD_RDSCNL
#define OTM8009A_CMD_WRDISBV
#define OTM8009A_CMD_WRCTRLD
#define OTM8009A_CMD_WRCABC
#define OTM8009A_CMD_WRCABCMB
#define OTM8009A_480X800_FREQUENCY_DIVIDER
Exported macro
DSI_IO_WriteCmd(uint32_t, uint8_t *);
OTM8009A_Init(uint32_t, uint32_t);
OTM8009A_IO_Delay(uint32_t);
Files
loading...
CodeScopeSTM32 Libraries and Samplesotm8009aotm8009a.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file otm8009a.h * @author MCD Application Team * @brief This file contains all the constants parameters for the OTM8009A * which is the LCD Driver for KoD KM-040TMP-02-0621 (WVGA) * DSI LCD Display. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __OTM8009A_H #define __OTM8009A_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include <stdint.h> /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Components * @{ *//* ... */ /** @addtogroup otm8009a * @{ *//* ... */ /** @addtogroup OTM8009A_Exported_Variables * @{ *//* ... */ #if defined ( __GNUC__ ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) /* GNU and ARM Compiler 6 compilers */ #ifndef __weak #define __weak __attribute__((weak)) #endif /* __weak *//* ... */ #endif /* __GNUC__ || (__ARMCC_VERSION && (__ARMCC_VERSION >= 6010050)) */ /** * @brief LCD_OrientationTypeDef * Possible values of Display Orientation *//* ... */ #define OTM8009A_ORIENTATION_PORTRAIT ((uint32_t)0x00) /* Portrait orientation choice of LCD screen */ #define OTM8009A_ORIENTATION_LANDSCAPE ((uint32_t)0x01) /* Landscape orientation choice of LCD screen */ /** * @brief Possible values of * pixel data format (ie color coding) transmitted on DSI Data lane in DSI packets *//* ... */ #define OTM8009A_FORMAT_RGB888 ((uint32_t)0x00) /* Pixel format chosen is RGB888 : 24 bpp */ #define OTM8009A_FORMAT_RBG565 ((uint32_t)0x02) /* Pixel format chosen is RGB565 : 16 bpp */ /** * @brief otm8009a_480x800 Size *//* ... */ /* Width and Height in Portrait mode */ #define OTM8009A_480X800_WIDTH ((uint16_t)480) /* LCD PIXEL WIDTH */ #define OTM8009A_480X800_HEIGHT ((uint16_t)800) /* LCD PIXEL HEIGHT */ /* Width and Height in Landscape mode */ #define OTM8009A_800X480_WIDTH ((uint16_t)800) /* LCD PIXEL WIDTH */ #define OTM8009A_800X480_HEIGHT ((uint16_t)480) /* LCD PIXEL HEIGHT */ /** * @brief OTM8009A_480X800 Timing parameters for Portrait orientation mode *//* ... */ #define OTM8009A_480X800_HSYNC ((uint16_t)2) /* Horizontal synchronization */ #define OTM8009A_480X800_HBP ((uint16_t)34) /* Horizontal back porch */ #define OTM8009A_480X800_HFP ((uint16_t)34) /* Horizontal front porch */ #define OTM8009A_480X800_VSYNC ((uint16_t)1) /* Vertical synchronization */ #define OTM8009A_480X800_VBP ((uint16_t)15) /* Vertical back porch */ #define OTM8009A_480X800_VFP ((uint16_t)16) /* Vertical front porch */ /** * @brief OTM8009A_800X480 Timing parameters for Landscape orientation mode * Same values as for Portrait mode in fact. *//* ... */ #define OTM8009A_800X480_HSYNC OTM8009A_480X800_VSYNC /* Horizontal synchronization */ #define OTM8009A_800X480_HBP OTM8009A_480X800_VBP /* Horizontal back porch */ #define OTM8009A_800X480_HFP OTM8009A_480X800_VFP /* Horizontal front porch */ #define OTM8009A_800X480_VSYNC OTM8009A_480X800_HSYNC /* Vertical synchronization */ #define OTM8009A_800X480_VBP OTM8009A_480X800_HBP /* Vertical back porch */ #define OTM8009A_800X480_VFP OTM8009A_480X800_HFP /* Vertical front porch */ /* List of OTM8009A used commands */ /* Detailed in OTM8009A Data Sheet 'DATA_SHEET_OTM8009A_V0 92.pdf' */ /* Version of 14 June 2012 */ #define OTM8009A_CMD_NOP 0x00 /* NOP command */ #define OTM8009A_CMD_SWRESET 0x01 /* Sw reset command */ #define OTM8009A_CMD_RDDMADCTL 0x0B /* Read Display MADCTR command : read memory display access ctrl */ #define OTM8009A_CMD_RDDCOLMOD 0x0C /* Read Display pixel format */ #define OTM8009A_CMD_SLPIN 0x10 /* Sleep In command */ #define OTM8009A_CMD_SLPOUT 0x11 /* Sleep Out command */ #define OTM8009A_CMD_PTLON 0x12 /* Partial mode On command */ #define OTM8009A_CMD_DISPOFF 0x28 /* Display Off command */ #define OTM8009A_CMD_DISPON 0x29 /* Display On command */ #define OTM8009A_CMD_CASET 0x2A /* Column address set command */ #define OTM8009A_CMD_PASET 0x2B /* Page address set command */ #define OTM8009A_CMD_RAMWR 0x2C /* Memory (GRAM) write command */ #define OTM8009A_CMD_RAMRD 0x2E /* Memory (GRAM) read command */ #define OTM8009A_CMD_PLTAR 0x30 /* Partial area command (4 parameters) */ #define OTM8009A_CMD_TEOFF 0x34 /* Tearing Effect Line Off command : command with no parameter */ #define OTM8009A_CMD_TEEON 0x35 /* Tearing Effect Line On command : command with 1 parameter 'TELOM' */ /* Parameter TELOM : Tearing Effect Line Output Mode : possible values */ #define OTM8009A_TEEON_TELOM_VBLANKING_INFO_ONLY 0x00 #define OTM8009A_TEEON_TELOM_VBLANKING_AND_HBLANKING_INFO 0x01 #define OTM8009A_CMD_MADCTR 0x36 /* Memory Access write control command */ /* Possible used values of MADCTR */ #define OTM8009A_MADCTR_MODE_PORTRAIT 0x00 #define OTM8009A_MADCTR_MODE_LANDSCAPE 0x60 /* MY = 0, MX = 1, MV = 1, ML = 0, RGB = 0 */ #define OTM8009A_CMD_IDMOFF 0x38 /* Idle mode Off command */ #define OTM8009A_CMD_IDMON 0x39 /* Idle mode On command */ #define OTM8009A_CMD_COLMOD 0x3A /* Interface Pixel format command */ /* Possible values of COLMOD parameter corresponding to used pixel formats */ #define OTM8009A_COLMOD_RGB565 0x55 #define OTM8009A_COLMOD_RGB888 0x77 #define OTM8009A_CMD_RAMWRC 0x3C /* Memory write continue command */ #define OTM8009A_CMD_RAMRDC 0x3E /* Memory read continue command */ #define OTM8009A_CMD_WRTESCN 0x44 /* Write Tearing Effect Scan line command */ #define OTM8009A_CMD_RDSCNL 0x45 /* Read Tearing Effect Scan line command */ /* CABC Management : ie : Content Adaptive Back light Control in IC OTM8009a */ #define OTM8009A_CMD_WRDISBV 0x51 /* Write Display Brightness command */ #define OTM8009A_CMD_WRCTRLD 0x53 /* Write CTRL Display command */ #define OTM8009A_CMD_WRCABC 0x55 /* Write Content Adaptive Brightness command */ #define OTM8009A_CMD_WRCABCMB 0x5E /* Write CABC Minimum Brightness command */ /** * @brief OTM8009A_480X800 frequency divider *//* ... */ #define OTM8009A_480X800_FREQUENCY_DIVIDER 2 /* LCD Frequency divider */ 55 defines /** * @} *//* ... */ Includes /* Exported macro ------------------------------------------------------------*/ /** @defgroup OTM8009A_Exported_Macros OTM8009A Exported Macros * @{ *//* ... */ /** * @} *//* ... */ Exported macro /* Exported functions --------------------------------------------------------*/ /** @addtogroup OTM8009A_Exported_Functions * @{ *//* ... */ void DSI_IO_WriteCmd(uint32_t NbrParams, uint8_t *pParams); uint8_t OTM8009A_Init(uint32_t ColorCoding, uint32_t orientation); void OTM8009A_IO_Delay(uint32_t Delay); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __OTM8009A_480X800_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */