hal_gdc_mipi.h
Go to the documentation of this file.
1 /** @addtogroup GRAPHICS_SDK Graphics
2  * @{
3  */
4 
5 /** @defgroup HAL_GDC_MIPI Hal gdc mipi
6  * @brief DC-related MIPI function definition.
7  * @{
8  */
9 
10 #ifndef HAL_GDC_MIPI_H__
11 #define HAL_GDC_MIPI_H__
12 
13 #include "hal_gfx_sys_defs.h"
14 
15 #pragma diag_suppress 61
16 
17 /**
18  * @addtogroup HAL_GDC_MIPI_MACRO Defines
19  * @{
20  */
21 /** @defgroup HAL_GDC_MIPI_CFG The DC configuration
22  * @{
23  */
24 #define MIPICFG_DBI_EN (1U<<31U) /**< Enables MIPI DBI/SPI interface */
25 #define MIPICFG_FRC_CSX_0 (1U<<30U) /**< Enables CSX force value */
26 #define MIPICFG_FRC_CSX_1 ((1U<<30U)|(1U<<29U)) /**< Force CSX to 1 */
27 #define MIPICFG_SPI_CSX_V (1U<<29U) /**< CSX active high/low */
28 #define MIPICFG_DIS_TE (1U<<28U) /**< Disables Input Tearing Signal */
29 #define MIPICFG_SPIDC_DQSPI (1U<<27U) /**< Enables the usage of SPI_DC wire as SPI_SD1 */
30 #define MIPICFG_RSTN_DBI_SPI (1U<<26U) /**< DBI/SPI interfaces clear */
31 #define MIPICFG_RESX (1U<<25U) /**< Controls MIPI DBI Type-B RESX output signal */
32 #define MIPICFG_DMA (1U<<24U) /**< (unused) Enables pixel data from DMA */
33 #define MIPICFG_SPI3 (1U<<23U) /**< Enables SPI 3-wire interface */
34 #define MIPICFG_SPI4 (1U<<22U) /**< Enables SPI 4-wire interface */
35 #define MIPICFG_GPI ((1U<<23U)|(1U<<22U)) /**< Enables Generic Packet Interface */
36 #define MIPICFG_EN_STALL (1U<<21U) /**< Enables back-pressure from dbi_stall_i signal */
37 #define MIPICFG_SPI_CPHA (1U<<20U) /**< Sets SPI Clock Phase */
38 #define MIPICFG_SPI_CPOL (1U<<19U) /**< Sets SPI Clock Polarity */
39 #define MIPICFG_SPI_JDI (1U<<18U) /**< -- reserved -- */
40 #define MIPICFG_EN_DVALID (1U<<18U) /**< Enables read using external data valid signal */
41 #define MIPICFG_SPI_HOLD (1U<<17U) /**< Binds scanline address with pixel data */
42 #define MIPICFG_INV_ADDR (1U<<16U) /**< Inverts scanline address */
43 #define MIPICFG_SCAN_ADDR (1U<<15U) /**< Scan address used as header of each line */
44 #define MIPICFG_PIXCLK_OUT_EN (1U<<14U) /**< Redirects pixel generation clock to the output */
45 #define MIPICFG_EXT_CTRL (1U<<13U) /**< Enables external control signals */
46 #define MIPICFG_BLANKING_EN (1U<<12U) /**< Enables horizontal blanking */
47 #define MIPICFG_DSPI_SPIX (1U<<11U) /**< Enables DSPI sub-pixel transaction */
48 #define MIPICFG_QSPI (1U<<10U) /**< Enables QSPI */
49 #define MIPICFG_QSPI_DDR ((1U<<10U)|(1U<<9U)) /**< Enables QSPI DDR */
50 #define MIPICFG_DSPI (1U<< 9U) /**< Enables DSPI */
51 #define MIPICFG_SPI (0U<< 9U) /**< Enables SPI */
52 #define MIPICFG_NULL (0x00U) /**< MIPI CFG NULL */
53 /** @} */
54 
55 /** @defgroup HAL_GDC_MIPI_OUTPUT_MODE The DC output mode defines
56  * @{
57  */
58 #define MIPI_DCS_RGB111 (1U) /**< Color mode RGB111 */
59 #define MIPI_DCS_RGB332 (2U) /**< Color mode RGB332 */
60 #define MIPI_DCS_RGB444 (3U) /**< Color mode RGB444 */
61 #define MIPI_DCS_RGB565 (5U) /**< Color mode RGB565 */
62 #define MIPI_DCS_RGB666 (6U) /**< Color mode RGB666 */
63 #define MIPI_DCS_RGB888 (7U) /**< Color mode RGB888 */
64 
65 #define MIPICFG_PF_SPI (3U<<6U) /**< Interface mode SPI */
66 #define MIPICFG_PF_DSPI (4U<<6U) /**< Interface mode DSPI */
67 #define MIPICFG_PF_QSPI (5U<<6U) /**< Interface mode QSPI */
68 #define MIPICFG_PF_DBI8 (0U<<6U) /**< Interface mode DBI8 */
69 #define MIPICFG_PF_DBI9 (1U<<6U) /**< Interface mode DBI9 */
70 #define MIPICFG_PF_DBI16 (2U<<6U) /**< Interface mode DBI16 */
71 #define MIPICFG_PF_GPI (6U<<6U) /**< Interface mode GPI */
72 
73 #define MIPICFG_PF_OPT0 (0U<<3U) /**< Option DBI_CFG:option 0 */
74 #define MIPICFG_PF_OPT1 (1U<<3U) /**< Option DBI_CFG:option 1 */
75 #define MIPICFG_PF_OPT2 (2U<<3U) /**< Option DBI_CFG:option 2 */
76 #define MIPICFG_PF_OPT3 (3U<<3U) /**< Option DBI_CFG:option 3 */
77 #define MIPICFG_PF_OPT4 (4U<<3U) /**< Option DBI_CFG:option 4 */
78 
79 #define MIPICFG_1RGB111_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB111) /**< 0xc1 */
80 #define MIPICFG_1RGB111_OPT1 (MIPICFG_PF_SPI|MIPICFG_PF_OPT1|MIPI_DCS_RGB111) /**< 0xc9 */
81 #define MIPICFG_1RGB111_OPT2 (MIPICFG_PF_SPI|MIPICFG_PF_OPT2|MIPI_DCS_RGB111) /**< 0xd1 */
82 #define MIPICFG_1RGB111_OPT3 (MIPICFG_PF_SPI|MIPICFG_PF_OPT3|MIPI_DCS_RGB111) /**< 0xd9 */
83 #define MIPICFG_1RGB111_OPT4 (MIPICFG_PF_SPI|MIPICFG_PF_OPT4|MIPI_DCS_RGB111) /**< 0xe1 */
84 #define MIPICFG_1RGB332_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0xc2 */
85 #define MIPICFG_1RGB444_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0xc3 */
86 #define MIPICFG_1RGB565_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0xc5 */
87 #define MIPICFG_1RGB666_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0xc6 */
88 #define MIPICFG_1RGB888_OPT0 (MIPICFG_PF_SPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0xc7 */
89 #define MIPICFG_2RGB332_OPT0 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0x102 */
90 #define MIPICFG_2RGB444_OPT0 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0x103 */
91 #define MIPICFG_2RGB444_OPT1 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT1|MIPI_DCS_RGB444) /**< 0x10b */
92 #define MIPICFG_2RGB565_OPT0 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0x105 */
93 #define MIPICFG_2RGB666_OPT0 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x106 */
94 #define MIPICFG_2RGB666_OPT1 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT1|MIPI_DCS_RGB666) /**< 0x10e */
95 #define MIPICFG_2RGB888_OPT0 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0x107 */
96 #define MIPICFG_2RGB888_OPT1 (MIPICFG_PF_DSPI|MIPICFG_PF_OPT1|MIPI_DCS_RGB888) /**< 0x10f */
97 #define MIPICFG_4RGB111_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB111) /**< 0x141 */
98 #define MIPICFG_4RGB332_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0x142 */
99 #define MIPICFG_4RGB444_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0x143 */
100 #define MIPICFG_4RGB565_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0x145 */
101 #define MIPICFG_4RGB666_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x146 */
102 #define MIPICFG_4RGB888_OPT0 (MIPICFG_PF_QSPI|MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0x147 */
103 
104 #define MIPICFG_8RGB332_OPT0 (MIPICFG_PF_DBI8|MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0x2 */
105 #define MIPICFG_8RGB444_OPT0 (MIPICFG_PF_DBI8|MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0x3 */
106 #define MIPICFG_8RGB565_OPT0 (MIPICFG_PF_DBI8|MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0x5 */
107 #define MIPICFG_8RGB666_OPT0 (MIPICFG_PF_DBI8|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x6 */
108 #define MIPICFG_8RGB888_OPT0 (MIPICFG_PF_DBI8|MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0x7 */
109 #define MIPICFG_16RGB332_OPT0 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0x82 */
110 #define MIPICFG_16RGB444_OPT0 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0x83 */
111 #define MIPICFG_16RGB565_OPT0 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0x85 */
112 #define MIPICFG_16RGB666_OPT0 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x86 */
113 #define MIPICFG_16RGB666_OPT1 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT1|MIPI_DCS_RGB666) /**< 0x8e */
114 #define MIPICFG_16RGB888_OPT0 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0x87 */
115 #define MIPICFG_16RGB888_OPT1 (MIPICFG_PF_DBI16|MIPICFG_PF_OPT1|MIPI_DCS_RGB888) /**< 0x8f */
116 #define MIPICFG_9RGB666_OPT0 (MIPICFG_PF_DBI9|MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x46 */
117 #define MIPICFG_32RGB332_OPT0 (MIPICFG_PF_GPI |MIPICFG_PF_OPT0|MIPI_DCS_RGB332) /**< 0x182 */
118 #define MIPICFG_32RGB444_OPT0 (MIPICFG_PF_GPI |MIPICFG_PF_OPT0|MIPI_DCS_RGB444) /**< 0x183 */
119 #define MIPICFG_32RGB565_OPT0 (MIPICFG_PF_GPI |MIPICFG_PF_OPT0|MIPI_DCS_RGB565) /**< 0x185 */
120 #define MIPICFG_32RGB666_OPT0 (MIPICFG_PF_GPI |MIPICFG_PF_OPT0|MIPI_DCS_RGB666) /**< 0x186 */
121 #define MIPICFG_32RGB666_OPT1 (MIPICFG_PF_GPI |MIPICFG_PF_OPT1|MIPI_DCS_RGB666) /**< 0x18e */
122 #define MIPICFG_32RGB888_OPT0 (MIPICFG_PF_GPI |MIPICFG_PF_OPT0|MIPI_DCS_RGB888) /**< 0x187 */
123 /** @} */
124 
125 /** @defgroup HAL_GDC_MIPI_SET_MODE The DC set mode
126  * @{
127  */
128 #define hal_gdc_MIPI_set_mode hal_gdc_MIPI_set_pixel_format /**< for backward compatibility */
129 /** @} */
130 
131 /** @} */
132 
133 /** @addtogroup HAL_GDC_MIPI_ENUM Enumerations
134  * @{
135  */
136 /**
137  * @brief MIPI Command List definition
138  */
139 typedef enum {
140  MIPI_enter_idle_mode = 0x39, /**< Enter idle mode. */
141  MIPI_enter_invert_mode = 0x21, /**< Enter invert mode. */
142  MIPI_enter_normal_mode = 0x13, /**< Enter normal mode. */
143  MIPI_enter_partial_mode = 0x12, /**< Enter partial mode. */
144  MIPI_enter_sleep_mode = 0x10, /**< Enter sleep mode. */
145  MIPI_exit_idle_mode = 0x38, /**< Exit idle mode. */
146  MIPI_exit_invert_mode = 0x20, /**< Exit invert mode. */
147  MIPI_exit_sleep_mode = 0x11, /**< Exit sleep mode. */
148  MIPI_get_3D_control = 0x3f, /**< Get 3D control. */
149  MIPI_get_address_mode = 0x0b, /**< Get address mode. */
150  MIPI_get_blue_channel = 0x08, /**< Get blue channel. */
151  MIPI_get_diagnostic_result = 0x0f, /**< Get diagnostic result. */
152  MIPI_get_display_mode = 0x0d, /**< Get display mode. */
153  MIPI_get_green_channel = 0x07, /**< Get green channel. */
154  MIPI_get_pixel_format = 0x0c, /**< Get pixel format. */
155  MIPI_get_power_mode = 0x0a, /**< Get power mode. */
156  MIPI_get_red_channel = 0x06, /**< Get red channel. */
157  MIPI_get_scanline = 0x45, /**< Get scanline. */
158  MIPI_get_signal_mode = 0x0e, /**< Get signal mode. */
159  MIPI_nop = 0x00, /**< MIPI nop. */
160  MIPI_read_DDB_continue = 0xa8, /**< Read DDB continue. */
161  MIPI_read_DDB_start = 0xa1, /**< Read DDB start. */
162  MIPI_read_memory_continue = 0x3e, /**< Read memory continue. */
163  MIPI_read_memory_start = 0x2e, /**< Read memory start. */
164  MIPI_set_3D_control = 0x3d, /**< Set 3D control. */
165  MIPI_set_address_mode = 0x36, /**< Set address mode. */
166  MIPI_set_column_address = 0x2a, /**< Set column address. */
167  MIPI_set_display_off = 0x28, /**< Set display off. */
168  MIPI_set_display_on = 0x29, /**< Set display on. */
169  MIPI_set_gamma_curve = 0x26, /**< Set gamma curve. */
170  MIPI_set_page_address = 0x2b, /**< Set page address. */
171  MIPI_set_partial_columns = 0x31, /**< Set partial columns. */
172  MIPI_set_partial_rows = 0x30, /**< Set partial rows. */
173  MIPI_set_pixel_format = 0x3a, /**< Set pixel format. */
174  MIPI_set_scroll_area = 0x33, /**< Set scroll area. */
175  MIPI_set_scroll_start = 0x37, /**< Set scroll start. */
176  MIPI_set_tear_off = 0x34, /**< Set tear off. */
177  MIPI_set_tear_on = 0x35, /**< Set tear on. */
178  MIPI_set_tear_scanline = 0x44, /**< Set tear scanline. */
179  MIPI_set_vsync_timing = 0x40, /**< Set vsync timing. */
180  MIPI_soft_reset = 0x01, /**< Soft reset. */
181  MIPI_write_LUT = 0x2d, /**< Write LUT. */
182  MIPI_write_memory_continue = 0x3c, /**< Write memory continue. */
183  MIPI_write_memory_start = 0x2c, /**< Write memory start. */
184  MIPI_snapshot = 0xff, /**< snapshot. */
185  MIPI_DBIB_STORE_BASE_ADDR = (1 <<31), /**< DBIB store base addr. */
186  MIPI_DBIB_CMD = (1U<<30), /**< DBIB CMD. */
187  MIPI_CMD08 = (0U<<28), /**< Set cmd width to 8bit */
188  MIPI_CMD16 = (1U<<28), /**< Set cmd width to 16bit */
189  MIPI_CMD24 = (1U<<29), /**< Set cmd width to 24bit */
190  MIPI_MASK_QSPI = (1U<<27), /**< Qspi is forced to single line */
192 
193 /** @} */
194 
195 /** @addtogroup HAL_GDX_MIPI_FUNCTION Functions
196  * @{
197  */
198 /**
199  *****************************************************************************************
200  * @brief Send command or data to MIPI Interface.
201  *
202  * @param[in] cmd: command or data to be sent
203  *****************************************************************************************
204  */
205 void hal_gdc_MIPI_out(int cmd);
206 
207 /**
208  *****************************************************************************************
209  * @brief Configure hal_gdc's serial interace.
210  *
211  * @param[in] cfg: configuration mode
212  *****************************************************************************************
213  */
214 void hal_gdc_MIPI_CFG_out(int cfg);
215 
216 /**
217  *****************************************************************************************
218  * @brief Read data from MIPI interface.
219  *
220  * @return data form MIPI interface
221  *****************************************************************************************
222  */
223 int hal_gdc_MIPI_in(void);
224 
225 /**
226  *****************************************************************************************
227  * @brief Read MIPI DBI Type-B parameters.
228  *
229  * @param[in] cmd: MIPI DCS command
230  * @param[in] n_params: Number of parameters to read (max: 3)
231  *
232  * @return The read parameters
233  *****************************************************************************************
234  */
235 unsigned hal_gdc_MIPI_read(int cmd, int n_params);
236 
237 /**
238  *****************************************************************************************
239  * @brief Send DCS command to display over the physical interface.
240  *
241  * @param[in] cmd: MIPI DCS command
242  *****************************************************************************************
243  */
244 void hal_gdc_MIPI_cmd(int cmd);
245 
246 /**
247  *****************************************************************************************
248  * @brief Similar to hal_gdc_MIPI_cmd, with command parameters.
249  *
250  * @param[in] cmd: MIPI DCS command
251  * @param[in] n_params: Number of cmd parameters
252  *****************************************************************************************
253  */
254 void hal_gdc_MIPI_cmd_params(int cmd, int n_params,...);
255 
256 /**
257  *****************************************************************************************
258  * @brief Does Partial Update in MIPI.
259  *
260  * @param[in] start_x: start x coordinate
261  * @param[in] start_y: start y coordinate
262  * @param[in] end_x: end x coordinate
263  * @param[in] end_y: end y coordinate
264  *
265  * @return Always 1, user can ignore the result
266  *****************************************************************************************
267  */
268 int hal_gdc_MIPI_updateregion(int start_x, int start_y,int end_x, int end_y);
269 
270 /**
271  *****************************************************************************************
272  * @brief Convenience function. Sends exit_sleep and display_on commands.
273  *****************************************************************************************
274  */
276 
277 /**
278  *****************************************************************************************
279  * @brief Convenience function. Sends display_off and enter_sleep_mode commands.
280  *****************************************************************************************
281  */
283 
284 /**
285  *****************************************************************************************
286  * @brief Set the display pixel format. Sends set_pixel_format command to the display.
287  *
288  * @param[in] pixel_format: pixel format
289  *****************************************************************************************
290  */
291 void hal_gdc_MIPI_set_pixel_format(int pixel_format);
292 
293 /**
294  *****************************************************************************************
295  * @brief Set the frame position. Sends set_column_address and set_page_address commands.
296  *
297  * @param[in] minx: frames' minimum x
298  * @param[in] miny: frames' minimum y
299  * @param[in] maxx: frame's maximum x
300  * @param[in] maxy: frame's maximum y
301  *****************************************************************************************
302  */
303 void hal_gdc_MIPI_set_position(int minx, int miny, int maxx, int maxy);
304 
305 /**
306  *****************************************************************************************
307  * @brief Set the display partial area and enter Partial Display Mode.
308  *
309  * @param[in] minx: partial areas' minimum x
310  * @param[in] miny: partial areas' minimum y
311  * @param[in] maxx: partial areas' maximum x
312  * @param[in] maxy: partial areas' maximum y
313  *****************************************************************************************
314  */
315 void hal_gdc_MIPI_set_partial_mode(int minx, int miny, int maxx, int maxy);
316 
317  /**
318  *****************************************************************************************
319  * @brief Convenience function. Send a write_memory_start command in order to start transfering the frame to the display.
320  *****************************************************************************************
321  */
323 
324 /** @} */
325 
326 #endif // HAL_GDC_MIPI_H__
327 /** @} */
328 /** @} */
329 
330 
hal_gdc_MIPI_updateregion
int hal_gdc_MIPI_updateregion(int start_x, int start_y, int end_x, int end_y)
Does Partial Update in MIPI.
MIPI_CMD16
@ MIPI_CMD16
Definition: hal_gdc_mipi.h:188
MIPI_write_LUT
@ MIPI_write_LUT
Definition: hal_gdc_mipi.h:181
MIPI_MASK_QSPI
@ MIPI_MASK_QSPI
Definition: hal_gdc_mipi.h:190
MIPI_set_display_on
@ MIPI_set_display_on
Definition: hal_gdc_mipi.h:168
MIPI_enter_partial_mode
@ MIPI_enter_partial_mode
Definition: hal_gdc_mipi.h:143
MIPI_set_display_off
@ MIPI_set_display_off
Definition: hal_gdc_mipi.h:167
MIPI_exit_idle_mode
@ MIPI_exit_idle_mode
Definition: hal_gdc_mipi.h:145
MIPI_set_scroll_start
@ MIPI_set_scroll_start
Definition: hal_gdc_mipi.h:175
MIPI_DBIB_STORE_BASE_ADDR
@ MIPI_DBIB_STORE_BASE_ADDR
Definition: hal_gdc_mipi.h:185
MIPI_read_memory_start
@ MIPI_read_memory_start
Definition: hal_gdc_mipi.h:163
hal_gdc_MIPI_cmd
void hal_gdc_MIPI_cmd(int cmd)
Send DCS command to display over the physical interface.
MIPI_set_tear_on
@ MIPI_set_tear_on
Definition: hal_gdc_mipi.h:177
MIPI_set_scroll_area
@ MIPI_set_scroll_area
Definition: hal_gdc_mipi.h:174
MIPI_get_green_channel
@ MIPI_get_green_channel
Definition: hal_gdc_mipi.h:153
MIPI_DBIB_CMD
@ MIPI_DBIB_CMD
Definition: hal_gdc_mipi.h:186
MIPI_get_blue_channel
@ MIPI_get_blue_channel
Definition: hal_gdc_mipi.h:150
hal_gdc_MIPI_set_position
void hal_gdc_MIPI_set_position(int minx, int miny, int maxx, int maxy)
Set the frame position. Sends set_column_address and set_page_address commands.
hal_gdc_MIPI_set_pixel_format
void hal_gdc_MIPI_set_pixel_format(int pixel_format)
Set the display pixel format. Sends set_pixel_format command to the display.
hal_gfx_sys_defs.h
MIPI_read_DDB_start
@ MIPI_read_DDB_start
Definition: hal_gdc_mipi.h:161
MIPI_CMD08
@ MIPI_CMD08
Definition: hal_gdc_mipi.h:187
MIPI_CMD24
@ MIPI_CMD24
Definition: hal_gdc_mipi.h:189
MIPI_set_partial_rows
@ MIPI_set_partial_rows
Definition: hal_gdc_mipi.h:172
MIPI_set_tear_off
@ MIPI_set_tear_off
Definition: hal_gdc_mipi.h:176
MIPI_get_signal_mode
@ MIPI_get_signal_mode
Definition: hal_gdc_mipi.h:158
MIPI_set_tear_scanline
@ MIPI_set_tear_scanline
Definition: hal_gdc_mipi.h:178
MIPI_read_memory_continue
@ MIPI_read_memory_continue
Definition: hal_gdc_mipi.h:162
MIPI_set_partial_columns
@ MIPI_set_partial_columns
Definition: hal_gdc_mipi.h:171
MIPI_write_memory_continue
@ MIPI_write_memory_continue
Definition: hal_gdc_mipi.h:182
hal_gdc_MIPI_set_partial_mode
void hal_gdc_MIPI_set_partial_mode(int minx, int miny, int maxx, int maxy)
Set the display partial area and enter Partial Display Mode.
MIPI_get_display_mode
@ MIPI_get_display_mode
Definition: hal_gdc_mipi.h:152
MIPI_get_address_mode
@ MIPI_get_address_mode
Definition: hal_gdc_mipi.h:149
MIPI_enter_invert_mode
@ MIPI_enter_invert_mode
Definition: hal_gdc_mipi.h:141
MIPI_enter_idle_mode
@ MIPI_enter_idle_mode
Definition: hal_gdc_mipi.h:140
MIPI_enter_sleep_mode
@ MIPI_enter_sleep_mode
Definition: hal_gdc_mipi.h:144
hal_gdc_MIPI_disable
void hal_gdc_MIPI_disable(void)
Convenience function. Sends display_off and enter_sleep_mode commands.
MIPI_get_scanline
@ MIPI_get_scanline
Definition: hal_gdc_mipi.h:157
MIPI_set_page_address
@ MIPI_set_page_address
Definition: hal_gdc_mipi.h:170
MIPI_get_diagnostic_result
@ MIPI_get_diagnostic_result
Definition: hal_gdc_mipi.h:151
MIPI_set_3D_control
@ MIPI_set_3D_control
Definition: hal_gdc_mipi.h:164
MIPI_get_red_channel
@ MIPI_get_red_channel
Definition: hal_gdc_mipi.h:156
MIPI_get_3D_control
@ MIPI_get_3D_control
Definition: hal_gdc_mipi.h:148
MIPI_snapshot
@ MIPI_snapshot
Definition: hal_gdc_mipi.h:184
MIPI_set_pixel_format
@ MIPI_set_pixel_format
Definition: hal_gdc_mipi.h:173
MIPI_set_gamma_curve
@ MIPI_set_gamma_curve
Definition: hal_gdc_mipi.h:169
hal_gdc_MIPI_cmd_params
void hal_gdc_MIPI_cmd_params(int cmd, int n_params,...)
Similar to hal_gdc_MIPI_cmd, with command parameters.
MIPI_read_DDB_continue
@ MIPI_read_DDB_continue
Definition: hal_gdc_mipi.h:160
hal_gdc_MIPI_in
int hal_gdc_MIPI_in(void)
Read data from MIPI interface.
MIPI_nop
@ MIPI_nop
Definition: hal_gdc_mipi.h:159
MIPI_write_memory_start
@ MIPI_write_memory_start
Definition: hal_gdc_mipi.h:183
MIPI_soft_reset
@ MIPI_soft_reset
Definition: hal_gdc_mipi.h:180
MIPI_exit_invert_mode
@ MIPI_exit_invert_mode
Definition: hal_gdc_mipi.h:146
MIPI_exit_sleep_mode
@ MIPI_exit_sleep_mode
Definition: hal_gdc_mipi.h:147
hal_gdc_MIPI_out
void hal_gdc_MIPI_out(int cmd)
Send command or data to MIPI Interface.
hal_gdc_MIPI_CFG_out
void hal_gdc_MIPI_CFG_out(int cfg)
Configure hal_gdc's serial interace.
hal_gdc_MIPI_start_frame_transfer
void hal_gdc_MIPI_start_frame_transfer(void)
Convenience function. Send a write_memory_start command in order to start transfering the frame to th...
hal_gdc_mipi_cmd_t
hal_gdc_mipi_cmd_t
MIPI Command List definition.
Definition: hal_gdc_mipi.h:139
MIPI_enter_normal_mode
@ MIPI_enter_normal_mode
Definition: hal_gdc_mipi.h:142
MIPI_set_vsync_timing
@ MIPI_set_vsync_timing
Definition: hal_gdc_mipi.h:179
hal_gdc_MIPI_read
unsigned hal_gdc_MIPI_read(int cmd, int n_params)
Read MIPI DBI Type-B parameters.
MIPI_set_address_mode
@ MIPI_set_address_mode
Definition: hal_gdc_mipi.h:165
MIPI_set_column_address
@ MIPI_set_column_address
Definition: hal_gdc_mipi.h:166
MIPI_get_pixel_format
@ MIPI_get_pixel_format
Definition: hal_gdc_mipi.h:154
MIPI_get_power_mode
@ MIPI_get_power_mode
Definition: hal_gdc_mipi.h:155
hal_gdc_MIPI_enable
void hal_gdc_MIPI_enable(void)
Convenience function. Sends exit_sleep and display_on commands.