mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.h@603:f00c7e78e8b4, 2015-08-09 (annotated)
- Committer:
- HiAlgoBoost
- Date:
- Sun Aug 09 05:18:54 2015 +0000
- Revision:
- 603:f00c7e78e8b4
- Parent:
- 573:ad23fe03a082
Evening of August 8th version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 573:ad23fe03a082 | 1 | /** |
mbed_official | 573:ad23fe03a082 | 2 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 3 | * @file stm32f7xx_hal_dcmi_ex.h |
mbed_official | 573:ad23fe03a082 | 4 | * @author MCD Application Team |
mbed_official | 573:ad23fe03a082 | 5 | * @version V1.0.0 |
mbed_official | 573:ad23fe03a082 | 6 | * @date 12-May-2015 |
mbed_official | 573:ad23fe03a082 | 7 | * @brief Header file of DCMI Extension HAL module. |
mbed_official | 573:ad23fe03a082 | 8 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 9 | * @attention |
mbed_official | 573:ad23fe03a082 | 10 | * |
mbed_official | 573:ad23fe03a082 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
mbed_official | 573:ad23fe03a082 | 12 | * |
mbed_official | 573:ad23fe03a082 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 573:ad23fe03a082 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 573:ad23fe03a082 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 573:ad23fe03a082 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 573:ad23fe03a082 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 573:ad23fe03a082 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 573:ad23fe03a082 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 573:ad23fe03a082 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 573:ad23fe03a082 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 573:ad23fe03a082 | 22 | * without specific prior written permission. |
mbed_official | 573:ad23fe03a082 | 23 | * |
mbed_official | 573:ad23fe03a082 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 573:ad23fe03a082 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 573:ad23fe03a082 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 573:ad23fe03a082 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 573:ad23fe03a082 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 573:ad23fe03a082 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 573:ad23fe03a082 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 573:ad23fe03a082 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 573:ad23fe03a082 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 573:ad23fe03a082 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 573:ad23fe03a082 | 34 | * |
mbed_official | 573:ad23fe03a082 | 35 | ****************************************************************************** |
mbed_official | 573:ad23fe03a082 | 36 | */ |
mbed_official | 573:ad23fe03a082 | 37 | |
mbed_official | 573:ad23fe03a082 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 39 | #ifndef __STM32F7xx_HAL_DCMI_EX_H |
mbed_official | 573:ad23fe03a082 | 40 | #define __STM32F7xx_HAL_DCMI_EX_H |
mbed_official | 573:ad23fe03a082 | 41 | |
mbed_official | 573:ad23fe03a082 | 42 | #ifdef __cplusplus |
mbed_official | 573:ad23fe03a082 | 43 | extern "C" { |
mbed_official | 573:ad23fe03a082 | 44 | #endif |
mbed_official | 573:ad23fe03a082 | 45 | |
mbed_official | 573:ad23fe03a082 | 46 | |
mbed_official | 573:ad23fe03a082 | 47 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 48 | #include "stm32f7xx_hal_def.h" |
mbed_official | 573:ad23fe03a082 | 49 | |
mbed_official | 573:ad23fe03a082 | 50 | |
mbed_official | 573:ad23fe03a082 | 51 | /** @addtogroup STM32F7xx_HAL_Driver |
mbed_official | 573:ad23fe03a082 | 52 | * @{ |
mbed_official | 573:ad23fe03a082 | 53 | */ |
mbed_official | 573:ad23fe03a082 | 54 | |
mbed_official | 573:ad23fe03a082 | 55 | /** @addtogroup DCMIEx DCMIEx |
mbed_official | 573:ad23fe03a082 | 56 | * @{ |
mbed_official | 573:ad23fe03a082 | 57 | */ |
mbed_official | 573:ad23fe03a082 | 58 | |
mbed_official | 573:ad23fe03a082 | 59 | |
mbed_official | 573:ad23fe03a082 | 60 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 61 | /** @defgroup DCMIEx_Exported_Types DCMIEx Exported Types |
mbed_official | 573:ad23fe03a082 | 62 | * @{ |
mbed_official | 573:ad23fe03a082 | 63 | */ |
mbed_official | 573:ad23fe03a082 | 64 | /** |
mbed_official | 573:ad23fe03a082 | 65 | * @brief DCMIEx Embedded Synchronisation CODE Init structure definition |
mbed_official | 573:ad23fe03a082 | 66 | */ |
mbed_official | 573:ad23fe03a082 | 67 | typedef struct |
mbed_official | 573:ad23fe03a082 | 68 | { |
mbed_official | 573:ad23fe03a082 | 69 | uint8_t FrameStartCode; /*!< Specifies the code of the frame start delimiter. */ |
mbed_official | 573:ad23fe03a082 | 70 | uint8_t LineStartCode; /*!< Specifies the code of the line start delimiter. */ |
mbed_official | 573:ad23fe03a082 | 71 | uint8_t LineEndCode; /*!< Specifies the code of the line end delimiter. */ |
mbed_official | 573:ad23fe03a082 | 72 | uint8_t FrameEndCode; /*!< Specifies the code of the frame end delimiter. */ |
mbed_official | 573:ad23fe03a082 | 73 | }DCMI_CodesInitTypeDef; |
mbed_official | 573:ad23fe03a082 | 74 | |
mbed_official | 573:ad23fe03a082 | 75 | /** |
mbed_official | 573:ad23fe03a082 | 76 | * @brief DCMI Init structure definition |
mbed_official | 573:ad23fe03a082 | 77 | */ |
mbed_official | 573:ad23fe03a082 | 78 | typedef struct |
mbed_official | 573:ad23fe03a082 | 79 | { |
mbed_official | 573:ad23fe03a082 | 80 | uint32_t SynchroMode; /*!< Specifies the Synchronization Mode: Hardware or Embedded. |
mbed_official | 573:ad23fe03a082 | 81 | This parameter can be a value of @ref DCMI_Synchronization_Mode */ |
mbed_official | 573:ad23fe03a082 | 82 | |
mbed_official | 573:ad23fe03a082 | 83 | uint32_t PCKPolarity; /*!< Specifies the Pixel clock polarity: Falling or Rising. |
mbed_official | 573:ad23fe03a082 | 84 | This parameter can be a value of @ref DCMI_PIXCK_Polarity */ |
mbed_official | 573:ad23fe03a082 | 85 | |
mbed_official | 573:ad23fe03a082 | 86 | uint32_t VSPolarity; /*!< Specifies the Vertical synchronization polarity: High or Low. |
mbed_official | 573:ad23fe03a082 | 87 | This parameter can be a value of @ref DCMI_VSYNC_Polarity */ |
mbed_official | 573:ad23fe03a082 | 88 | |
mbed_official | 573:ad23fe03a082 | 89 | uint32_t HSPolarity; /*!< Specifies the Horizontal synchronization polarity: High or Low. |
mbed_official | 573:ad23fe03a082 | 90 | This parameter can be a value of @ref DCMI_HSYNC_Polarity */ |
mbed_official | 573:ad23fe03a082 | 91 | |
mbed_official | 573:ad23fe03a082 | 92 | uint32_t CaptureRate; /*!< Specifies the frequency of frame capture: All, 1/2 or 1/4. |
mbed_official | 573:ad23fe03a082 | 93 | This parameter can be a value of @ref DCMI_Capture_Rate */ |
mbed_official | 573:ad23fe03a082 | 94 | |
mbed_official | 573:ad23fe03a082 | 95 | uint32_t ExtendedDataMode; /*!< Specifies the data width: 8-bit, 10-bit, 12-bit or 14-bit. |
mbed_official | 573:ad23fe03a082 | 96 | This parameter can be a value of @ref DCMI_Extended_Data_Mode */ |
mbed_official | 573:ad23fe03a082 | 97 | |
mbed_official | 573:ad23fe03a082 | 98 | DCMI_CodesInitTypeDef SyncroCode; /*!< Specifies the code of the frame start delimiter. */ |
mbed_official | 573:ad23fe03a082 | 99 | |
mbed_official | 573:ad23fe03a082 | 100 | uint32_t JPEGMode; /*!< Enable or Disable the JPEG mode. |
mbed_official | 573:ad23fe03a082 | 101 | This parameter can be a value of @ref DCMI_MODE_JPEG */ |
mbed_official | 573:ad23fe03a082 | 102 | |
mbed_official | 573:ad23fe03a082 | 103 | uint32_t ByteSelectMode; /*!< Specifies the data to be captured by the interface |
mbed_official | 573:ad23fe03a082 | 104 | This parameter can be a value of @ref DCMIEx_Byte_Select_Mode */ |
mbed_official | 573:ad23fe03a082 | 105 | |
mbed_official | 573:ad23fe03a082 | 106 | uint32_t ByteSelectStart; /*!< Specifies if the data to be captured by the interface is even or odd |
mbed_official | 573:ad23fe03a082 | 107 | This parameter can be a value of @ref DCMIEx_Byte_Select_Start */ |
mbed_official | 573:ad23fe03a082 | 108 | |
mbed_official | 573:ad23fe03a082 | 109 | uint32_t LineSelectMode; /*!< Specifies the line of data to be captured by the interface |
mbed_official | 573:ad23fe03a082 | 110 | This parameter can be a value of @ref DCMIEx_Line_Select_Mode */ |
mbed_official | 573:ad23fe03a082 | 111 | |
mbed_official | 573:ad23fe03a082 | 112 | uint32_t LineSelectStart; /*!< Specifies if the line of data to be captured by the interface is even or odd |
mbed_official | 573:ad23fe03a082 | 113 | This parameter can be a value of @ref DCMIEx_Line_Select_Start */ |
mbed_official | 573:ad23fe03a082 | 114 | }DCMI_InitTypeDef; |
mbed_official | 573:ad23fe03a082 | 115 | |
mbed_official | 573:ad23fe03a082 | 116 | /** |
mbed_official | 573:ad23fe03a082 | 117 | * @} |
mbed_official | 573:ad23fe03a082 | 118 | */ |
mbed_official | 573:ad23fe03a082 | 119 | |
mbed_official | 573:ad23fe03a082 | 120 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 121 | /** @defgroup DCMIEx_Exported_Constants DCMIEx Exported Constants |
mbed_official | 573:ad23fe03a082 | 122 | * @{ |
mbed_official | 573:ad23fe03a082 | 123 | */ |
mbed_official | 573:ad23fe03a082 | 124 | |
mbed_official | 573:ad23fe03a082 | 125 | /** @defgroup DCMIEx_Byte_Select_Mode DCMIEx Byte Select Mode |
mbed_official | 573:ad23fe03a082 | 126 | * @{ |
mbed_official | 573:ad23fe03a082 | 127 | */ |
mbed_official | 573:ad23fe03a082 | 128 | #define DCMI_BSM_ALL ((uint32_t)0x00000000) /*!< Interface captures all received data */ |
mbed_official | 573:ad23fe03a082 | 129 | #define DCMI_BSM_OTHER ((uint32_t)DCMI_CR_BSM_0) /*!< Interface captures every other byte from the received data */ |
mbed_official | 573:ad23fe03a082 | 130 | #define DCMI_BSM_ALTERNATE_4 ((uint32_t)DCMI_CR_BSM_1) /*!< Interface captures one byte out of four */ |
mbed_official | 573:ad23fe03a082 | 131 | #define DCMI_BSM_ALTERNATE_2 ((uint32_t)(DCMI_CR_BSM_0 | DCMI_CR_BSM_1)) /*!< Interface captures two bytes out of four */ |
mbed_official | 573:ad23fe03a082 | 132 | |
mbed_official | 573:ad23fe03a082 | 133 | /** |
mbed_official | 573:ad23fe03a082 | 134 | * @} |
mbed_official | 573:ad23fe03a082 | 135 | */ |
mbed_official | 573:ad23fe03a082 | 136 | |
mbed_official | 573:ad23fe03a082 | 137 | /** @defgroup DCMIEx_Byte_Select_Start DCMIEx Byte Select Start |
mbed_official | 573:ad23fe03a082 | 138 | * @{ |
mbed_official | 573:ad23fe03a082 | 139 | */ |
mbed_official | 573:ad23fe03a082 | 140 | #define DCMI_OEBS_ODD ((uint32_t)0x00000000) /*!< Interface captures first data from the frame/line start, second one being dropped */ |
mbed_official | 573:ad23fe03a082 | 141 | #define DCMI_OEBS_EVEN ((uint32_t)DCMI_CR_OEBS) /*!< Interface captures second data from the frame/line start, first one being dropped */ |
mbed_official | 573:ad23fe03a082 | 142 | |
mbed_official | 573:ad23fe03a082 | 143 | /** |
mbed_official | 573:ad23fe03a082 | 144 | * @} |
mbed_official | 573:ad23fe03a082 | 145 | */ |
mbed_official | 573:ad23fe03a082 | 146 | |
mbed_official | 573:ad23fe03a082 | 147 | /** @defgroup DCMIEx_Line_Select_Mode DCMIEx Line Select Mode |
mbed_official | 573:ad23fe03a082 | 148 | * @{ |
mbed_official | 573:ad23fe03a082 | 149 | */ |
mbed_official | 573:ad23fe03a082 | 150 | #define DCMI_LSM_ALL ((uint32_t)0x00000000) /*!< Interface captures all received lines */ |
mbed_official | 573:ad23fe03a082 | 151 | #define DCMI_LSM_ALTERNATE_2 ((uint32_t)DCMI_CR_LSM) /*!< Interface captures one line out of two */ |
mbed_official | 573:ad23fe03a082 | 152 | |
mbed_official | 573:ad23fe03a082 | 153 | /** |
mbed_official | 573:ad23fe03a082 | 154 | * @} |
mbed_official | 573:ad23fe03a082 | 155 | */ |
mbed_official | 573:ad23fe03a082 | 156 | |
mbed_official | 573:ad23fe03a082 | 157 | /** @defgroup DCMIEx_Line_Select_Start DCMIEx Line Select Start |
mbed_official | 573:ad23fe03a082 | 158 | * @{ |
mbed_official | 573:ad23fe03a082 | 159 | */ |
mbed_official | 573:ad23fe03a082 | 160 | #define DCMI_OELS_ODD ((uint32_t)0x00000000) /*!< Interface captures first line from the frame start, second one being dropped */ |
mbed_official | 573:ad23fe03a082 | 161 | #define DCMI_OELS_EVEN ((uint32_t)DCMI_CR_OELS) /*!< Interface captures second line from the frame start, first one being dropped */ |
mbed_official | 573:ad23fe03a082 | 162 | |
mbed_official | 573:ad23fe03a082 | 163 | /** |
mbed_official | 573:ad23fe03a082 | 164 | * @} |
mbed_official | 573:ad23fe03a082 | 165 | */ |
mbed_official | 573:ad23fe03a082 | 166 | |
mbed_official | 573:ad23fe03a082 | 167 | /** |
mbed_official | 573:ad23fe03a082 | 168 | * @} |
mbed_official | 573:ad23fe03a082 | 169 | */ |
mbed_official | 573:ad23fe03a082 | 170 | |
mbed_official | 573:ad23fe03a082 | 171 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 172 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 173 | /* Private types -------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 174 | /* Private variables ---------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 175 | /* Private constants ---------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 176 | /* Private macro -------------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 177 | /** @defgroup DCMIEx_Private_Macros DCMIEx Private Macros |
mbed_official | 573:ad23fe03a082 | 178 | * @{ |
mbed_official | 573:ad23fe03a082 | 179 | */ |
mbed_official | 573:ad23fe03a082 | 180 | #define IS_DCMI_BYTE_SELECT_MODE(MODE)(((MODE) == DCMI_BSM_ALL) || \ |
mbed_official | 573:ad23fe03a082 | 181 | ((MODE) == DCMI_BSM_OTHER) || \ |
mbed_official | 573:ad23fe03a082 | 182 | ((MODE) == DCMI_BSM_ALTERNATE_4) || \ |
mbed_official | 573:ad23fe03a082 | 183 | ((MODE) == DCMI_BSM_ALTERNATE_2)) |
mbed_official | 573:ad23fe03a082 | 184 | |
mbed_official | 573:ad23fe03a082 | 185 | #define IS_DCMI_BYTE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OEBS_ODD) || \ |
mbed_official | 573:ad23fe03a082 | 186 | ((POLARITY) == DCMI_OEBS_EVEN)) |
mbed_official | 573:ad23fe03a082 | 187 | |
mbed_official | 573:ad23fe03a082 | 188 | #define IS_DCMI_LINE_SELECT_MODE(MODE)(((MODE) == DCMI_LSM_ALL) || \ |
mbed_official | 573:ad23fe03a082 | 189 | ((MODE) == DCMI_LSM_ALTERNATE_2)) |
mbed_official | 573:ad23fe03a082 | 190 | |
mbed_official | 573:ad23fe03a082 | 191 | #define IS_DCMI_LINE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OELS_ODD) || \ |
mbed_official | 573:ad23fe03a082 | 192 | ((POLARITY) == DCMI_OELS_EVEN)) |
mbed_official | 573:ad23fe03a082 | 193 | /** |
mbed_official | 573:ad23fe03a082 | 194 | * @} |
mbed_official | 573:ad23fe03a082 | 195 | */ |
mbed_official | 573:ad23fe03a082 | 196 | |
mbed_official | 573:ad23fe03a082 | 197 | /* Private functions ---------------------------------------------------------*/ |
mbed_official | 573:ad23fe03a082 | 198 | |
mbed_official | 573:ad23fe03a082 | 199 | /** |
mbed_official | 573:ad23fe03a082 | 200 | * @} |
mbed_official | 573:ad23fe03a082 | 201 | */ |
mbed_official | 573:ad23fe03a082 | 202 | |
mbed_official | 573:ad23fe03a082 | 203 | /** |
mbed_official | 573:ad23fe03a082 | 204 | * @} |
mbed_official | 573:ad23fe03a082 | 205 | */ |
mbed_official | 573:ad23fe03a082 | 206 | |
mbed_official | 573:ad23fe03a082 | 207 | #ifdef __cplusplus |
mbed_official | 573:ad23fe03a082 | 208 | } |
mbed_official | 573:ad23fe03a082 | 209 | #endif |
mbed_official | 573:ad23fe03a082 | 210 | |
mbed_official | 573:ad23fe03a082 | 211 | #endif /* __STM32F7xx_HAL_DCMI_H */ |
mbed_official | 573:ad23fe03a082 | 212 | |
mbed_official | 573:ad23fe03a082 | 213 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |