inport from local
Dependents: Hobbyking_Cheetah_0511
targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dsi.h@0:85b3fd62ea1a, 2020-03-16 (annotated)
- Committer:
- NYX
- Date:
- Mon Mar 16 06:35:48 2020 +0000
- Revision:
- 0:85b3fd62ea1a
reinport to mbed;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NYX | 0:85b3fd62ea1a | 1 | /** |
NYX | 0:85b3fd62ea1a | 2 | ****************************************************************************** |
NYX | 0:85b3fd62ea1a | 3 | * @file stm32f4xx_hal_dsi.h |
NYX | 0:85b3fd62ea1a | 4 | * @author MCD Application Team |
NYX | 0:85b3fd62ea1a | 5 | * @version V1.7.1 |
NYX | 0:85b3fd62ea1a | 6 | * @date 14-April-2017 |
NYX | 0:85b3fd62ea1a | 7 | * @brief Header file of DSI HAL module. |
NYX | 0:85b3fd62ea1a | 8 | ****************************************************************************** |
NYX | 0:85b3fd62ea1a | 9 | * @attention |
NYX | 0:85b3fd62ea1a | 10 | * |
NYX | 0:85b3fd62ea1a | 11 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
NYX | 0:85b3fd62ea1a | 12 | * |
NYX | 0:85b3fd62ea1a | 13 | * Redistribution and use in source and binary forms, with or without modification, |
NYX | 0:85b3fd62ea1a | 14 | * are permitted provided that the following conditions are met: |
NYX | 0:85b3fd62ea1a | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
NYX | 0:85b3fd62ea1a | 16 | * this list of conditions and the following disclaimer. |
NYX | 0:85b3fd62ea1a | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
NYX | 0:85b3fd62ea1a | 18 | * this list of conditions and the following disclaimer in the documentation |
NYX | 0:85b3fd62ea1a | 19 | * and/or other materials provided with the distribution. |
NYX | 0:85b3fd62ea1a | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
NYX | 0:85b3fd62ea1a | 21 | * may be used to endorse or promote products derived from this software |
NYX | 0:85b3fd62ea1a | 22 | * without specific prior written permission. |
NYX | 0:85b3fd62ea1a | 23 | * |
NYX | 0:85b3fd62ea1a | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
NYX | 0:85b3fd62ea1a | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
NYX | 0:85b3fd62ea1a | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
NYX | 0:85b3fd62ea1a | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
NYX | 0:85b3fd62ea1a | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
NYX | 0:85b3fd62ea1a | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
NYX | 0:85b3fd62ea1a | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
NYX | 0:85b3fd62ea1a | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
NYX | 0:85b3fd62ea1a | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
NYX | 0:85b3fd62ea1a | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
NYX | 0:85b3fd62ea1a | 34 | * |
NYX | 0:85b3fd62ea1a | 35 | ****************************************************************************** |
NYX | 0:85b3fd62ea1a | 36 | */ |
NYX | 0:85b3fd62ea1a | 37 | |
NYX | 0:85b3fd62ea1a | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 39 | #ifndef __STM32F4xx_HAL_DSI_H |
NYX | 0:85b3fd62ea1a | 40 | #define __STM32F4xx_HAL_DSI_H |
NYX | 0:85b3fd62ea1a | 41 | |
NYX | 0:85b3fd62ea1a | 42 | #ifdef __cplusplus |
NYX | 0:85b3fd62ea1a | 43 | extern "C" { |
NYX | 0:85b3fd62ea1a | 44 | #endif |
NYX | 0:85b3fd62ea1a | 45 | |
NYX | 0:85b3fd62ea1a | 46 | #if defined(STM32F469xx) || defined(STM32F479xx) |
NYX | 0:85b3fd62ea1a | 47 | /* Includes ------------------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 48 | #include "stm32f4xx_hal_def.h" |
NYX | 0:85b3fd62ea1a | 49 | |
NYX | 0:85b3fd62ea1a | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
NYX | 0:85b3fd62ea1a | 51 | * @{ |
NYX | 0:85b3fd62ea1a | 52 | */ |
NYX | 0:85b3fd62ea1a | 53 | |
NYX | 0:85b3fd62ea1a | 54 | /** @defgroup DSI DSI |
NYX | 0:85b3fd62ea1a | 55 | * @brief DSI HAL module driver |
NYX | 0:85b3fd62ea1a | 56 | * @{ |
NYX | 0:85b3fd62ea1a | 57 | */ |
NYX | 0:85b3fd62ea1a | 58 | |
NYX | 0:85b3fd62ea1a | 59 | /* Exported types ------------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 60 | /** |
NYX | 0:85b3fd62ea1a | 61 | * @brief DSI Init Structure definition |
NYX | 0:85b3fd62ea1a | 62 | */ |
NYX | 0:85b3fd62ea1a | 63 | typedef struct |
NYX | 0:85b3fd62ea1a | 64 | { |
NYX | 0:85b3fd62ea1a | 65 | uint32_t AutomaticClockLaneControl; /*!< Automatic clock lane control |
NYX | 0:85b3fd62ea1a | 66 | This parameter can be any value of @ref DSI_Automatic_Clk_Lane_Control */ |
NYX | 0:85b3fd62ea1a | 67 | |
NYX | 0:85b3fd62ea1a | 68 | uint32_t TXEscapeCkdiv; /*!< TX Escape clock division |
NYX | 0:85b3fd62ea1a | 69 | The values 0 and 1 stop the TX_ESC clock generation */ |
NYX | 0:85b3fd62ea1a | 70 | |
NYX | 0:85b3fd62ea1a | 71 | uint32_t NumberOfLanes; /*!< Number of lanes |
NYX | 0:85b3fd62ea1a | 72 | This parameter can be any value of @ref DSI_Number_Of_Lanes */ |
NYX | 0:85b3fd62ea1a | 73 | |
NYX | 0:85b3fd62ea1a | 74 | }DSI_InitTypeDef; |
NYX | 0:85b3fd62ea1a | 75 | |
NYX | 0:85b3fd62ea1a | 76 | /** |
NYX | 0:85b3fd62ea1a | 77 | * @brief DSI PLL Clock structure definition |
NYX | 0:85b3fd62ea1a | 78 | */ |
NYX | 0:85b3fd62ea1a | 79 | typedef struct |
NYX | 0:85b3fd62ea1a | 80 | { |
NYX | 0:85b3fd62ea1a | 81 | uint32_t PLLNDIV; /*!< PLL Loop Division Factor |
NYX | 0:85b3fd62ea1a | 82 | This parameter must be a value between 10 and 125 */ |
NYX | 0:85b3fd62ea1a | 83 | |
NYX | 0:85b3fd62ea1a | 84 | uint32_t PLLIDF; /*!< PLL Input Division Factor |
NYX | 0:85b3fd62ea1a | 85 | This parameter can be any value of @ref DSI_PLL_IDF */ |
NYX | 0:85b3fd62ea1a | 86 | |
NYX | 0:85b3fd62ea1a | 87 | uint32_t PLLODF; /*!< PLL Output Division Factor |
NYX | 0:85b3fd62ea1a | 88 | This parameter can be any value of @ref DSI_PLL_ODF */ |
NYX | 0:85b3fd62ea1a | 89 | |
NYX | 0:85b3fd62ea1a | 90 | }DSI_PLLInitTypeDef; |
NYX | 0:85b3fd62ea1a | 91 | |
NYX | 0:85b3fd62ea1a | 92 | /** |
NYX | 0:85b3fd62ea1a | 93 | * @brief DSI Video mode configuration |
NYX | 0:85b3fd62ea1a | 94 | */ |
NYX | 0:85b3fd62ea1a | 95 | typedef struct |
NYX | 0:85b3fd62ea1a | 96 | { |
NYX | 0:85b3fd62ea1a | 97 | uint32_t VirtualChannelID; /*!< Virtual channel ID */ |
NYX | 0:85b3fd62ea1a | 98 | |
NYX | 0:85b3fd62ea1a | 99 | uint32_t ColorCoding; /*!< Color coding for LTDC interface |
NYX | 0:85b3fd62ea1a | 100 | This parameter can be any value of @ref DSI_Color_Coding */ |
NYX | 0:85b3fd62ea1a | 101 | |
NYX | 0:85b3fd62ea1a | 102 | uint32_t LooselyPacked; /*!< Enable or disable loosely packed stream (needed only when using |
NYX | 0:85b3fd62ea1a | 103 | 18-bit configuration). |
NYX | 0:85b3fd62ea1a | 104 | This parameter can be any value of @ref DSI_LooselyPacked */ |
NYX | 0:85b3fd62ea1a | 105 | |
NYX | 0:85b3fd62ea1a | 106 | uint32_t Mode; /*!< Video mode type |
NYX | 0:85b3fd62ea1a | 107 | This parameter can be any value of @ref DSI_Video_Mode_Type */ |
NYX | 0:85b3fd62ea1a | 108 | |
NYX | 0:85b3fd62ea1a | 109 | uint32_t PacketSize; /*!< Video packet size */ |
NYX | 0:85b3fd62ea1a | 110 | |
NYX | 0:85b3fd62ea1a | 111 | uint32_t NumberOfChunks; /*!< Number of chunks */ |
NYX | 0:85b3fd62ea1a | 112 | |
NYX | 0:85b3fd62ea1a | 113 | uint32_t NullPacketSize; /*!< Null packet size */ |
NYX | 0:85b3fd62ea1a | 114 | |
NYX | 0:85b3fd62ea1a | 115 | uint32_t HSPolarity; /*!< HSYNC pin polarity |
NYX | 0:85b3fd62ea1a | 116 | This parameter can be any value of @ref DSI_HSYNC_Polarity */ |
NYX | 0:85b3fd62ea1a | 117 | |
NYX | 0:85b3fd62ea1a | 118 | uint32_t VSPolarity; /*!< VSYNC pin polarity |
NYX | 0:85b3fd62ea1a | 119 | This parameter can be any value of @ref DSI_VSYNC_Active_Polarity */ |
NYX | 0:85b3fd62ea1a | 120 | |
NYX | 0:85b3fd62ea1a | 121 | uint32_t DEPolarity; /*!< Data Enable pin polarity |
NYX | 0:85b3fd62ea1a | 122 | This parameter can be any value of @ref DSI_DATA_ENABLE_Polarity */ |
NYX | 0:85b3fd62ea1a | 123 | |
NYX | 0:85b3fd62ea1a | 124 | uint32_t HorizontalSyncActive; /*!< Horizontal synchronism active duration (in lane byte clock cycles) */ |
NYX | 0:85b3fd62ea1a | 125 | |
NYX | 0:85b3fd62ea1a | 126 | uint32_t HorizontalBackPorch; /*!< Horizontal back-porch duration (in lane byte clock cycles) */ |
NYX | 0:85b3fd62ea1a | 127 | |
NYX | 0:85b3fd62ea1a | 128 | uint32_t HorizontalLine; /*!< Horizontal line duration (in lane byte clock cycles) */ |
NYX | 0:85b3fd62ea1a | 129 | |
NYX | 0:85b3fd62ea1a | 130 | uint32_t VerticalSyncActive; /*!< Vertical synchronism active duration */ |
NYX | 0:85b3fd62ea1a | 131 | |
NYX | 0:85b3fd62ea1a | 132 | uint32_t VerticalBackPorch; /*!< Vertical back-porch duration */ |
NYX | 0:85b3fd62ea1a | 133 | |
NYX | 0:85b3fd62ea1a | 134 | uint32_t VerticalFrontPorch; /*!< Vertical front-porch duration */ |
NYX | 0:85b3fd62ea1a | 135 | |
NYX | 0:85b3fd62ea1a | 136 | uint32_t VerticalActive; /*!< Vertical active duration */ |
NYX | 0:85b3fd62ea1a | 137 | |
NYX | 0:85b3fd62ea1a | 138 | uint32_t LPCommandEnable; /*!< Low-power command enable |
NYX | 0:85b3fd62ea1a | 139 | This parameter can be any value of @ref DSI_LP_Command */ |
NYX | 0:85b3fd62ea1a | 140 | |
NYX | 0:85b3fd62ea1a | 141 | uint32_t LPLargestPacketSize; /*!< The size, in bytes, of the low power largest packet that |
NYX | 0:85b3fd62ea1a | 142 | can fit in a line during VSA, VBP and VFP regions */ |
NYX | 0:85b3fd62ea1a | 143 | |
NYX | 0:85b3fd62ea1a | 144 | uint32_t LPVACTLargestPacketSize; /*!< The size, in bytes, of the low power largest packet that |
NYX | 0:85b3fd62ea1a | 145 | can fit in a line during VACT region */ |
NYX | 0:85b3fd62ea1a | 146 | |
NYX | 0:85b3fd62ea1a | 147 | uint32_t LPHorizontalFrontPorchEnable; /*!< Low-power horizontal front-porch enable |
NYX | 0:85b3fd62ea1a | 148 | This parameter can be any value of @ref DSI_LP_HFP */ |
NYX | 0:85b3fd62ea1a | 149 | |
NYX | 0:85b3fd62ea1a | 150 | uint32_t LPHorizontalBackPorchEnable; /*!< Low-power horizontal back-porch enable |
NYX | 0:85b3fd62ea1a | 151 | This parameter can be any value of @ref DSI_LP_HBP */ |
NYX | 0:85b3fd62ea1a | 152 | |
NYX | 0:85b3fd62ea1a | 153 | uint32_t LPVerticalActiveEnable; /*!< Low-power vertical active enable |
NYX | 0:85b3fd62ea1a | 154 | This parameter can be any value of @ref DSI_LP_VACT */ |
NYX | 0:85b3fd62ea1a | 155 | |
NYX | 0:85b3fd62ea1a | 156 | uint32_t LPVerticalFrontPorchEnable; /*!< Low-power vertical front-porch enable |
NYX | 0:85b3fd62ea1a | 157 | This parameter can be any value of @ref DSI_LP_VFP */ |
NYX | 0:85b3fd62ea1a | 158 | |
NYX | 0:85b3fd62ea1a | 159 | uint32_t LPVerticalBackPorchEnable; /*!< Low-power vertical back-porch enable |
NYX | 0:85b3fd62ea1a | 160 | This parameter can be any value of @ref DSI_LP_VBP */ |
NYX | 0:85b3fd62ea1a | 161 | |
NYX | 0:85b3fd62ea1a | 162 | uint32_t LPVerticalSyncActiveEnable; /*!< Low-power vertical sync active enable |
NYX | 0:85b3fd62ea1a | 163 | This parameter can be any value of @ref DSI_LP_VSYNC */ |
NYX | 0:85b3fd62ea1a | 164 | |
NYX | 0:85b3fd62ea1a | 165 | uint32_t FrameBTAAcknowledgeEnable; /*!< Frame bus-turn-around acknowledge enable |
NYX | 0:85b3fd62ea1a | 166 | This parameter can be any value of @ref DSI_FBTA_acknowledge */ |
NYX | 0:85b3fd62ea1a | 167 | |
NYX | 0:85b3fd62ea1a | 168 | }DSI_VidCfgTypeDef; |
NYX | 0:85b3fd62ea1a | 169 | |
NYX | 0:85b3fd62ea1a | 170 | /** |
NYX | 0:85b3fd62ea1a | 171 | * @brief DSI Adapted command mode configuration |
NYX | 0:85b3fd62ea1a | 172 | */ |
NYX | 0:85b3fd62ea1a | 173 | typedef struct |
NYX | 0:85b3fd62ea1a | 174 | { |
NYX | 0:85b3fd62ea1a | 175 | uint32_t VirtualChannelID; /*!< Virtual channel ID */ |
NYX | 0:85b3fd62ea1a | 176 | |
NYX | 0:85b3fd62ea1a | 177 | uint32_t ColorCoding; /*!< Color coding for LTDC interface |
NYX | 0:85b3fd62ea1a | 178 | This parameter can be any value of @ref DSI_Color_Coding */ |
NYX | 0:85b3fd62ea1a | 179 | |
NYX | 0:85b3fd62ea1a | 180 | uint32_t CommandSize; /*!< Maximum allowed size for an LTDC write memory command, measured in |
NYX | 0:85b3fd62ea1a | 181 | pixels. This parameter can be any value between 0x00 and 0xFFFFU */ |
NYX | 0:85b3fd62ea1a | 182 | |
NYX | 0:85b3fd62ea1a | 183 | uint32_t TearingEffectSource; /*!< Tearing effect source |
NYX | 0:85b3fd62ea1a | 184 | This parameter can be any value of @ref DSI_TearingEffectSource */ |
NYX | 0:85b3fd62ea1a | 185 | |
NYX | 0:85b3fd62ea1a | 186 | uint32_t TearingEffectPolarity; /*!< Tearing effect pin polarity |
NYX | 0:85b3fd62ea1a | 187 | This parameter can be any value of @ref DSI_TearingEffectPolarity */ |
NYX | 0:85b3fd62ea1a | 188 | |
NYX | 0:85b3fd62ea1a | 189 | uint32_t HSPolarity; /*!< HSYNC pin polarity |
NYX | 0:85b3fd62ea1a | 190 | This parameter can be any value of @ref DSI_HSYNC_Polarity */ |
NYX | 0:85b3fd62ea1a | 191 | |
NYX | 0:85b3fd62ea1a | 192 | uint32_t VSPolarity; /*!< VSYNC pin polarity |
NYX | 0:85b3fd62ea1a | 193 | This parameter can be any value of @ref DSI_VSYNC_Active_Polarity */ |
NYX | 0:85b3fd62ea1a | 194 | |
NYX | 0:85b3fd62ea1a | 195 | uint32_t DEPolarity; /*!< Data Enable pin polarity |
NYX | 0:85b3fd62ea1a | 196 | This parameter can be any value of @ref DSI_DATA_ENABLE_Polarity */ |
NYX | 0:85b3fd62ea1a | 197 | |
NYX | 0:85b3fd62ea1a | 198 | uint32_t VSyncPol; /*!< VSync edge on which the LTDC is halted |
NYX | 0:85b3fd62ea1a | 199 | This parameter can be any value of @ref DSI_Vsync_Polarity */ |
NYX | 0:85b3fd62ea1a | 200 | |
NYX | 0:85b3fd62ea1a | 201 | uint32_t AutomaticRefresh; /*!< Automatic refresh mode |
NYX | 0:85b3fd62ea1a | 202 | This parameter can be any value of @ref DSI_AutomaticRefresh */ |
NYX | 0:85b3fd62ea1a | 203 | |
NYX | 0:85b3fd62ea1a | 204 | uint32_t TEAcknowledgeRequest; /*!< Tearing Effect Acknowledge Request Enable |
NYX | 0:85b3fd62ea1a | 205 | This parameter can be any value of @ref DSI_TE_AcknowledgeRequest */ |
NYX | 0:85b3fd62ea1a | 206 | |
NYX | 0:85b3fd62ea1a | 207 | }DSI_CmdCfgTypeDef; |
NYX | 0:85b3fd62ea1a | 208 | |
NYX | 0:85b3fd62ea1a | 209 | /** |
NYX | 0:85b3fd62ea1a | 210 | * @brief DSI command transmission mode configuration |
NYX | 0:85b3fd62ea1a | 211 | */ |
NYX | 0:85b3fd62ea1a | 212 | typedef struct |
NYX | 0:85b3fd62ea1a | 213 | { |
NYX | 0:85b3fd62ea1a | 214 | uint32_t LPGenShortWriteNoP; /*!< Generic Short Write Zero parameters Transmission |
NYX | 0:85b3fd62ea1a | 215 | This parameter can be any value of @ref DSI_LP_LPGenShortWriteNoP */ |
NYX | 0:85b3fd62ea1a | 216 | |
NYX | 0:85b3fd62ea1a | 217 | uint32_t LPGenShortWriteOneP; /*!< Generic Short Write One parameter Transmission |
NYX | 0:85b3fd62ea1a | 218 | This parameter can be any value of @ref DSI_LP_LPGenShortWriteOneP */ |
NYX | 0:85b3fd62ea1a | 219 | |
NYX | 0:85b3fd62ea1a | 220 | uint32_t LPGenShortWriteTwoP; /*!< Generic Short Write Two parameters Transmission |
NYX | 0:85b3fd62ea1a | 221 | This parameter can be any value of @ref DSI_LP_LPGenShortWriteTwoP */ |
NYX | 0:85b3fd62ea1a | 222 | |
NYX | 0:85b3fd62ea1a | 223 | uint32_t LPGenShortReadNoP; /*!< Generic Short Read Zero parameters Transmission |
NYX | 0:85b3fd62ea1a | 224 | This parameter can be any value of @ref DSI_LP_LPGenShortReadNoP */ |
NYX | 0:85b3fd62ea1a | 225 | |
NYX | 0:85b3fd62ea1a | 226 | uint32_t LPGenShortReadOneP; /*!< Generic Short Read One parameter Transmission |
NYX | 0:85b3fd62ea1a | 227 | This parameter can be any value of @ref DSI_LP_LPGenShortReadOneP */ |
NYX | 0:85b3fd62ea1a | 228 | |
NYX | 0:85b3fd62ea1a | 229 | uint32_t LPGenShortReadTwoP; /*!< Generic Short Read Two parameters Transmission |
NYX | 0:85b3fd62ea1a | 230 | This parameter can be any value of @ref DSI_LP_LPGenShortReadTwoP */ |
NYX | 0:85b3fd62ea1a | 231 | |
NYX | 0:85b3fd62ea1a | 232 | uint32_t LPGenLongWrite; /*!< Generic Long Write Transmission |
NYX | 0:85b3fd62ea1a | 233 | This parameter can be any value of @ref DSI_LP_LPGenLongWrite */ |
NYX | 0:85b3fd62ea1a | 234 | |
NYX | 0:85b3fd62ea1a | 235 | uint32_t LPDcsShortWriteNoP; /*!< DCS Short Write Zero parameters Transmission |
NYX | 0:85b3fd62ea1a | 236 | This parameter can be any value of @ref DSI_LP_LPDcsShortWriteNoP */ |
NYX | 0:85b3fd62ea1a | 237 | |
NYX | 0:85b3fd62ea1a | 238 | uint32_t LPDcsShortWriteOneP; /*!< DCS Short Write One parameter Transmission |
NYX | 0:85b3fd62ea1a | 239 | This parameter can be any value of @ref DSI_LP_LPDcsShortWriteOneP */ |
NYX | 0:85b3fd62ea1a | 240 | |
NYX | 0:85b3fd62ea1a | 241 | uint32_t LPDcsShortReadNoP; /*!< DCS Short Read Zero parameters Transmission |
NYX | 0:85b3fd62ea1a | 242 | This parameter can be any value of @ref DSI_LP_LPDcsShortReadNoP */ |
NYX | 0:85b3fd62ea1a | 243 | |
NYX | 0:85b3fd62ea1a | 244 | uint32_t LPDcsLongWrite; /*!< DCS Long Write Transmission |
NYX | 0:85b3fd62ea1a | 245 | This parameter can be any value of @ref DSI_LP_LPDcsLongWrite */ |
NYX | 0:85b3fd62ea1a | 246 | |
NYX | 0:85b3fd62ea1a | 247 | uint32_t LPMaxReadPacket; /*!< Maximum Read Packet Size Transmission |
NYX | 0:85b3fd62ea1a | 248 | This parameter can be any value of @ref DSI_LP_LPMaxReadPacket */ |
NYX | 0:85b3fd62ea1a | 249 | |
NYX | 0:85b3fd62ea1a | 250 | uint32_t AcknowledgeRequest; /*!< Acknowledge Request Enable |
NYX | 0:85b3fd62ea1a | 251 | This parameter can be any value of @ref DSI_AcknowledgeRequest */ |
NYX | 0:85b3fd62ea1a | 252 | |
NYX | 0:85b3fd62ea1a | 253 | }DSI_LPCmdTypeDef; |
NYX | 0:85b3fd62ea1a | 254 | |
NYX | 0:85b3fd62ea1a | 255 | /** |
NYX | 0:85b3fd62ea1a | 256 | * @brief DSI PHY Timings definition |
NYX | 0:85b3fd62ea1a | 257 | */ |
NYX | 0:85b3fd62ea1a | 258 | typedef struct |
NYX | 0:85b3fd62ea1a | 259 | { |
NYX | 0:85b3fd62ea1a | 260 | uint32_t ClockLaneHS2LPTime; /*!< The maximum time that the D-PHY clock lane takes to go from high-speed |
NYX | 0:85b3fd62ea1a | 261 | to low-power transmission */ |
NYX | 0:85b3fd62ea1a | 262 | |
NYX | 0:85b3fd62ea1a | 263 | uint32_t ClockLaneLP2HSTime; /*!< The maximum time that the D-PHY clock lane takes to go from low-power |
NYX | 0:85b3fd62ea1a | 264 | to high-speed transmission */ |
NYX | 0:85b3fd62ea1a | 265 | |
NYX | 0:85b3fd62ea1a | 266 | uint32_t DataLaneHS2LPTime; /*!< The maximum time that the D-PHY data lanes takes to go from high-speed |
NYX | 0:85b3fd62ea1a | 267 | to low-power transmission */ |
NYX | 0:85b3fd62ea1a | 268 | |
NYX | 0:85b3fd62ea1a | 269 | uint32_t DataLaneLP2HSTime; /*!< The maximum time that the D-PHY data lanes takes to go from low-power |
NYX | 0:85b3fd62ea1a | 270 | to high-speed transmission */ |
NYX | 0:85b3fd62ea1a | 271 | |
NYX | 0:85b3fd62ea1a | 272 | uint32_t DataLaneMaxReadTime; /*!< The maximum time required to perform a read command */ |
NYX | 0:85b3fd62ea1a | 273 | |
NYX | 0:85b3fd62ea1a | 274 | uint32_t StopWaitTime; /*!< The minimum wait period to request a High-Speed transmission after the |
NYX | 0:85b3fd62ea1a | 275 | Stop state */ |
NYX | 0:85b3fd62ea1a | 276 | |
NYX | 0:85b3fd62ea1a | 277 | }DSI_PHY_TimerTypeDef; |
NYX | 0:85b3fd62ea1a | 278 | |
NYX | 0:85b3fd62ea1a | 279 | /** |
NYX | 0:85b3fd62ea1a | 280 | * @brief DSI HOST Timeouts definition |
NYX | 0:85b3fd62ea1a | 281 | */ |
NYX | 0:85b3fd62ea1a | 282 | typedef struct |
NYX | 0:85b3fd62ea1a | 283 | { |
NYX | 0:85b3fd62ea1a | 284 | uint32_t TimeoutCkdiv; /*!< Time-out clock division */ |
NYX | 0:85b3fd62ea1a | 285 | |
NYX | 0:85b3fd62ea1a | 286 | uint32_t HighSpeedTransmissionTimeout; /*!< High-speed transmission time-out */ |
NYX | 0:85b3fd62ea1a | 287 | |
NYX | 0:85b3fd62ea1a | 288 | uint32_t LowPowerReceptionTimeout; /*!< Low-power reception time-out */ |
NYX | 0:85b3fd62ea1a | 289 | |
NYX | 0:85b3fd62ea1a | 290 | uint32_t HighSpeedReadTimeout; /*!< High-speed read time-out */ |
NYX | 0:85b3fd62ea1a | 291 | |
NYX | 0:85b3fd62ea1a | 292 | uint32_t LowPowerReadTimeout; /*!< Low-power read time-out */ |
NYX | 0:85b3fd62ea1a | 293 | |
NYX | 0:85b3fd62ea1a | 294 | uint32_t HighSpeedWriteTimeout; /*!< High-speed write time-out */ |
NYX | 0:85b3fd62ea1a | 295 | |
NYX | 0:85b3fd62ea1a | 296 | uint32_t HighSpeedWritePrespMode; /*!< High-speed write presp mode |
NYX | 0:85b3fd62ea1a | 297 | This parameter can be any value of @ref DSI_HS_PrespMode */ |
NYX | 0:85b3fd62ea1a | 298 | |
NYX | 0:85b3fd62ea1a | 299 | uint32_t LowPowerWriteTimeout; /*!< Low-speed write time-out */ |
NYX | 0:85b3fd62ea1a | 300 | |
NYX | 0:85b3fd62ea1a | 301 | uint32_t BTATimeout; /*!< BTA time-out */ |
NYX | 0:85b3fd62ea1a | 302 | |
NYX | 0:85b3fd62ea1a | 303 | }DSI_HOST_TimeoutTypeDef; |
NYX | 0:85b3fd62ea1a | 304 | |
NYX | 0:85b3fd62ea1a | 305 | /** |
NYX | 0:85b3fd62ea1a | 306 | * @brief DSI States Structure definition |
NYX | 0:85b3fd62ea1a | 307 | */ |
NYX | 0:85b3fd62ea1a | 308 | typedef enum |
NYX | 0:85b3fd62ea1a | 309 | { |
NYX | 0:85b3fd62ea1a | 310 | HAL_DSI_STATE_RESET = 0x00U, |
NYX | 0:85b3fd62ea1a | 311 | HAL_DSI_STATE_READY = 0x01U, |
NYX | 0:85b3fd62ea1a | 312 | HAL_DSI_STATE_ERROR = 0x02U, |
NYX | 0:85b3fd62ea1a | 313 | HAL_DSI_STATE_BUSY = 0x03U, |
NYX | 0:85b3fd62ea1a | 314 | HAL_DSI_STATE_TIMEOUT = 0x04U |
NYX | 0:85b3fd62ea1a | 315 | }HAL_DSI_StateTypeDef; |
NYX | 0:85b3fd62ea1a | 316 | |
NYX | 0:85b3fd62ea1a | 317 | /** |
NYX | 0:85b3fd62ea1a | 318 | * @brief DSI Handle Structure definition |
NYX | 0:85b3fd62ea1a | 319 | */ |
NYX | 0:85b3fd62ea1a | 320 | typedef struct |
NYX | 0:85b3fd62ea1a | 321 | { |
NYX | 0:85b3fd62ea1a | 322 | DSI_TypeDef *Instance; /*!< Register base address */ |
NYX | 0:85b3fd62ea1a | 323 | DSI_InitTypeDef Init; /*!< DSI required parameters */ |
NYX | 0:85b3fd62ea1a | 324 | HAL_LockTypeDef Lock; /*!< DSI peripheral status */ |
NYX | 0:85b3fd62ea1a | 325 | __IO HAL_DSI_StateTypeDef State; /*!< DSI communication state */ |
NYX | 0:85b3fd62ea1a | 326 | __IO uint32_t ErrorCode; /*!< DSI Error code */ |
NYX | 0:85b3fd62ea1a | 327 | uint32_t ErrorMsk; /*!< DSI Error monitoring mask */ |
NYX | 0:85b3fd62ea1a | 328 | }DSI_HandleTypeDef; |
NYX | 0:85b3fd62ea1a | 329 | |
NYX | 0:85b3fd62ea1a | 330 | /* Exported constants --------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 331 | /** @defgroup DSI_DCS_Command DSI DCS Command |
NYX | 0:85b3fd62ea1a | 332 | * @{ |
NYX | 0:85b3fd62ea1a | 333 | */ |
NYX | 0:85b3fd62ea1a | 334 | #define DSI_ENTER_IDLE_MODE 0x39U |
NYX | 0:85b3fd62ea1a | 335 | #define DSI_ENTER_INVERT_MODE 0x21U |
NYX | 0:85b3fd62ea1a | 336 | #define DSI_ENTER_NORMAL_MODE 0x13U |
NYX | 0:85b3fd62ea1a | 337 | #define DSI_ENTER_PARTIAL_MODE 0x12U |
NYX | 0:85b3fd62ea1a | 338 | #define DSI_ENTER_SLEEP_MODE 0x10U |
NYX | 0:85b3fd62ea1a | 339 | #define DSI_EXIT_IDLE_MODE 0x38U |
NYX | 0:85b3fd62ea1a | 340 | #define DSI_EXIT_INVERT_MODE 0x20U |
NYX | 0:85b3fd62ea1a | 341 | #define DSI_EXIT_SLEEP_MODE 0x11U |
NYX | 0:85b3fd62ea1a | 342 | #define DSI_GET_3D_CONTROL 0x3FU |
NYX | 0:85b3fd62ea1a | 343 | #define DSI_GET_ADDRESS_MODE 0x0BU |
NYX | 0:85b3fd62ea1a | 344 | #define DSI_GET_BLUE_CHANNEL 0x08U |
NYX | 0:85b3fd62ea1a | 345 | #define DSI_GET_DIAGNOSTIC_RESULT 0x0FU |
NYX | 0:85b3fd62ea1a | 346 | #define DSI_GET_DISPLAY_MODE 0x0DU |
NYX | 0:85b3fd62ea1a | 347 | #define DSI_GET_GREEN_CHANNEL 0x07U |
NYX | 0:85b3fd62ea1a | 348 | #define DSI_GET_PIXEL_FORMAT 0x0CU |
NYX | 0:85b3fd62ea1a | 349 | #define DSI_GET_POWER_MODE 0x0AU |
NYX | 0:85b3fd62ea1a | 350 | #define DSI_GET_RED_CHANNEL 0x06U |
NYX | 0:85b3fd62ea1a | 351 | #define DSI_GET_SCANLINE 0x45U |
NYX | 0:85b3fd62ea1a | 352 | #define DSI_GET_SIGNAL_MODE 0x0EU |
NYX | 0:85b3fd62ea1a | 353 | #define DSI_NOP 0x00U |
NYX | 0:85b3fd62ea1a | 354 | #define DSI_READ_DDB_CONTINUE 0xA8U |
NYX | 0:85b3fd62ea1a | 355 | #define DSI_READ_DDB_START 0xA1U |
NYX | 0:85b3fd62ea1a | 356 | #define DSI_READ_MEMORY_CONTINUE 0x3EU |
NYX | 0:85b3fd62ea1a | 357 | #define DSI_READ_MEMORY_START 0x2EU |
NYX | 0:85b3fd62ea1a | 358 | #define DSI_SET_3D_CONTROL 0x3DU |
NYX | 0:85b3fd62ea1a | 359 | #define DSI_SET_ADDRESS_MODE 0x36U |
NYX | 0:85b3fd62ea1a | 360 | #define DSI_SET_COLUMN_ADDRESS 0x2AU |
NYX | 0:85b3fd62ea1a | 361 | #define DSI_SET_DISPLAY_OFF 0x28U |
NYX | 0:85b3fd62ea1a | 362 | #define DSI_SET_DISPLAY_ON 0x29U |
NYX | 0:85b3fd62ea1a | 363 | #define DSI_SET_GAMMA_CURVE 0x26U |
NYX | 0:85b3fd62ea1a | 364 | #define DSI_SET_PAGE_ADDRESS 0x2BU |
NYX | 0:85b3fd62ea1a | 365 | #define DSI_SET_PARTIAL_COLUMNS 0x31U |
NYX | 0:85b3fd62ea1a | 366 | #define DSI_SET_PARTIAL_ROWS 0x30U |
NYX | 0:85b3fd62ea1a | 367 | #define DSI_SET_PIXEL_FORMAT 0x3AU |
NYX | 0:85b3fd62ea1a | 368 | #define DSI_SET_SCROLL_AREA 0x33U |
NYX | 0:85b3fd62ea1a | 369 | #define DSI_SET_SCROLL_START 0x37U |
NYX | 0:85b3fd62ea1a | 370 | #define DSI_SET_TEAR_OFF 0x34U |
NYX | 0:85b3fd62ea1a | 371 | #define DSI_SET_TEAR_ON 0x35U |
NYX | 0:85b3fd62ea1a | 372 | #define DSI_SET_TEAR_SCANLINE 0x44U |
NYX | 0:85b3fd62ea1a | 373 | #define DSI_SET_VSYNC_TIMING 0x40U |
NYX | 0:85b3fd62ea1a | 374 | #define DSI_SOFT_RESET 0x01U |
NYX | 0:85b3fd62ea1a | 375 | #define DSI_WRITE_LUT 0x2DU |
NYX | 0:85b3fd62ea1a | 376 | #define DSI_WRITE_MEMORY_CONTINUE 0x3CU |
NYX | 0:85b3fd62ea1a | 377 | #define DSI_WRITE_MEMORY_START 0x2CU |
NYX | 0:85b3fd62ea1a | 378 | /** |
NYX | 0:85b3fd62ea1a | 379 | * @} |
NYX | 0:85b3fd62ea1a | 380 | */ |
NYX | 0:85b3fd62ea1a | 381 | |
NYX | 0:85b3fd62ea1a | 382 | /** @defgroup DSI_Video_Mode_Type DSI Video Mode Type |
NYX | 0:85b3fd62ea1a | 383 | * @{ |
NYX | 0:85b3fd62ea1a | 384 | */ |
NYX | 0:85b3fd62ea1a | 385 | #define DSI_VID_MODE_NB_PULSES 0U |
NYX | 0:85b3fd62ea1a | 386 | #define DSI_VID_MODE_NB_EVENTS 1U |
NYX | 0:85b3fd62ea1a | 387 | #define DSI_VID_MODE_BURST 2U |
NYX | 0:85b3fd62ea1a | 388 | /** |
NYX | 0:85b3fd62ea1a | 389 | * @} |
NYX | 0:85b3fd62ea1a | 390 | */ |
NYX | 0:85b3fd62ea1a | 391 | |
NYX | 0:85b3fd62ea1a | 392 | /** @defgroup DSI_Color_Mode DSI Color Mode |
NYX | 0:85b3fd62ea1a | 393 | * @{ |
NYX | 0:85b3fd62ea1a | 394 | */ |
NYX | 0:85b3fd62ea1a | 395 | #define DSI_COLOR_MODE_FULL 0x00000000U |
NYX | 0:85b3fd62ea1a | 396 | #define DSI_COLOR_MODE_EIGHT DSI_WCR_COLM |
NYX | 0:85b3fd62ea1a | 397 | /** |
NYX | 0:85b3fd62ea1a | 398 | * @} |
NYX | 0:85b3fd62ea1a | 399 | */ |
NYX | 0:85b3fd62ea1a | 400 | |
NYX | 0:85b3fd62ea1a | 401 | /** @defgroup DSI_ShutDown DSI ShutDown |
NYX | 0:85b3fd62ea1a | 402 | * @{ |
NYX | 0:85b3fd62ea1a | 403 | */ |
NYX | 0:85b3fd62ea1a | 404 | #define DSI_DISPLAY_ON 0x00000000U |
NYX | 0:85b3fd62ea1a | 405 | #define DSI_DISPLAY_OFF DSI_WCR_SHTDN |
NYX | 0:85b3fd62ea1a | 406 | /** |
NYX | 0:85b3fd62ea1a | 407 | * @} |
NYX | 0:85b3fd62ea1a | 408 | */ |
NYX | 0:85b3fd62ea1a | 409 | |
NYX | 0:85b3fd62ea1a | 410 | /** @defgroup DSI_LP_Command DSI LP Command |
NYX | 0:85b3fd62ea1a | 411 | * @{ |
NYX | 0:85b3fd62ea1a | 412 | */ |
NYX | 0:85b3fd62ea1a | 413 | #define DSI_LP_COMMAND_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 414 | #define DSI_LP_COMMAND_ENABLE DSI_VMCR_LPCE |
NYX | 0:85b3fd62ea1a | 415 | /** |
NYX | 0:85b3fd62ea1a | 416 | * @} |
NYX | 0:85b3fd62ea1a | 417 | */ |
NYX | 0:85b3fd62ea1a | 418 | |
NYX | 0:85b3fd62ea1a | 419 | /** @defgroup DSI_LP_HFP DSI LP HFP |
NYX | 0:85b3fd62ea1a | 420 | * @{ |
NYX | 0:85b3fd62ea1a | 421 | */ |
NYX | 0:85b3fd62ea1a | 422 | #define DSI_LP_HFP_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 423 | #define DSI_LP_HFP_ENABLE DSI_VMCR_LPHFPE |
NYX | 0:85b3fd62ea1a | 424 | /** |
NYX | 0:85b3fd62ea1a | 425 | * @} |
NYX | 0:85b3fd62ea1a | 426 | */ |
NYX | 0:85b3fd62ea1a | 427 | |
NYX | 0:85b3fd62ea1a | 428 | /** @defgroup DSI_LP_HBP DSI LP HBP |
NYX | 0:85b3fd62ea1a | 429 | * @{ |
NYX | 0:85b3fd62ea1a | 430 | */ |
NYX | 0:85b3fd62ea1a | 431 | #define DSI_LP_HBP_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 432 | #define DSI_LP_HBP_ENABLE DSI_VMCR_LPHBPE |
NYX | 0:85b3fd62ea1a | 433 | /** |
NYX | 0:85b3fd62ea1a | 434 | * @} |
NYX | 0:85b3fd62ea1a | 435 | */ |
NYX | 0:85b3fd62ea1a | 436 | |
NYX | 0:85b3fd62ea1a | 437 | /** @defgroup DSI_LP_VACT DSI LP VACT |
NYX | 0:85b3fd62ea1a | 438 | * @{ |
NYX | 0:85b3fd62ea1a | 439 | */ |
NYX | 0:85b3fd62ea1a | 440 | #define DSI_LP_VACT_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 441 | #define DSI_LP_VACT_ENABLE DSI_VMCR_LPVAE |
NYX | 0:85b3fd62ea1a | 442 | /** |
NYX | 0:85b3fd62ea1a | 443 | * @} |
NYX | 0:85b3fd62ea1a | 444 | */ |
NYX | 0:85b3fd62ea1a | 445 | |
NYX | 0:85b3fd62ea1a | 446 | /** @defgroup DSI_LP_VFP DSI LP VFP |
NYX | 0:85b3fd62ea1a | 447 | * @{ |
NYX | 0:85b3fd62ea1a | 448 | */ |
NYX | 0:85b3fd62ea1a | 449 | #define DSI_LP_VFP_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 450 | #define DSI_LP_VFP_ENABLE DSI_VMCR_LPVFPE |
NYX | 0:85b3fd62ea1a | 451 | /** |
NYX | 0:85b3fd62ea1a | 452 | * @} |
NYX | 0:85b3fd62ea1a | 453 | */ |
NYX | 0:85b3fd62ea1a | 454 | |
NYX | 0:85b3fd62ea1a | 455 | /** @defgroup DSI_LP_VBP DSI LP VBP |
NYX | 0:85b3fd62ea1a | 456 | * @{ |
NYX | 0:85b3fd62ea1a | 457 | */ |
NYX | 0:85b3fd62ea1a | 458 | #define DSI_LP_VBP_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 459 | #define DSI_LP_VBP_ENABLE DSI_VMCR_LPVBPE |
NYX | 0:85b3fd62ea1a | 460 | /** |
NYX | 0:85b3fd62ea1a | 461 | * @} |
NYX | 0:85b3fd62ea1a | 462 | */ |
NYX | 0:85b3fd62ea1a | 463 | |
NYX | 0:85b3fd62ea1a | 464 | /** @defgroup DSI_LP_VSYNC DSI LP VSYNC |
NYX | 0:85b3fd62ea1a | 465 | * @{ |
NYX | 0:85b3fd62ea1a | 466 | */ |
NYX | 0:85b3fd62ea1a | 467 | #define DSI_LP_VSYNC_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 468 | #define DSI_LP_VSYNC_ENABLE DSI_VMCR_LPVSAE |
NYX | 0:85b3fd62ea1a | 469 | /** |
NYX | 0:85b3fd62ea1a | 470 | * @} |
NYX | 0:85b3fd62ea1a | 471 | */ |
NYX | 0:85b3fd62ea1a | 472 | |
NYX | 0:85b3fd62ea1a | 473 | /** @defgroup DSI_FBTA_acknowledge DSI FBTA Acknowledge |
NYX | 0:85b3fd62ea1a | 474 | * @{ |
NYX | 0:85b3fd62ea1a | 475 | */ |
NYX | 0:85b3fd62ea1a | 476 | #define DSI_FBTAA_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 477 | #define DSI_FBTAA_ENABLE DSI_VMCR_FBTAAE |
NYX | 0:85b3fd62ea1a | 478 | /** |
NYX | 0:85b3fd62ea1a | 479 | * @} |
NYX | 0:85b3fd62ea1a | 480 | */ |
NYX | 0:85b3fd62ea1a | 481 | |
NYX | 0:85b3fd62ea1a | 482 | /** @defgroup DSI_TearingEffectSource DSI Tearing Effect Source |
NYX | 0:85b3fd62ea1a | 483 | * @{ |
NYX | 0:85b3fd62ea1a | 484 | */ |
NYX | 0:85b3fd62ea1a | 485 | #define DSI_TE_DSILINK 0x00000000U |
NYX | 0:85b3fd62ea1a | 486 | #define DSI_TE_EXTERNAL DSI_WCFGR_TESRC |
NYX | 0:85b3fd62ea1a | 487 | /** |
NYX | 0:85b3fd62ea1a | 488 | * @} |
NYX | 0:85b3fd62ea1a | 489 | */ |
NYX | 0:85b3fd62ea1a | 490 | |
NYX | 0:85b3fd62ea1a | 491 | /** @defgroup DSI_TearingEffectPolarity DSI Tearing Effect Polarity |
NYX | 0:85b3fd62ea1a | 492 | * @{ |
NYX | 0:85b3fd62ea1a | 493 | */ |
NYX | 0:85b3fd62ea1a | 494 | #define DSI_TE_RISING_EDGE 0x00000000U |
NYX | 0:85b3fd62ea1a | 495 | #define DSI_TE_FALLING_EDGE DSI_WCFGR_TEPOL |
NYX | 0:85b3fd62ea1a | 496 | /** |
NYX | 0:85b3fd62ea1a | 497 | * @} |
NYX | 0:85b3fd62ea1a | 498 | */ |
NYX | 0:85b3fd62ea1a | 499 | |
NYX | 0:85b3fd62ea1a | 500 | /** @defgroup DSI_Vsync_Polarity DSI Vsync Polarity |
NYX | 0:85b3fd62ea1a | 501 | * @{ |
NYX | 0:85b3fd62ea1a | 502 | */ |
NYX | 0:85b3fd62ea1a | 503 | #define DSI_VSYNC_FALLING 0x00000000U |
NYX | 0:85b3fd62ea1a | 504 | #define DSI_VSYNC_RISING DSI_WCFGR_VSPOL |
NYX | 0:85b3fd62ea1a | 505 | /** |
NYX | 0:85b3fd62ea1a | 506 | * @} |
NYX | 0:85b3fd62ea1a | 507 | */ |
NYX | 0:85b3fd62ea1a | 508 | |
NYX | 0:85b3fd62ea1a | 509 | /** @defgroup DSI_AutomaticRefresh DSI Automatic Refresh |
NYX | 0:85b3fd62ea1a | 510 | * @{ |
NYX | 0:85b3fd62ea1a | 511 | */ |
NYX | 0:85b3fd62ea1a | 512 | #define DSI_AR_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 513 | #define DSI_AR_ENABLE DSI_WCFGR_AR |
NYX | 0:85b3fd62ea1a | 514 | /** |
NYX | 0:85b3fd62ea1a | 515 | * @} |
NYX | 0:85b3fd62ea1a | 516 | */ |
NYX | 0:85b3fd62ea1a | 517 | |
NYX | 0:85b3fd62ea1a | 518 | /** @defgroup DSI_TE_AcknowledgeRequest DSI TE Acknowledge Request |
NYX | 0:85b3fd62ea1a | 519 | * @{ |
NYX | 0:85b3fd62ea1a | 520 | */ |
NYX | 0:85b3fd62ea1a | 521 | #define DSI_TE_ACKNOWLEDGE_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 522 | #define DSI_TE_ACKNOWLEDGE_ENABLE DSI_CMCR_TEARE |
NYX | 0:85b3fd62ea1a | 523 | /** |
NYX | 0:85b3fd62ea1a | 524 | * @} |
NYX | 0:85b3fd62ea1a | 525 | */ |
NYX | 0:85b3fd62ea1a | 526 | |
NYX | 0:85b3fd62ea1a | 527 | /** @defgroup DSI_AcknowledgeRequest DSI Acknowledge Request |
NYX | 0:85b3fd62ea1a | 528 | * @{ |
NYX | 0:85b3fd62ea1a | 529 | */ |
NYX | 0:85b3fd62ea1a | 530 | #define DSI_ACKNOWLEDGE_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 531 | #define DSI_ACKNOWLEDGE_ENABLE DSI_CMCR_ARE |
NYX | 0:85b3fd62ea1a | 532 | /** |
NYX | 0:85b3fd62ea1a | 533 | * @} |
NYX | 0:85b3fd62ea1a | 534 | */ |
NYX | 0:85b3fd62ea1a | 535 | |
NYX | 0:85b3fd62ea1a | 536 | /** @defgroup DSI_LP_LPGenShortWriteNoP DSI LP LPGen Short Write NoP |
NYX | 0:85b3fd62ea1a | 537 | * @{ |
NYX | 0:85b3fd62ea1a | 538 | */ |
NYX | 0:85b3fd62ea1a | 539 | #define DSI_LP_GSW0P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 540 | #define DSI_LP_GSW0P_ENABLE DSI_CMCR_GSW0TX |
NYX | 0:85b3fd62ea1a | 541 | /** |
NYX | 0:85b3fd62ea1a | 542 | * @} |
NYX | 0:85b3fd62ea1a | 543 | */ |
NYX | 0:85b3fd62ea1a | 544 | |
NYX | 0:85b3fd62ea1a | 545 | /** @defgroup DSI_LP_LPGenShortWriteOneP DSI LP LPGen Short Write OneP |
NYX | 0:85b3fd62ea1a | 546 | * @{ |
NYX | 0:85b3fd62ea1a | 547 | */ |
NYX | 0:85b3fd62ea1a | 548 | #define DSI_LP_GSW1P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 549 | #define DSI_LP_GSW1P_ENABLE DSI_CMCR_GSW1TX |
NYX | 0:85b3fd62ea1a | 550 | /** |
NYX | 0:85b3fd62ea1a | 551 | * @} |
NYX | 0:85b3fd62ea1a | 552 | */ |
NYX | 0:85b3fd62ea1a | 553 | |
NYX | 0:85b3fd62ea1a | 554 | /** @defgroup DSI_LP_LPGenShortWriteTwoP DSI LP LPGen Short Write TwoP |
NYX | 0:85b3fd62ea1a | 555 | * @{ |
NYX | 0:85b3fd62ea1a | 556 | */ |
NYX | 0:85b3fd62ea1a | 557 | #define DSI_LP_GSW2P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 558 | #define DSI_LP_GSW2P_ENABLE DSI_CMCR_GSW2TX |
NYX | 0:85b3fd62ea1a | 559 | /** |
NYX | 0:85b3fd62ea1a | 560 | * @} |
NYX | 0:85b3fd62ea1a | 561 | */ |
NYX | 0:85b3fd62ea1a | 562 | |
NYX | 0:85b3fd62ea1a | 563 | /** @defgroup DSI_LP_LPGenShortReadNoP DSI LP LPGen Short Read NoP |
NYX | 0:85b3fd62ea1a | 564 | * @{ |
NYX | 0:85b3fd62ea1a | 565 | */ |
NYX | 0:85b3fd62ea1a | 566 | #define DSI_LP_GSR0P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 567 | #define DSI_LP_GSR0P_ENABLE DSI_CMCR_GSR0TX |
NYX | 0:85b3fd62ea1a | 568 | /** |
NYX | 0:85b3fd62ea1a | 569 | * @} |
NYX | 0:85b3fd62ea1a | 570 | */ |
NYX | 0:85b3fd62ea1a | 571 | |
NYX | 0:85b3fd62ea1a | 572 | /** @defgroup DSI_LP_LPGenShortReadOneP DSI LP LPGen Short Read OneP |
NYX | 0:85b3fd62ea1a | 573 | * @{ |
NYX | 0:85b3fd62ea1a | 574 | */ |
NYX | 0:85b3fd62ea1a | 575 | #define DSI_LP_GSR1P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 576 | #define DSI_LP_GSR1P_ENABLE DSI_CMCR_GSR1TX |
NYX | 0:85b3fd62ea1a | 577 | /** |
NYX | 0:85b3fd62ea1a | 578 | * @} |
NYX | 0:85b3fd62ea1a | 579 | */ |
NYX | 0:85b3fd62ea1a | 580 | |
NYX | 0:85b3fd62ea1a | 581 | /** @defgroup DSI_LP_LPGenShortReadTwoP DSI LP LPGen Short Read TwoP |
NYX | 0:85b3fd62ea1a | 582 | * @{ |
NYX | 0:85b3fd62ea1a | 583 | */ |
NYX | 0:85b3fd62ea1a | 584 | #define DSI_LP_GSR2P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 585 | #define DSI_LP_GSR2P_ENABLE DSI_CMCR_GSR2TX |
NYX | 0:85b3fd62ea1a | 586 | /** |
NYX | 0:85b3fd62ea1a | 587 | * @} |
NYX | 0:85b3fd62ea1a | 588 | */ |
NYX | 0:85b3fd62ea1a | 589 | |
NYX | 0:85b3fd62ea1a | 590 | /** @defgroup DSI_LP_LPGenLongWrite DSI LP LPGen LongWrite |
NYX | 0:85b3fd62ea1a | 591 | * @{ |
NYX | 0:85b3fd62ea1a | 592 | */ |
NYX | 0:85b3fd62ea1a | 593 | #define DSI_LP_GLW_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 594 | #define DSI_LP_GLW_ENABLE DSI_CMCR_GLWTX |
NYX | 0:85b3fd62ea1a | 595 | /** |
NYX | 0:85b3fd62ea1a | 596 | * @} |
NYX | 0:85b3fd62ea1a | 597 | */ |
NYX | 0:85b3fd62ea1a | 598 | |
NYX | 0:85b3fd62ea1a | 599 | /** @defgroup DSI_LP_LPDcsShortWriteNoP DSI LP LPDcs Short Write NoP |
NYX | 0:85b3fd62ea1a | 600 | * @{ |
NYX | 0:85b3fd62ea1a | 601 | */ |
NYX | 0:85b3fd62ea1a | 602 | #define DSI_LP_DSW0P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 603 | #define DSI_LP_DSW0P_ENABLE DSI_CMCR_DSW0TX |
NYX | 0:85b3fd62ea1a | 604 | /** |
NYX | 0:85b3fd62ea1a | 605 | * @} |
NYX | 0:85b3fd62ea1a | 606 | */ |
NYX | 0:85b3fd62ea1a | 607 | |
NYX | 0:85b3fd62ea1a | 608 | /** @defgroup DSI_LP_LPDcsShortWriteOneP DSI LP LPDcs Short Write OneP |
NYX | 0:85b3fd62ea1a | 609 | * @{ |
NYX | 0:85b3fd62ea1a | 610 | */ |
NYX | 0:85b3fd62ea1a | 611 | #define DSI_LP_DSW1P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 612 | #define DSI_LP_DSW1P_ENABLE DSI_CMCR_DSW1TX |
NYX | 0:85b3fd62ea1a | 613 | /** |
NYX | 0:85b3fd62ea1a | 614 | * @} |
NYX | 0:85b3fd62ea1a | 615 | */ |
NYX | 0:85b3fd62ea1a | 616 | |
NYX | 0:85b3fd62ea1a | 617 | /** @defgroup DSI_LP_LPDcsShortReadNoP DSI LP LPDcs Short Read NoP |
NYX | 0:85b3fd62ea1a | 618 | * @{ |
NYX | 0:85b3fd62ea1a | 619 | */ |
NYX | 0:85b3fd62ea1a | 620 | #define DSI_LP_DSR0P_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 621 | #define DSI_LP_DSR0P_ENABLE DSI_CMCR_DSR0TX |
NYX | 0:85b3fd62ea1a | 622 | /** |
NYX | 0:85b3fd62ea1a | 623 | * @} |
NYX | 0:85b3fd62ea1a | 624 | */ |
NYX | 0:85b3fd62ea1a | 625 | |
NYX | 0:85b3fd62ea1a | 626 | /** @defgroup DSI_LP_LPDcsLongWrite DSI LP LPDcs Long Write |
NYX | 0:85b3fd62ea1a | 627 | * @{ |
NYX | 0:85b3fd62ea1a | 628 | */ |
NYX | 0:85b3fd62ea1a | 629 | #define DSI_LP_DLW_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 630 | #define DSI_LP_DLW_ENABLE DSI_CMCR_DLWTX |
NYX | 0:85b3fd62ea1a | 631 | /** |
NYX | 0:85b3fd62ea1a | 632 | * @} |
NYX | 0:85b3fd62ea1a | 633 | */ |
NYX | 0:85b3fd62ea1a | 634 | |
NYX | 0:85b3fd62ea1a | 635 | /** @defgroup DSI_LP_LPMaxReadPacket DSI LP LPMax Read Packet |
NYX | 0:85b3fd62ea1a | 636 | * @{ |
NYX | 0:85b3fd62ea1a | 637 | */ |
NYX | 0:85b3fd62ea1a | 638 | #define DSI_LP_MRDP_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 639 | #define DSI_LP_MRDP_ENABLE DSI_CMCR_MRDPS |
NYX | 0:85b3fd62ea1a | 640 | /** |
NYX | 0:85b3fd62ea1a | 641 | * @} |
NYX | 0:85b3fd62ea1a | 642 | */ |
NYX | 0:85b3fd62ea1a | 643 | |
NYX | 0:85b3fd62ea1a | 644 | /** @defgroup DSI_HS_PrespMode DSI HS Presp Mode |
NYX | 0:85b3fd62ea1a | 645 | * @{ |
NYX | 0:85b3fd62ea1a | 646 | */ |
NYX | 0:85b3fd62ea1a | 647 | #define DSI_HS_PM_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 648 | #define DSI_HS_PM_ENABLE DSI_TCCR3_PM |
NYX | 0:85b3fd62ea1a | 649 | /** |
NYX | 0:85b3fd62ea1a | 650 | * @} |
NYX | 0:85b3fd62ea1a | 651 | */ |
NYX | 0:85b3fd62ea1a | 652 | |
NYX | 0:85b3fd62ea1a | 653 | |
NYX | 0:85b3fd62ea1a | 654 | /** @defgroup DSI_Automatic_Clk_Lane_Control DSI Automatic Clk Lane Control |
NYX | 0:85b3fd62ea1a | 655 | * @{ |
NYX | 0:85b3fd62ea1a | 656 | */ |
NYX | 0:85b3fd62ea1a | 657 | #define DSI_AUTO_CLK_LANE_CTRL_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 658 | #define DSI_AUTO_CLK_LANE_CTRL_ENABLE DSI_CLCR_ACR |
NYX | 0:85b3fd62ea1a | 659 | /** |
NYX | 0:85b3fd62ea1a | 660 | * @} |
NYX | 0:85b3fd62ea1a | 661 | */ |
NYX | 0:85b3fd62ea1a | 662 | |
NYX | 0:85b3fd62ea1a | 663 | /** @defgroup DSI_Number_Of_Lanes DSI Number Of Lanes |
NYX | 0:85b3fd62ea1a | 664 | * @{ |
NYX | 0:85b3fd62ea1a | 665 | */ |
NYX | 0:85b3fd62ea1a | 666 | #define DSI_ONE_DATA_LANE 0U |
NYX | 0:85b3fd62ea1a | 667 | #define DSI_TWO_DATA_LANES 1U |
NYX | 0:85b3fd62ea1a | 668 | /** |
NYX | 0:85b3fd62ea1a | 669 | * @} |
NYX | 0:85b3fd62ea1a | 670 | */ |
NYX | 0:85b3fd62ea1a | 671 | |
NYX | 0:85b3fd62ea1a | 672 | /** @defgroup DSI_FlowControl DSI Flow Control |
NYX | 0:85b3fd62ea1a | 673 | * @{ |
NYX | 0:85b3fd62ea1a | 674 | */ |
NYX | 0:85b3fd62ea1a | 675 | #define DSI_FLOW_CONTROL_CRC_RX DSI_PCR_CRCRXE |
NYX | 0:85b3fd62ea1a | 676 | #define DSI_FLOW_CONTROL_ECC_RX DSI_PCR_ECCRXE |
NYX | 0:85b3fd62ea1a | 677 | #define DSI_FLOW_CONTROL_BTA DSI_PCR_BTAE |
NYX | 0:85b3fd62ea1a | 678 | #define DSI_FLOW_CONTROL_EOTP_RX DSI_PCR_ETRXE |
NYX | 0:85b3fd62ea1a | 679 | #define DSI_FLOW_CONTROL_EOTP_TX DSI_PCR_ETTXE |
NYX | 0:85b3fd62ea1a | 680 | #define DSI_FLOW_CONTROL_ALL (DSI_FLOW_CONTROL_CRC_RX | DSI_FLOW_CONTROL_ECC_RX | \ |
NYX | 0:85b3fd62ea1a | 681 | DSI_FLOW_CONTROL_BTA | DSI_FLOW_CONTROL_EOTP_RX | \ |
NYX | 0:85b3fd62ea1a | 682 | DSI_FLOW_CONTROL_EOTP_TX) |
NYX | 0:85b3fd62ea1a | 683 | /** |
NYX | 0:85b3fd62ea1a | 684 | * @} |
NYX | 0:85b3fd62ea1a | 685 | */ |
NYX | 0:85b3fd62ea1a | 686 | |
NYX | 0:85b3fd62ea1a | 687 | /** @defgroup DSI_Color_Coding DSI Color Coding |
NYX | 0:85b3fd62ea1a | 688 | * @{ |
NYX | 0:85b3fd62ea1a | 689 | */ |
NYX | 0:85b3fd62ea1a | 690 | #define DSI_RGB565 0x00000000U /*!< The values 0x00000001 and 0x00000002 can also be used for the RGB565 color mode configuration */ |
NYX | 0:85b3fd62ea1a | 691 | #define DSI_RGB666 0x00000003U /*!< The value 0x00000004 can also be used for the RGB666 color mode configuration */ |
NYX | 0:85b3fd62ea1a | 692 | #define DSI_RGB888 0x00000005U |
NYX | 0:85b3fd62ea1a | 693 | /** |
NYX | 0:85b3fd62ea1a | 694 | * @} |
NYX | 0:85b3fd62ea1a | 695 | */ |
NYX | 0:85b3fd62ea1a | 696 | |
NYX | 0:85b3fd62ea1a | 697 | /** @defgroup DSI_LooselyPacked DSI Loosely Packed |
NYX | 0:85b3fd62ea1a | 698 | * @{ |
NYX | 0:85b3fd62ea1a | 699 | */ |
NYX | 0:85b3fd62ea1a | 700 | #define DSI_LOOSELY_PACKED_ENABLE DSI_LCOLCR_LPE |
NYX | 0:85b3fd62ea1a | 701 | #define DSI_LOOSELY_PACKED_DISABLE 0x00000000U |
NYX | 0:85b3fd62ea1a | 702 | /** |
NYX | 0:85b3fd62ea1a | 703 | * @} |
NYX | 0:85b3fd62ea1a | 704 | */ |
NYX | 0:85b3fd62ea1a | 705 | |
NYX | 0:85b3fd62ea1a | 706 | /** @defgroup DSI_HSYNC_Polarity DSI HSYNC Polarity |
NYX | 0:85b3fd62ea1a | 707 | * @{ |
NYX | 0:85b3fd62ea1a | 708 | */ |
NYX | 0:85b3fd62ea1a | 709 | #define DSI_HSYNC_ACTIVE_HIGH 0x00000000U |
NYX | 0:85b3fd62ea1a | 710 | #define DSI_HSYNC_ACTIVE_LOW DSI_LPCR_HSP |
NYX | 0:85b3fd62ea1a | 711 | /** |
NYX | 0:85b3fd62ea1a | 712 | * @} |
NYX | 0:85b3fd62ea1a | 713 | */ |
NYX | 0:85b3fd62ea1a | 714 | |
NYX | 0:85b3fd62ea1a | 715 | /** @defgroup DSI_VSYNC_Active_Polarity DSI VSYNC Active Polarity |
NYX | 0:85b3fd62ea1a | 716 | * @{ |
NYX | 0:85b3fd62ea1a | 717 | */ |
NYX | 0:85b3fd62ea1a | 718 | #define DSI_VSYNC_ACTIVE_HIGH 0x00000000U |
NYX | 0:85b3fd62ea1a | 719 | #define DSI_VSYNC_ACTIVE_LOW DSI_LPCR_VSP |
NYX | 0:85b3fd62ea1a | 720 | /** |
NYX | 0:85b3fd62ea1a | 721 | * @} |
NYX | 0:85b3fd62ea1a | 722 | */ |
NYX | 0:85b3fd62ea1a | 723 | |
NYX | 0:85b3fd62ea1a | 724 | /** @defgroup DSI_DATA_ENABLE_Polarity DSI DATA ENABLE Polarity |
NYX | 0:85b3fd62ea1a | 725 | * @{ |
NYX | 0:85b3fd62ea1a | 726 | */ |
NYX | 0:85b3fd62ea1a | 727 | #define DSI_DATA_ENABLE_ACTIVE_HIGH 0x00000000U |
NYX | 0:85b3fd62ea1a | 728 | #define DSI_DATA_ENABLE_ACTIVE_LOW DSI_LPCR_DEP |
NYX | 0:85b3fd62ea1a | 729 | /** |
NYX | 0:85b3fd62ea1a | 730 | * @} |
NYX | 0:85b3fd62ea1a | 731 | */ |
NYX | 0:85b3fd62ea1a | 732 | |
NYX | 0:85b3fd62ea1a | 733 | /** @defgroup DSI_PLL_IDF DSI PLL IDF |
NYX | 0:85b3fd62ea1a | 734 | * @{ |
NYX | 0:85b3fd62ea1a | 735 | */ |
NYX | 0:85b3fd62ea1a | 736 | #define DSI_PLL_IN_DIV1 0x00000001U |
NYX | 0:85b3fd62ea1a | 737 | #define DSI_PLL_IN_DIV2 0x00000002U |
NYX | 0:85b3fd62ea1a | 738 | #define DSI_PLL_IN_DIV3 0x00000003U |
NYX | 0:85b3fd62ea1a | 739 | #define DSI_PLL_IN_DIV4 0x00000004U |
NYX | 0:85b3fd62ea1a | 740 | #define DSI_PLL_IN_DIV5 0x00000005U |
NYX | 0:85b3fd62ea1a | 741 | #define DSI_PLL_IN_DIV6 0x00000006U |
NYX | 0:85b3fd62ea1a | 742 | #define DSI_PLL_IN_DIV7 0x00000007U |
NYX | 0:85b3fd62ea1a | 743 | /** |
NYX | 0:85b3fd62ea1a | 744 | * @} |
NYX | 0:85b3fd62ea1a | 745 | */ |
NYX | 0:85b3fd62ea1a | 746 | |
NYX | 0:85b3fd62ea1a | 747 | /** @defgroup DSI_PLL_ODF DSI PLL ODF |
NYX | 0:85b3fd62ea1a | 748 | * @{ |
NYX | 0:85b3fd62ea1a | 749 | */ |
NYX | 0:85b3fd62ea1a | 750 | #define DSI_PLL_OUT_DIV1 0x00000000U |
NYX | 0:85b3fd62ea1a | 751 | #define DSI_PLL_OUT_DIV2 0x00000001U |
NYX | 0:85b3fd62ea1a | 752 | #define DSI_PLL_OUT_DIV4 0x00000002U |
NYX | 0:85b3fd62ea1a | 753 | #define DSI_PLL_OUT_DIV8 0x00000003U |
NYX | 0:85b3fd62ea1a | 754 | /** |
NYX | 0:85b3fd62ea1a | 755 | * @} |
NYX | 0:85b3fd62ea1a | 756 | */ |
NYX | 0:85b3fd62ea1a | 757 | |
NYX | 0:85b3fd62ea1a | 758 | /** @defgroup DSI_Flags DSI Flags |
NYX | 0:85b3fd62ea1a | 759 | * @{ |
NYX | 0:85b3fd62ea1a | 760 | */ |
NYX | 0:85b3fd62ea1a | 761 | #define DSI_FLAG_TE DSI_WISR_TEIF |
NYX | 0:85b3fd62ea1a | 762 | #define DSI_FLAG_ER DSI_WISR_ERIF |
NYX | 0:85b3fd62ea1a | 763 | #define DSI_FLAG_BUSY DSI_WISR_BUSY |
NYX | 0:85b3fd62ea1a | 764 | #define DSI_FLAG_PLLLS DSI_WISR_PLLLS |
NYX | 0:85b3fd62ea1a | 765 | #define DSI_FLAG_PLLL DSI_WISR_PLLLIF |
NYX | 0:85b3fd62ea1a | 766 | #define DSI_FLAG_PLLU DSI_WISR_PLLUIF |
NYX | 0:85b3fd62ea1a | 767 | #define DSI_FLAG_RRS DSI_WISR_RRS |
NYX | 0:85b3fd62ea1a | 768 | #define DSI_FLAG_RR DSI_WISR_RRIF |
NYX | 0:85b3fd62ea1a | 769 | /** |
NYX | 0:85b3fd62ea1a | 770 | * @} |
NYX | 0:85b3fd62ea1a | 771 | */ |
NYX | 0:85b3fd62ea1a | 772 | |
NYX | 0:85b3fd62ea1a | 773 | /** @defgroup DSI_Interrupts DSI Interrupts |
NYX | 0:85b3fd62ea1a | 774 | * @{ |
NYX | 0:85b3fd62ea1a | 775 | */ |
NYX | 0:85b3fd62ea1a | 776 | #define DSI_IT_TE DSI_WIER_TEIE |
NYX | 0:85b3fd62ea1a | 777 | #define DSI_IT_ER DSI_WIER_ERIE |
NYX | 0:85b3fd62ea1a | 778 | #define DSI_IT_PLLL DSI_WIER_PLLLIE |
NYX | 0:85b3fd62ea1a | 779 | #define DSI_IT_PLLU DSI_WIER_PLLUIE |
NYX | 0:85b3fd62ea1a | 780 | #define DSI_IT_RR DSI_WIER_RRIE |
NYX | 0:85b3fd62ea1a | 781 | /** |
NYX | 0:85b3fd62ea1a | 782 | * @} |
NYX | 0:85b3fd62ea1a | 783 | */ |
NYX | 0:85b3fd62ea1a | 784 | |
NYX | 0:85b3fd62ea1a | 785 | /** @defgroup DSI_SHORT_WRITE_PKT_Data_Type DSI SHORT WRITE PKT Data Type |
NYX | 0:85b3fd62ea1a | 786 | * @{ |
NYX | 0:85b3fd62ea1a | 787 | */ |
NYX | 0:85b3fd62ea1a | 788 | #define DSI_DCS_SHORT_PKT_WRITE_P0 0x00000005U /*!< DCS short write, no parameters */ |
NYX | 0:85b3fd62ea1a | 789 | #define DSI_DCS_SHORT_PKT_WRITE_P1 0x00000015U /*!< DCS short write, one parameter */ |
NYX | 0:85b3fd62ea1a | 790 | #define DSI_GEN_SHORT_PKT_WRITE_P0 0x00000003U /*!< Generic short write, no parameters */ |
NYX | 0:85b3fd62ea1a | 791 | #define DSI_GEN_SHORT_PKT_WRITE_P1 0x00000013U /*!< Generic short write, one parameter */ |
NYX | 0:85b3fd62ea1a | 792 | #define DSI_GEN_SHORT_PKT_WRITE_P2 0x00000023U /*!< Generic short write, two parameters */ |
NYX | 0:85b3fd62ea1a | 793 | /** |
NYX | 0:85b3fd62ea1a | 794 | * @} |
NYX | 0:85b3fd62ea1a | 795 | */ |
NYX | 0:85b3fd62ea1a | 796 | |
NYX | 0:85b3fd62ea1a | 797 | /** @defgroup DSI_LONG_WRITE_PKT_Data_Type DSI LONG WRITE PKT Data Type |
NYX | 0:85b3fd62ea1a | 798 | * @{ |
NYX | 0:85b3fd62ea1a | 799 | */ |
NYX | 0:85b3fd62ea1a | 800 | #define DSI_DCS_LONG_PKT_WRITE 0x00000039U /*!< DCS long write */ |
NYX | 0:85b3fd62ea1a | 801 | #define DSI_GEN_LONG_PKT_WRITE 0x00000029U /*!< Generic long write */ |
NYX | 0:85b3fd62ea1a | 802 | /** |
NYX | 0:85b3fd62ea1a | 803 | * @} |
NYX | 0:85b3fd62ea1a | 804 | */ |
NYX | 0:85b3fd62ea1a | 805 | |
NYX | 0:85b3fd62ea1a | 806 | /** @defgroup DSI_SHORT_READ_PKT_Data_Type DSI SHORT READ PKT Data Type |
NYX | 0:85b3fd62ea1a | 807 | * @{ |
NYX | 0:85b3fd62ea1a | 808 | */ |
NYX | 0:85b3fd62ea1a | 809 | #define DSI_DCS_SHORT_PKT_READ 0x00000006U /*!< DCS short read */ |
NYX | 0:85b3fd62ea1a | 810 | #define DSI_GEN_SHORT_PKT_READ_P0 0x00000004U /*!< Generic short read, no parameters */ |
NYX | 0:85b3fd62ea1a | 811 | #define DSI_GEN_SHORT_PKT_READ_P1 0x00000014U /*!< Generic short read, one parameter */ |
NYX | 0:85b3fd62ea1a | 812 | #define DSI_GEN_SHORT_PKT_READ_P2 0x00000024U /*!< Generic short read, two parameters */ |
NYX | 0:85b3fd62ea1a | 813 | /** |
NYX | 0:85b3fd62ea1a | 814 | * @} |
NYX | 0:85b3fd62ea1a | 815 | */ |
NYX | 0:85b3fd62ea1a | 816 | |
NYX | 0:85b3fd62ea1a | 817 | /** @defgroup DSI_Error_Data_Type DSI Error Data Type |
NYX | 0:85b3fd62ea1a | 818 | * @{ |
NYX | 0:85b3fd62ea1a | 819 | */ |
NYX | 0:85b3fd62ea1a | 820 | #define HAL_DSI_ERROR_NONE 0U |
NYX | 0:85b3fd62ea1a | 821 | #define HAL_DSI_ERROR_ACK 0x00000001U /*!< acknowledge errors */ |
NYX | 0:85b3fd62ea1a | 822 | #define HAL_DSI_ERROR_PHY 0x00000002U /*!< PHY related errors */ |
NYX | 0:85b3fd62ea1a | 823 | #define HAL_DSI_ERROR_TX 0x00000004U /*!< transmission error */ |
NYX | 0:85b3fd62ea1a | 824 | #define HAL_DSI_ERROR_RX 0x00000008U /*!< reception error */ |
NYX | 0:85b3fd62ea1a | 825 | #define HAL_DSI_ERROR_ECC 0x00000010U /*!< ECC errors */ |
NYX | 0:85b3fd62ea1a | 826 | #define HAL_DSI_ERROR_CRC 0x00000020U /*!< CRC error */ |
NYX | 0:85b3fd62ea1a | 827 | #define HAL_DSI_ERROR_PSE 0x00000040U /*!< Packet Size error */ |
NYX | 0:85b3fd62ea1a | 828 | #define HAL_DSI_ERROR_EOT 0x00000080U /*!< End Of Transmission error */ |
NYX | 0:85b3fd62ea1a | 829 | #define HAL_DSI_ERROR_OVF 0x00000100U /*!< FIFO overflow error */ |
NYX | 0:85b3fd62ea1a | 830 | #define HAL_DSI_ERROR_GEN 0x00000200U /*!< Generic FIFO related errors */ |
NYX | 0:85b3fd62ea1a | 831 | /** |
NYX | 0:85b3fd62ea1a | 832 | * @} |
NYX | 0:85b3fd62ea1a | 833 | */ |
NYX | 0:85b3fd62ea1a | 834 | |
NYX | 0:85b3fd62ea1a | 835 | /** @defgroup DSI_Lane_Group DSI Lane Group |
NYX | 0:85b3fd62ea1a | 836 | * @{ |
NYX | 0:85b3fd62ea1a | 837 | */ |
NYX | 0:85b3fd62ea1a | 838 | #define DSI_CLOCK_LANE 0x00000000U |
NYX | 0:85b3fd62ea1a | 839 | #define DSI_DATA_LANES 0x00000001U |
NYX | 0:85b3fd62ea1a | 840 | /** |
NYX | 0:85b3fd62ea1a | 841 | * @} |
NYX | 0:85b3fd62ea1a | 842 | */ |
NYX | 0:85b3fd62ea1a | 843 | |
NYX | 0:85b3fd62ea1a | 844 | /** @defgroup DSI_Communication_Delay DSI Communication Delay |
NYX | 0:85b3fd62ea1a | 845 | * @{ |
NYX | 0:85b3fd62ea1a | 846 | */ |
NYX | 0:85b3fd62ea1a | 847 | #define DSI_SLEW_RATE_HSTX 0x00000000U |
NYX | 0:85b3fd62ea1a | 848 | #define DSI_SLEW_RATE_LPTX 0x00000001U |
NYX | 0:85b3fd62ea1a | 849 | #define DSI_HS_DELAY 0x00000002U |
NYX | 0:85b3fd62ea1a | 850 | /** |
NYX | 0:85b3fd62ea1a | 851 | * @} |
NYX | 0:85b3fd62ea1a | 852 | */ |
NYX | 0:85b3fd62ea1a | 853 | |
NYX | 0:85b3fd62ea1a | 854 | /** @defgroup DSI_CustomLane DSI CustomLane |
NYX | 0:85b3fd62ea1a | 855 | * @{ |
NYX | 0:85b3fd62ea1a | 856 | */ |
NYX | 0:85b3fd62ea1a | 857 | #define DSI_SWAP_LANE_PINS 0x00000000U |
NYX | 0:85b3fd62ea1a | 858 | #define DSI_INVERT_HS_SIGNAL 0x00000001U |
NYX | 0:85b3fd62ea1a | 859 | /** |
NYX | 0:85b3fd62ea1a | 860 | * @} |
NYX | 0:85b3fd62ea1a | 861 | */ |
NYX | 0:85b3fd62ea1a | 862 | |
NYX | 0:85b3fd62ea1a | 863 | /** @defgroup DSI_Lane_Select DSI Lane Select |
NYX | 0:85b3fd62ea1a | 864 | * @{ |
NYX | 0:85b3fd62ea1a | 865 | */ |
NYX | 0:85b3fd62ea1a | 866 | #define DSI_CLOCK_LANE 0x00000000U |
NYX | 0:85b3fd62ea1a | 867 | #define DSI_DATA_LANE0 0x00000001U |
NYX | 0:85b3fd62ea1a | 868 | #define DSI_DATA_LANE1 0x00000002U |
NYX | 0:85b3fd62ea1a | 869 | /** |
NYX | 0:85b3fd62ea1a | 870 | * @} |
NYX | 0:85b3fd62ea1a | 871 | */ |
NYX | 0:85b3fd62ea1a | 872 | |
NYX | 0:85b3fd62ea1a | 873 | /** @defgroup DSI_PHY_Timing DSI PHY Timing |
NYX | 0:85b3fd62ea1a | 874 | * @{ |
NYX | 0:85b3fd62ea1a | 875 | */ |
NYX | 0:85b3fd62ea1a | 876 | #define DSI_TCLK_POST 0x00000000U |
NYX | 0:85b3fd62ea1a | 877 | #define DSI_TLPX_CLK 0x00000001U |
NYX | 0:85b3fd62ea1a | 878 | #define DSI_THS_EXIT 0x00000002U |
NYX | 0:85b3fd62ea1a | 879 | #define DSI_TLPX_DATA 0x00000003U |
NYX | 0:85b3fd62ea1a | 880 | #define DSI_THS_ZERO 0x00000004U |
NYX | 0:85b3fd62ea1a | 881 | #define DSI_THS_TRAIL 0x00000005U |
NYX | 0:85b3fd62ea1a | 882 | #define DSI_THS_PREPARE 0x00000006U |
NYX | 0:85b3fd62ea1a | 883 | #define DSI_TCLK_ZERO 0x00000007U |
NYX | 0:85b3fd62ea1a | 884 | #define DSI_TCLK_PREPARE 0x00000008U |
NYX | 0:85b3fd62ea1a | 885 | /** |
NYX | 0:85b3fd62ea1a | 886 | * @} |
NYX | 0:85b3fd62ea1a | 887 | */ |
NYX | 0:85b3fd62ea1a | 888 | |
NYX | 0:85b3fd62ea1a | 889 | /* Exported macros -----------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 890 | /** |
NYX | 0:85b3fd62ea1a | 891 | * @brief Enables the DSI host. |
NYX | 0:85b3fd62ea1a | 892 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 893 | * @retval None. |
NYX | 0:85b3fd62ea1a | 894 | */ |
NYX | 0:85b3fd62ea1a | 895 | #define __HAL_DSI_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DSI_CR_EN) |
NYX | 0:85b3fd62ea1a | 896 | |
NYX | 0:85b3fd62ea1a | 897 | /** |
NYX | 0:85b3fd62ea1a | 898 | * @brief Disables the DSI host. |
NYX | 0:85b3fd62ea1a | 899 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 900 | * @retval None. |
NYX | 0:85b3fd62ea1a | 901 | */ |
NYX | 0:85b3fd62ea1a | 902 | #define __HAL_DSI_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~DSI_CR_EN) |
NYX | 0:85b3fd62ea1a | 903 | |
NYX | 0:85b3fd62ea1a | 904 | /** |
NYX | 0:85b3fd62ea1a | 905 | * @brief Enables the DSI wrapper. |
NYX | 0:85b3fd62ea1a | 906 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 907 | * @retval None. |
NYX | 0:85b3fd62ea1a | 908 | */ |
NYX | 0:85b3fd62ea1a | 909 | #define __HAL_DSI_WRAPPER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->WCR |= DSI_WCR_DSIEN) |
NYX | 0:85b3fd62ea1a | 910 | |
NYX | 0:85b3fd62ea1a | 911 | /** |
NYX | 0:85b3fd62ea1a | 912 | * @brief Disable the DSI wrapper. |
NYX | 0:85b3fd62ea1a | 913 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 914 | * @retval None. |
NYX | 0:85b3fd62ea1a | 915 | */ |
NYX | 0:85b3fd62ea1a | 916 | #define __HAL_DSI_WRAPPER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->WCR &= ~DSI_WCR_DSIEN) |
NYX | 0:85b3fd62ea1a | 917 | |
NYX | 0:85b3fd62ea1a | 918 | /** |
NYX | 0:85b3fd62ea1a | 919 | * @brief Enables the DSI PLL. |
NYX | 0:85b3fd62ea1a | 920 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 921 | * @retval None. |
NYX | 0:85b3fd62ea1a | 922 | */ |
NYX | 0:85b3fd62ea1a | 923 | #define __HAL_DSI_PLL_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->WRPCR |= DSI_WRPCR_PLLEN) |
NYX | 0:85b3fd62ea1a | 924 | |
NYX | 0:85b3fd62ea1a | 925 | /** |
NYX | 0:85b3fd62ea1a | 926 | * @brief Disables the DSI PLL. |
NYX | 0:85b3fd62ea1a | 927 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 928 | * @retval None. |
NYX | 0:85b3fd62ea1a | 929 | */ |
NYX | 0:85b3fd62ea1a | 930 | #define __HAL_DSI_PLL_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->WRPCR &= ~DSI_WRPCR_PLLEN) |
NYX | 0:85b3fd62ea1a | 931 | |
NYX | 0:85b3fd62ea1a | 932 | /** |
NYX | 0:85b3fd62ea1a | 933 | * @brief Enables the DSI regulator. |
NYX | 0:85b3fd62ea1a | 934 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 935 | * @retval None. |
NYX | 0:85b3fd62ea1a | 936 | */ |
NYX | 0:85b3fd62ea1a | 937 | #define __HAL_DSI_REG_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->WRPCR |= DSI_WRPCR_REGEN) |
NYX | 0:85b3fd62ea1a | 938 | |
NYX | 0:85b3fd62ea1a | 939 | /** |
NYX | 0:85b3fd62ea1a | 940 | * @brief Disables the DSI regulator. |
NYX | 0:85b3fd62ea1a | 941 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 942 | * @retval None. |
NYX | 0:85b3fd62ea1a | 943 | */ |
NYX | 0:85b3fd62ea1a | 944 | #define __HAL_DSI_REG_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->WRPCR &= ~DSI_WRPCR_REGEN) |
NYX | 0:85b3fd62ea1a | 945 | |
NYX | 0:85b3fd62ea1a | 946 | /** |
NYX | 0:85b3fd62ea1a | 947 | * @brief Get the DSI pending flags. |
NYX | 0:85b3fd62ea1a | 948 | * @param __HANDLE__: DSI handle. |
NYX | 0:85b3fd62ea1a | 949 | * @param __FLAG__: Get the specified flag. |
NYX | 0:85b3fd62ea1a | 950 | * This parameter can be any combination of the following values: |
NYX | 0:85b3fd62ea1a | 951 | * @arg DSI_FLAG_TE : Tearing Effect Interrupt Flag |
NYX | 0:85b3fd62ea1a | 952 | * @arg DSI_FLAG_ER : End of Refresh Interrupt Flag |
NYX | 0:85b3fd62ea1a | 953 | * @arg DSI_FLAG_BUSY : Busy Flag |
NYX | 0:85b3fd62ea1a | 954 | * @arg DSI_FLAG_PLLLS: PLL Lock Status |
NYX | 0:85b3fd62ea1a | 955 | * @arg DSI_FLAG_PLLL : PLL Lock Interrupt Flag |
NYX | 0:85b3fd62ea1a | 956 | * @arg DSI_FLAG_PLLU : PLL Unlock Interrupt Flag |
NYX | 0:85b3fd62ea1a | 957 | * @arg DSI_FLAG_RRS : Regulator Ready Flag |
NYX | 0:85b3fd62ea1a | 958 | * @arg DSI_FLAG_RR : Regulator Ready Interrupt Flag |
NYX | 0:85b3fd62ea1a | 959 | * @retval The state of FLAG (SET or RESET). |
NYX | 0:85b3fd62ea1a | 960 | */ |
NYX | 0:85b3fd62ea1a | 961 | #define __HAL_DSI_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->WISR & (__FLAG__)) |
NYX | 0:85b3fd62ea1a | 962 | |
NYX | 0:85b3fd62ea1a | 963 | /** |
NYX | 0:85b3fd62ea1a | 964 | * @brief Clears the DSI pending flags. |
NYX | 0:85b3fd62ea1a | 965 | * @param __HANDLE__: DSI handle. |
NYX | 0:85b3fd62ea1a | 966 | * @param __FLAG__: specifies the flag to clear. |
NYX | 0:85b3fd62ea1a | 967 | * This parameter can be any combination of the following values: |
NYX | 0:85b3fd62ea1a | 968 | * @arg DSI_FLAG_TE : Tearing Effect Interrupt Flag |
NYX | 0:85b3fd62ea1a | 969 | * @arg DSI_FLAG_ER : End of Refresh Interrupt Flag |
NYX | 0:85b3fd62ea1a | 970 | * @arg DSI_FLAG_PLLL : PLL Lock Interrupt Flag |
NYX | 0:85b3fd62ea1a | 971 | * @arg DSI_FLAG_PLLU : PLL Unlock Interrupt Flag |
NYX | 0:85b3fd62ea1a | 972 | * @arg DSI_FLAG_RR : Regulator Ready Interrupt Flag |
NYX | 0:85b3fd62ea1a | 973 | * @retval None |
NYX | 0:85b3fd62ea1a | 974 | */ |
NYX | 0:85b3fd62ea1a | 975 | #define __HAL_DSI_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->WIFCR = (__FLAG__)) |
NYX | 0:85b3fd62ea1a | 976 | |
NYX | 0:85b3fd62ea1a | 977 | /** |
NYX | 0:85b3fd62ea1a | 978 | * @brief Enables the specified DSI interrupts. |
NYX | 0:85b3fd62ea1a | 979 | * @param __HANDLE__: DSI handle. |
NYX | 0:85b3fd62ea1a | 980 | * @param __INTERRUPT__: specifies the DSI interrupt sources to be enabled. |
NYX | 0:85b3fd62ea1a | 981 | * This parameter can be any combination of the following values: |
NYX | 0:85b3fd62ea1a | 982 | * @arg DSI_IT_TE : Tearing Effect Interrupt |
NYX | 0:85b3fd62ea1a | 983 | * @arg DSI_IT_ER : End of Refresh Interrupt |
NYX | 0:85b3fd62ea1a | 984 | * @arg DSI_IT_PLLL: PLL Lock Interrupt |
NYX | 0:85b3fd62ea1a | 985 | * @arg DSI_IT_PLLU: PLL Unlock Interrupt |
NYX | 0:85b3fd62ea1a | 986 | * @arg DSI_IT_RR : Regulator Ready Interrupt |
NYX | 0:85b3fd62ea1a | 987 | * @retval None |
NYX | 0:85b3fd62ea1a | 988 | */ |
NYX | 0:85b3fd62ea1a | 989 | #define __HAL_DSI_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->WIER |= (__INTERRUPT__)) |
NYX | 0:85b3fd62ea1a | 990 | |
NYX | 0:85b3fd62ea1a | 991 | /** |
NYX | 0:85b3fd62ea1a | 992 | * @brief Disables the specified DSI interrupts. |
NYX | 0:85b3fd62ea1a | 993 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 994 | * @param __INTERRUPT__: specifies the DSI interrupt sources to be disabled. |
NYX | 0:85b3fd62ea1a | 995 | * This parameter can be any combination of the following values: |
NYX | 0:85b3fd62ea1a | 996 | * @arg DSI_IT_TE : Tearing Effect Interrupt |
NYX | 0:85b3fd62ea1a | 997 | * @arg DSI_IT_ER : End of Refresh Interrupt |
NYX | 0:85b3fd62ea1a | 998 | * @arg DSI_IT_PLLL: PLL Lock Interrupt |
NYX | 0:85b3fd62ea1a | 999 | * @arg DSI_IT_PLLU: PLL Unlock Interrupt |
NYX | 0:85b3fd62ea1a | 1000 | * @arg DSI_IT_RR : Regulator Ready Interrupt |
NYX | 0:85b3fd62ea1a | 1001 | * @retval None |
NYX | 0:85b3fd62ea1a | 1002 | */ |
NYX | 0:85b3fd62ea1a | 1003 | #define __HAL_DSI_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->WIER &= ~(__INTERRUPT__)) |
NYX | 0:85b3fd62ea1a | 1004 | |
NYX | 0:85b3fd62ea1a | 1005 | /** |
NYX | 0:85b3fd62ea1a | 1006 | * @brief Checks whether the specified DSI interrupt has occurred or not. |
NYX | 0:85b3fd62ea1a | 1007 | * @param __HANDLE__: DSI handle |
NYX | 0:85b3fd62ea1a | 1008 | * @param __INTERRUPT__: specifies the DSI interrupt source to check. |
NYX | 0:85b3fd62ea1a | 1009 | * This parameter can be one of the following values: |
NYX | 0:85b3fd62ea1a | 1010 | * @arg DSI_IT_TE : Tearing Effect Interrupt |
NYX | 0:85b3fd62ea1a | 1011 | * @arg DSI_IT_ER : End of Refresh Interrupt |
NYX | 0:85b3fd62ea1a | 1012 | * @arg DSI_IT_PLLL: PLL Lock Interrupt |
NYX | 0:85b3fd62ea1a | 1013 | * @arg DSI_IT_PLLU: PLL Unlock Interrupt |
NYX | 0:85b3fd62ea1a | 1014 | * @arg DSI_IT_RR : Regulator Ready Interrupt |
NYX | 0:85b3fd62ea1a | 1015 | * @retval The state of INTERRUPT (SET or RESET). |
NYX | 0:85b3fd62ea1a | 1016 | */ |
NYX | 0:85b3fd62ea1a | 1017 | #define __HAL_DSI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->WIER & (__INTERRUPT__)) |
NYX | 0:85b3fd62ea1a | 1018 | |
NYX | 0:85b3fd62ea1a | 1019 | /* Exported functions --------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1020 | /** @defgroup DSI_Exported_Functions DSI Exported Functions |
NYX | 0:85b3fd62ea1a | 1021 | * @{ |
NYX | 0:85b3fd62ea1a | 1022 | */ |
NYX | 0:85b3fd62ea1a | 1023 | HAL_StatusTypeDef HAL_DSI_Init(DSI_HandleTypeDef *hdsi, DSI_PLLInitTypeDef *PLLInit); |
NYX | 0:85b3fd62ea1a | 1024 | HAL_StatusTypeDef HAL_DSI_DeInit(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1025 | void HAL_DSI_MspInit(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1026 | void HAL_DSI_MspDeInit(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1027 | |
NYX | 0:85b3fd62ea1a | 1028 | void HAL_DSI_IRQHandler(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1029 | void HAL_DSI_TearingEffectCallback(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1030 | void HAL_DSI_EndOfRefreshCallback(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1031 | void HAL_DSI_ErrorCallback(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1032 | |
NYX | 0:85b3fd62ea1a | 1033 | HAL_StatusTypeDef HAL_DSI_SetGenericVCID(DSI_HandleTypeDef *hdsi, uint32_t VirtualChannelID); |
NYX | 0:85b3fd62ea1a | 1034 | HAL_StatusTypeDef HAL_DSI_ConfigVideoMode(DSI_HandleTypeDef *hdsi, DSI_VidCfgTypeDef *VidCfg); |
NYX | 0:85b3fd62ea1a | 1035 | HAL_StatusTypeDef HAL_DSI_ConfigAdaptedCommandMode(DSI_HandleTypeDef *hdsi, DSI_CmdCfgTypeDef *CmdCfg); |
NYX | 0:85b3fd62ea1a | 1036 | HAL_StatusTypeDef HAL_DSI_ConfigCommand(DSI_HandleTypeDef *hdsi, DSI_LPCmdTypeDef *LPCmd); |
NYX | 0:85b3fd62ea1a | 1037 | HAL_StatusTypeDef HAL_DSI_ConfigFlowControl(DSI_HandleTypeDef *hdsi, uint32_t FlowControl); |
NYX | 0:85b3fd62ea1a | 1038 | HAL_StatusTypeDef HAL_DSI_ConfigPhyTimer(DSI_HandleTypeDef *hdsi, DSI_PHY_TimerTypeDef *PhyTimers); |
NYX | 0:85b3fd62ea1a | 1039 | HAL_StatusTypeDef HAL_DSI_ConfigHostTimeouts(DSI_HandleTypeDef *hdsi, DSI_HOST_TimeoutTypeDef *HostTimeouts); |
NYX | 0:85b3fd62ea1a | 1040 | HAL_StatusTypeDef HAL_DSI_Start(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1041 | HAL_StatusTypeDef HAL_DSI_Stop(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1042 | HAL_StatusTypeDef HAL_DSI_Refresh(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1043 | HAL_StatusTypeDef HAL_DSI_ColorMode(DSI_HandleTypeDef *hdsi, uint32_t ColorMode); |
NYX | 0:85b3fd62ea1a | 1044 | HAL_StatusTypeDef HAL_DSI_Shutdown(DSI_HandleTypeDef *hdsi, uint32_t Shutdown); |
NYX | 0:85b3fd62ea1a | 1045 | HAL_StatusTypeDef HAL_DSI_ShortWrite(DSI_HandleTypeDef *hdsi, |
NYX | 0:85b3fd62ea1a | 1046 | uint32_t ChannelID, |
NYX | 0:85b3fd62ea1a | 1047 | uint32_t Mode, |
NYX | 0:85b3fd62ea1a | 1048 | uint32_t Param1, |
NYX | 0:85b3fd62ea1a | 1049 | uint32_t Param2); |
NYX | 0:85b3fd62ea1a | 1050 | HAL_StatusTypeDef HAL_DSI_LongWrite(DSI_HandleTypeDef *hdsi, |
NYX | 0:85b3fd62ea1a | 1051 | uint32_t ChannelID, |
NYX | 0:85b3fd62ea1a | 1052 | uint32_t Mode, |
NYX | 0:85b3fd62ea1a | 1053 | uint32_t NbParams, |
NYX | 0:85b3fd62ea1a | 1054 | uint32_t Param1, |
NYX | 0:85b3fd62ea1a | 1055 | uint8_t* ParametersTable); |
NYX | 0:85b3fd62ea1a | 1056 | HAL_StatusTypeDef HAL_DSI_Read(DSI_HandleTypeDef *hdsi, |
NYX | 0:85b3fd62ea1a | 1057 | uint32_t ChannelNbr, |
NYX | 0:85b3fd62ea1a | 1058 | uint8_t* Array, |
NYX | 0:85b3fd62ea1a | 1059 | uint32_t Size, |
NYX | 0:85b3fd62ea1a | 1060 | uint32_t Mode, |
NYX | 0:85b3fd62ea1a | 1061 | uint32_t DCSCmd, |
NYX | 0:85b3fd62ea1a | 1062 | uint8_t* ParametersTable); |
NYX | 0:85b3fd62ea1a | 1063 | HAL_StatusTypeDef HAL_DSI_EnterULPMData(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1064 | HAL_StatusTypeDef HAL_DSI_ExitULPMData(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1065 | HAL_StatusTypeDef HAL_DSI_EnterULPM(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1066 | HAL_StatusTypeDef HAL_DSI_ExitULPM(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1067 | |
NYX | 0:85b3fd62ea1a | 1068 | HAL_StatusTypeDef HAL_DSI_PatternGeneratorStart(DSI_HandleTypeDef *hdsi, uint32_t Mode, uint32_t Orientation); |
NYX | 0:85b3fd62ea1a | 1069 | HAL_StatusTypeDef HAL_DSI_PatternGeneratorStop(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1070 | |
NYX | 0:85b3fd62ea1a | 1071 | HAL_StatusTypeDef HAL_DSI_SetSlewRateAndDelayTuning(DSI_HandleTypeDef *hdsi, uint32_t CommDelay, uint32_t Lane, uint32_t Value); |
NYX | 0:85b3fd62ea1a | 1072 | HAL_StatusTypeDef HAL_DSI_SetLowPowerRXFilter(DSI_HandleTypeDef *hdsi, uint32_t Frequency); |
NYX | 0:85b3fd62ea1a | 1073 | HAL_StatusTypeDef HAL_DSI_SetSDD(DSI_HandleTypeDef *hdsi, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1074 | HAL_StatusTypeDef HAL_DSI_SetLanePinsConfiguration(DSI_HandleTypeDef *hdsi, uint32_t CustomLane, uint32_t Lane, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1075 | HAL_StatusTypeDef HAL_DSI_SetPHYTimings(DSI_HandleTypeDef *hdsi, uint32_t Timing, FunctionalState State, uint32_t Value); |
NYX | 0:85b3fd62ea1a | 1076 | HAL_StatusTypeDef HAL_DSI_ForceTXStopMode(DSI_HandleTypeDef *hdsi, uint32_t Lane, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1077 | HAL_StatusTypeDef HAL_DSI_ForceRXLowPower(DSI_HandleTypeDef *hdsi, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1078 | HAL_StatusTypeDef HAL_DSI_ForceDataLanesInRX(DSI_HandleTypeDef *hdsi, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1079 | HAL_StatusTypeDef HAL_DSI_SetPullDown(DSI_HandleTypeDef *hdsi, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1080 | HAL_StatusTypeDef HAL_DSI_SetContentionDetectionOff(DSI_HandleTypeDef *hdsi, FunctionalState State); |
NYX | 0:85b3fd62ea1a | 1081 | |
NYX | 0:85b3fd62ea1a | 1082 | uint32_t HAL_DSI_GetError(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1083 | HAL_StatusTypeDef HAL_DSI_ConfigErrorMonitor(DSI_HandleTypeDef *hdsi, uint32_t ActiveErrors); |
NYX | 0:85b3fd62ea1a | 1084 | HAL_DSI_StateTypeDef HAL_DSI_GetState(DSI_HandleTypeDef *hdsi); |
NYX | 0:85b3fd62ea1a | 1085 | /** |
NYX | 0:85b3fd62ea1a | 1086 | * @} |
NYX | 0:85b3fd62ea1a | 1087 | */ |
NYX | 0:85b3fd62ea1a | 1088 | |
NYX | 0:85b3fd62ea1a | 1089 | /* Private types -------------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1090 | /** @defgroup DSI_Private_Types DSI Private Types |
NYX | 0:85b3fd62ea1a | 1091 | * @{ |
NYX | 0:85b3fd62ea1a | 1092 | */ |
NYX | 0:85b3fd62ea1a | 1093 | |
NYX | 0:85b3fd62ea1a | 1094 | /** |
NYX | 0:85b3fd62ea1a | 1095 | * @} |
NYX | 0:85b3fd62ea1a | 1096 | */ |
NYX | 0:85b3fd62ea1a | 1097 | |
NYX | 0:85b3fd62ea1a | 1098 | /* Private defines -----------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1099 | /** @defgroup DSI_Private_Defines DSI Private Defines |
NYX | 0:85b3fd62ea1a | 1100 | * @{ |
NYX | 0:85b3fd62ea1a | 1101 | */ |
NYX | 0:85b3fd62ea1a | 1102 | |
NYX | 0:85b3fd62ea1a | 1103 | /** |
NYX | 0:85b3fd62ea1a | 1104 | * @} |
NYX | 0:85b3fd62ea1a | 1105 | */ |
NYX | 0:85b3fd62ea1a | 1106 | |
NYX | 0:85b3fd62ea1a | 1107 | /* Private variables ---------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1108 | /** @defgroup DSI_Private_Variables DSI Private Variables |
NYX | 0:85b3fd62ea1a | 1109 | * @{ |
NYX | 0:85b3fd62ea1a | 1110 | */ |
NYX | 0:85b3fd62ea1a | 1111 | |
NYX | 0:85b3fd62ea1a | 1112 | /** |
NYX | 0:85b3fd62ea1a | 1113 | * @} |
NYX | 0:85b3fd62ea1a | 1114 | */ |
NYX | 0:85b3fd62ea1a | 1115 | |
NYX | 0:85b3fd62ea1a | 1116 | /* Private constants ---------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1117 | /** @defgroup DSI_Private_Constants DSI Private Constants |
NYX | 0:85b3fd62ea1a | 1118 | * @{ |
NYX | 0:85b3fd62ea1a | 1119 | */ |
NYX | 0:85b3fd62ea1a | 1120 | #define DSI_MAX_RETURN_PKT_SIZE ((uint32_t)0x00000037U) /*!< Maximum return packet configuration */ |
NYX | 0:85b3fd62ea1a | 1121 | /** |
NYX | 0:85b3fd62ea1a | 1122 | * @} |
NYX | 0:85b3fd62ea1a | 1123 | */ |
NYX | 0:85b3fd62ea1a | 1124 | |
NYX | 0:85b3fd62ea1a | 1125 | /* Private macros ------------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1126 | /** @defgroup DSI_Private_Macros DSI Private Macros |
NYX | 0:85b3fd62ea1a | 1127 | * @{ |
NYX | 0:85b3fd62ea1a | 1128 | */ |
NYX | 0:85b3fd62ea1a | 1129 | #define IS_DSI_PLL_NDIV(NDIV) ((10U <= (NDIV)) && ((NDIV) <= 125U)) |
NYX | 0:85b3fd62ea1a | 1130 | #define IS_DSI_PLL_IDF(IDF) (((IDF) == DSI_PLL_IN_DIV1) || \ |
NYX | 0:85b3fd62ea1a | 1131 | ((IDF) == DSI_PLL_IN_DIV2) || \ |
NYX | 0:85b3fd62ea1a | 1132 | ((IDF) == DSI_PLL_IN_DIV3) || \ |
NYX | 0:85b3fd62ea1a | 1133 | ((IDF) == DSI_PLL_IN_DIV4) || \ |
NYX | 0:85b3fd62ea1a | 1134 | ((IDF) == DSI_PLL_IN_DIV5) || \ |
NYX | 0:85b3fd62ea1a | 1135 | ((IDF) == DSI_PLL_IN_DIV6) || \ |
NYX | 0:85b3fd62ea1a | 1136 | ((IDF) == DSI_PLL_IN_DIV7)) |
NYX | 0:85b3fd62ea1a | 1137 | #define IS_DSI_PLL_ODF(ODF) (((ODF) == DSI_PLL_OUT_DIV1) || \ |
NYX | 0:85b3fd62ea1a | 1138 | ((ODF) == DSI_PLL_OUT_DIV2) || \ |
NYX | 0:85b3fd62ea1a | 1139 | ((ODF) == DSI_PLL_OUT_DIV4) || \ |
NYX | 0:85b3fd62ea1a | 1140 | ((ODF) == DSI_PLL_OUT_DIV8)) |
NYX | 0:85b3fd62ea1a | 1141 | #define IS_DSI_AUTO_CLKLANE_CONTROL(AutoClkLane) (((AutoClkLane) == DSI_AUTO_CLK_LANE_CTRL_DISABLE) || ((AutoClkLane) == DSI_AUTO_CLK_LANE_CTRL_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1142 | #define IS_DSI_NUMBER_OF_LANES(NumberOfLanes) (((NumberOfLanes) == DSI_ONE_DATA_LANE) || ((NumberOfLanes) == DSI_TWO_DATA_LANES)) |
NYX | 0:85b3fd62ea1a | 1143 | #define IS_DSI_FLOW_CONTROL(FlowControl) (((FlowControl) | DSI_FLOW_CONTROL_ALL) == DSI_FLOW_CONTROL_ALL) |
NYX | 0:85b3fd62ea1a | 1144 | #define IS_DSI_COLOR_CODING(ColorCoding) ((ColorCoding) <= 5U) |
NYX | 0:85b3fd62ea1a | 1145 | #define IS_DSI_LOOSELY_PACKED(LooselyPacked) (((LooselyPacked) == DSI_LOOSELY_PACKED_ENABLE) || ((LooselyPacked) == DSI_LOOSELY_PACKED_DISABLE)) |
NYX | 0:85b3fd62ea1a | 1146 | #define IS_DSI_DE_POLARITY(DataEnable) (((DataEnable) == DSI_DATA_ENABLE_ACTIVE_HIGH) || ((DataEnable) == DSI_DATA_ENABLE_ACTIVE_LOW)) |
NYX | 0:85b3fd62ea1a | 1147 | #define IS_DSI_VSYNC_POLARITY(VSYNC) (((VSYNC) == DSI_VSYNC_ACTIVE_HIGH) || ((VSYNC) == DSI_VSYNC_ACTIVE_LOW)) |
NYX | 0:85b3fd62ea1a | 1148 | #define IS_DSI_HSYNC_POLARITY(HSYNC) (((HSYNC) == DSI_HSYNC_ACTIVE_HIGH) || ((HSYNC) == DSI_HSYNC_ACTIVE_LOW)) |
NYX | 0:85b3fd62ea1a | 1149 | #define IS_DSI_VIDEO_MODE_TYPE(VideoModeType) (((VideoModeType) == DSI_VID_MODE_NB_PULSES) || \ |
NYX | 0:85b3fd62ea1a | 1150 | ((VideoModeType) == DSI_VID_MODE_NB_EVENTS) || \ |
NYX | 0:85b3fd62ea1a | 1151 | ((VideoModeType) == DSI_VID_MODE_BURST)) |
NYX | 0:85b3fd62ea1a | 1152 | #define IS_DSI_COLOR_MODE(ColorMode) (((ColorMode) == DSI_COLOR_MODE_FULL) || ((ColorMode) == DSI_COLOR_MODE_EIGHT)) |
NYX | 0:85b3fd62ea1a | 1153 | #define IS_DSI_SHUT_DOWN(ShutDown) (((ShutDown) == DSI_DISPLAY_ON) || ((ShutDown) == DSI_DISPLAY_OFF)) |
NYX | 0:85b3fd62ea1a | 1154 | #define IS_DSI_LP_COMMAND(LPCommand) (((LPCommand) == DSI_LP_COMMAND_DISABLE) || ((LPCommand) == DSI_LP_COMMAND_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1155 | #define IS_DSI_LP_HFP(LPHFP) (((LPHFP) == DSI_LP_HFP_DISABLE) || ((LPHFP) == DSI_LP_HFP_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1156 | #define IS_DSI_LP_HBP(LPHBP) (((LPHBP) == DSI_LP_HBP_DISABLE) || ((LPHBP) == DSI_LP_HBP_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1157 | #define IS_DSI_LP_VACTIVE(LPVActive) (((LPVActive) == DSI_LP_VACT_DISABLE) || ((LPVActive) == DSI_LP_VACT_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1158 | #define IS_DSI_LP_VFP(LPVFP) (((LPVFP) == DSI_LP_VFP_DISABLE) || ((LPVFP) == DSI_LP_VFP_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1159 | #define IS_DSI_LP_VBP(LPVBP) (((LPVBP) == DSI_LP_VBP_DISABLE) || ((LPVBP) == DSI_LP_VBP_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1160 | #define IS_DSI_LP_VSYNC(LPVSYNC) (((LPVSYNC) == DSI_LP_VSYNC_DISABLE) || ((LPVSYNC) == DSI_LP_VSYNC_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1161 | #define IS_DSI_FBTAA(FrameBTAAcknowledge) (((FrameBTAAcknowledge) == DSI_FBTAA_DISABLE) || ((FrameBTAAcknowledge) == DSI_FBTAA_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1162 | #define IS_DSI_TE_SOURCE(TESource) (((TESource) == DSI_TE_DSILINK) || ((TESource) == DSI_TE_EXTERNAL)) |
NYX | 0:85b3fd62ea1a | 1163 | #define IS_DSI_TE_POLARITY(TEPolarity) (((TEPolarity) == DSI_TE_RISING_EDGE) || ((TEPolarity) == DSI_TE_FALLING_EDGE)) |
NYX | 0:85b3fd62ea1a | 1164 | #define IS_DSI_AUTOMATIC_REFRESH(AutomaticRefresh) (((AutomaticRefresh) == DSI_AR_DISABLE) || ((AutomaticRefresh) == DSI_AR_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1165 | #define IS_DSI_VS_POLARITY(VSPolarity) (((VSPolarity) == DSI_VSYNC_FALLING) || ((VSPolarity) == DSI_VSYNC_RISING)) |
NYX | 0:85b3fd62ea1a | 1166 | #define IS_DSI_TE_ACK_REQUEST(TEAcknowledgeRequest) (((TEAcknowledgeRequest) == DSI_TE_ACKNOWLEDGE_DISABLE) || ((TEAcknowledgeRequest) == DSI_TE_ACKNOWLEDGE_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1167 | #define IS_DSI_ACK_REQUEST(AcknowledgeRequest) (((AcknowledgeRequest) == DSI_ACKNOWLEDGE_DISABLE) || ((AcknowledgeRequest) == DSI_ACKNOWLEDGE_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1168 | #define IS_DSI_LP_GSW0P(LP_GSW0P) (((LP_GSW0P) == DSI_LP_GSW0P_DISABLE) || ((LP_GSW0P) == DSI_LP_GSW0P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1169 | #define IS_DSI_LP_GSW1P(LP_GSW1P) (((LP_GSW1P) == DSI_LP_GSW1P_DISABLE) || ((LP_GSW1P) == DSI_LP_GSW1P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1170 | #define IS_DSI_LP_GSW2P(LP_GSW2P) (((LP_GSW2P) == DSI_LP_GSW2P_DISABLE) || ((LP_GSW2P) == DSI_LP_GSW2P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1171 | #define IS_DSI_LP_GSR0P(LP_GSR0P) (((LP_GSR0P) == DSI_LP_GSR0P_DISABLE) || ((LP_GSR0P) == DSI_LP_GSR0P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1172 | #define IS_DSI_LP_GSR1P(LP_GSR1P) (((LP_GSR1P) == DSI_LP_GSR1P_DISABLE) || ((LP_GSR1P) == DSI_LP_GSR1P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1173 | #define IS_DSI_LP_GSR2P(LP_GSR2P) (((LP_GSR2P) == DSI_LP_GSR2P_DISABLE) || ((LP_GSR2P) == DSI_LP_GSR2P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1174 | #define IS_DSI_LP_GLW(LP_GLW) (((LP_GLW) == DSI_LP_GLW_DISABLE) || ((LP_GLW) == DSI_LP_GLW_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1175 | #define IS_DSI_LP_DSW0P(LP_DSW0P) (((LP_DSW0P) == DSI_LP_DSW0P_DISABLE) || ((LP_DSW0P) == DSI_LP_DSW0P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1176 | #define IS_DSI_LP_DSW1P(LP_DSW1P) (((LP_DSW1P) == DSI_LP_DSW1P_DISABLE) || ((LP_DSW1P) == DSI_LP_DSW1P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1177 | #define IS_DSI_LP_DSR0P(LP_DSR0P) (((LP_DSR0P) == DSI_LP_DSR0P_DISABLE) || ((LP_DSR0P) == DSI_LP_DSR0P_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1178 | #define IS_DSI_LP_DLW(LP_DLW) (((LP_DLW) == DSI_LP_DLW_DISABLE) || ((LP_DLW) == DSI_LP_DLW_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1179 | #define IS_DSI_LP_MRDP(LP_MRDP) (((LP_MRDP) == DSI_LP_MRDP_DISABLE) || ((LP_MRDP) == DSI_LP_MRDP_ENABLE)) |
NYX | 0:85b3fd62ea1a | 1180 | #define IS_DSI_SHORT_WRITE_PACKET_TYPE(MODE) (((MODE) == DSI_DCS_SHORT_PKT_WRITE_P0) || \ |
NYX | 0:85b3fd62ea1a | 1181 | ((MODE) == DSI_DCS_SHORT_PKT_WRITE_P1) || \ |
NYX | 0:85b3fd62ea1a | 1182 | ((MODE) == DSI_GEN_SHORT_PKT_WRITE_P0) || \ |
NYX | 0:85b3fd62ea1a | 1183 | ((MODE) == DSI_GEN_SHORT_PKT_WRITE_P1) || \ |
NYX | 0:85b3fd62ea1a | 1184 | ((MODE) == DSI_GEN_SHORT_PKT_WRITE_P2)) |
NYX | 0:85b3fd62ea1a | 1185 | #define IS_DSI_LONG_WRITE_PACKET_TYPE(MODE) (((MODE) == DSI_DCS_LONG_PKT_WRITE) || \ |
NYX | 0:85b3fd62ea1a | 1186 | ((MODE) == DSI_GEN_LONG_PKT_WRITE)) |
NYX | 0:85b3fd62ea1a | 1187 | #define IS_DSI_READ_PACKET_TYPE(MODE) (((MODE) == DSI_DCS_SHORT_PKT_READ) || \ |
NYX | 0:85b3fd62ea1a | 1188 | ((MODE) == DSI_GEN_SHORT_PKT_READ_P0) || \ |
NYX | 0:85b3fd62ea1a | 1189 | ((MODE) == DSI_GEN_SHORT_PKT_READ_P1) || \ |
NYX | 0:85b3fd62ea1a | 1190 | ((MODE) == DSI_GEN_SHORT_PKT_READ_P2)) |
NYX | 0:85b3fd62ea1a | 1191 | #define IS_DSI_COMMUNICATION_DELAY(CommDelay) (((CommDelay) == DSI_SLEW_RATE_HSTX) || ((CommDelay) == DSI_SLEW_RATE_LPTX) || ((CommDelay) == DSI_HS_DELAY)) |
NYX | 0:85b3fd62ea1a | 1192 | #define IS_DSI_LANE_GROUP(Lane) (((Lane) == DSI_CLOCK_LANE) || ((Lane) == DSI_DATA_LANES)) |
NYX | 0:85b3fd62ea1a | 1193 | #define IS_DSI_CUSTOM_LANE(CustomLane) (((CustomLane) == DSI_SWAP_LANE_PINS) || ((CustomLane) == DSI_INVERT_HS_SIGNAL)) |
NYX | 0:85b3fd62ea1a | 1194 | #define IS_DSI_LANE(Lane) (((Lane) == DSI_CLOCK_LANE) || ((Lane) == DSI_DATA_LANE0) || ((Lane) == DSI_DATA_LANE1)) |
NYX | 0:85b3fd62ea1a | 1195 | #define IS_DSI_PHY_TIMING(Timing) (((Timing) == DSI_TCLK_POST ) || \ |
NYX | 0:85b3fd62ea1a | 1196 | ((Timing) == DSI_TLPX_CLK ) || \ |
NYX | 0:85b3fd62ea1a | 1197 | ((Timing) == DSI_THS_EXIT ) || \ |
NYX | 0:85b3fd62ea1a | 1198 | ((Timing) == DSI_TLPX_DATA ) || \ |
NYX | 0:85b3fd62ea1a | 1199 | ((Timing) == DSI_THS_ZERO ) || \ |
NYX | 0:85b3fd62ea1a | 1200 | ((Timing) == DSI_THS_TRAIL ) || \ |
NYX | 0:85b3fd62ea1a | 1201 | ((Timing) == DSI_THS_PREPARE ) || \ |
NYX | 0:85b3fd62ea1a | 1202 | ((Timing) == DSI_TCLK_ZERO ) || \ |
NYX | 0:85b3fd62ea1a | 1203 | ((Timing) == DSI_TCLK_PREPARE)) |
NYX | 0:85b3fd62ea1a | 1204 | |
NYX | 0:85b3fd62ea1a | 1205 | /** |
NYX | 0:85b3fd62ea1a | 1206 | * @} |
NYX | 0:85b3fd62ea1a | 1207 | */ |
NYX | 0:85b3fd62ea1a | 1208 | |
NYX | 0:85b3fd62ea1a | 1209 | /* Private functions prototypes ----------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1210 | /** @defgroup DSI_Private_Functions_Prototypes DSI Private Functions Prototypes |
NYX | 0:85b3fd62ea1a | 1211 | * @{ |
NYX | 0:85b3fd62ea1a | 1212 | */ |
NYX | 0:85b3fd62ea1a | 1213 | |
NYX | 0:85b3fd62ea1a | 1214 | /** |
NYX | 0:85b3fd62ea1a | 1215 | * @} |
NYX | 0:85b3fd62ea1a | 1216 | */ |
NYX | 0:85b3fd62ea1a | 1217 | |
NYX | 0:85b3fd62ea1a | 1218 | /* Private functions ---------------------------------------------------------*/ |
NYX | 0:85b3fd62ea1a | 1219 | /** @defgroup DSI_Private_Functions DSI Private Functions |
NYX | 0:85b3fd62ea1a | 1220 | * @{ |
NYX | 0:85b3fd62ea1a | 1221 | */ |
NYX | 0:85b3fd62ea1a | 1222 | |
NYX | 0:85b3fd62ea1a | 1223 | /** |
NYX | 0:85b3fd62ea1a | 1224 | * @} |
NYX | 0:85b3fd62ea1a | 1225 | */ |
NYX | 0:85b3fd62ea1a | 1226 | |
NYX | 0:85b3fd62ea1a | 1227 | /** |
NYX | 0:85b3fd62ea1a | 1228 | * @} |
NYX | 0:85b3fd62ea1a | 1229 | */ |
NYX | 0:85b3fd62ea1a | 1230 | |
NYX | 0:85b3fd62ea1a | 1231 | /** |
NYX | 0:85b3fd62ea1a | 1232 | * @} |
NYX | 0:85b3fd62ea1a | 1233 | */ |
NYX | 0:85b3fd62ea1a | 1234 | #endif /* STM32F469xx || STM32F479xx */ |
NYX | 0:85b3fd62ea1a | 1235 | |
NYX | 0:85b3fd62ea1a | 1236 | #ifdef __cplusplus |
NYX | 0:85b3fd62ea1a | 1237 | } |
NYX | 0:85b3fd62ea1a | 1238 | #endif |
NYX | 0:85b3fd62ea1a | 1239 | |
NYX | 0:85b3fd62ea1a | 1240 | #endif /* __STM32F4xx_HAL_DSI_H */ |
NYX | 0:85b3fd62ea1a | 1241 | |
NYX | 0:85b3fd62ea1a | 1242 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |