Mipi.h
Go to the documentation of this file.
1 /****
2  * Mipi.h
3  *
4  * This file is part of the Sming-Graphics Library
5  *
6  * This library is free software: you can redistribute it and/or modify it under the terms of the
7  * GNU General Public License as published by the Free Software Foundation, version 3 or later.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with this library.
14  * If not, see <https://www.gnu.org/licenses/>.
15  *
16  ****/
17 
18 #pragma once
19 
20 namespace Graphics
21 {
22 namespace Mipi
23 {
24 /* Defines for Mobile Industry Processor Interface (MIPI) */
25 
26 /* MIPI Display Serial Interface (DSI) commands. See: https://en.wikipedia.org/wiki/Display_Serial_Interface */
32 
35 
40 
44 
48 
51 
52  DSI_DCS_READ = 0x06,
54 
56 
61 
64 
68 
72 
77 };
78 
79 /* MIPI DSI Peripheral-to-Processor transaction types */
89 };
90 
91 /* MIPI Display Command Set (DCS).
92  *
93  * The Display Command Set (DCS) is a set of common commands for controlling the display device,
94  * and their format is specified by the DSI standard. It defines registers that can be addressed and what their operation is.
95  * It includes basic commands such as sleep, enable, and invert display.
96  *
97  * See: https://en.wikipedia.org/wiki/Display_Serial_Interface
98  * See: https://www.mipi.org/specifications/display-command-set
99  */
101  DCS_NOP = 0x00,
132  DCS_SET_PARTIAL_ROWS = 0x30, /* MIPI DCS 1.02 - DCS_SET_PARTIAL_AREA before that */
149  DCS_SET_DISPLAY_BRIGHTNESS = 0x51, /* MIPI DCS 1.3 */
150  DCS_GET_DISPLAY_BRIGHTNESS = 0x52, /* MIPI DCS 1.3 */
151  DCS_WRITE_CONTROL_DISPLAY = 0x53, /* MIPI DCS 1.3 */
152  DCS_GET_CONTROL_DISPLAY = 0x54, /* MIPI DCS 1.3 */
153  DCS_WRITE_POWER_SAVE = 0x55, /* MIPI DCS 1.3 */
154  DCS_GET_POWER_SAVE = 0x56, /* MIPI DCS 1.3 */
155  DCS_SET_CABC_MIN_BRIGHTNESS = 0x5E, /* MIPI DCS 1.3 */
156  DCS_GET_CABC_MIN_BRIGHTNESS = 0x5F, /* MIPI DCS 1.3 */
161 };
162 
163 /* MIPI DCS Address Mode bits (also known as MADCTL) */
168  DCS_ADDRESS_MODE_REFRESH_BT = 0x10, // Does not affect image
171  DCS_ADDRESS_MODE_LATCH_RL = 0x04, // Does not affect image
174 };
175 
176 /* MIPI DCS pixel formats */
184 };
185 
186 } // namespace Mipi
187 } // namespace Graphics
Definition: Mipi.h:136
Definition: Mipi.h:135
Definition: Mipi.h:102
Definition: Mipi.h:57
Definition: Mipi.h:130
DcsPixelFormat
Definition: Mipi.h:177
DcsAddressMode
Definition: Mipi.h:164
Definition: Mipi.h:31
Definition: Mipi.h:52
Definition: Mipi.h:29
SerialTransactionType
Definition: Mipi.h:80
Definition: Mipi.h:148
SerialInterfaceCommand
Definition: Mipi.h:27
Definition: Virtual.h:30
DisplayCommandSet
Definition: Mipi.h:100
Definition: Mipi.h:101