mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F411RE/stm32f4xx_hal_dcmi.h@235:685d5f11838f, 2014-06-23 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Jun 23 14:00:09 2014 +0100
- Revision:
- 235:685d5f11838f
Synchronized with git revision 9728c76667962b289ee9c4c687ef9f115db48cd3
Full URL: https://github.com/mbedmicro/mbed/commit/9728c76667962b289ee9c4c687ef9f115db48cd3/
[NUCLEO_F411RE] Add all target files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 235:685d5f11838f | 1 | /** |
mbed_official | 235:685d5f11838f | 2 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 3 | * @file stm32f4xx_hal_dcmi.h |
mbed_official | 235:685d5f11838f | 4 | * @author MCD Application Team |
mbed_official | 235:685d5f11838f | 5 | * @version V1.1.0 |
mbed_official | 235:685d5f11838f | 6 | * @date 19-June-2014 |
mbed_official | 235:685d5f11838f | 7 | * @brief Header file of DCMI HAL module. |
mbed_official | 235:685d5f11838f | 8 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 9 | * @attention |
mbed_official | 235:685d5f11838f | 10 | * |
mbed_official | 235:685d5f11838f | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 235:685d5f11838f | 12 | * |
mbed_official | 235:685d5f11838f | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 235:685d5f11838f | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 235:685d5f11838f | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 235:685d5f11838f | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 235:685d5f11838f | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 235:685d5f11838f | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 235:685d5f11838f | 19 | * and/or other materials provided with the distribution. |
mbed_official | 235:685d5f11838f | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 235:685d5f11838f | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 235:685d5f11838f | 22 | * without specific prior written permission. |
mbed_official | 235:685d5f11838f | 23 | * |
mbed_official | 235:685d5f11838f | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 235:685d5f11838f | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 235:685d5f11838f | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 235:685d5f11838f | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 235:685d5f11838f | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 235:685d5f11838f | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 235:685d5f11838f | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 235:685d5f11838f | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 235:685d5f11838f | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 235:685d5f11838f | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 235:685d5f11838f | 34 | * |
mbed_official | 235:685d5f11838f | 35 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 36 | */ |
mbed_official | 235:685d5f11838f | 37 | |
mbed_official | 235:685d5f11838f | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 235:685d5f11838f | 39 | #ifndef __STM32F4xx_HAL_DCMI_H |
mbed_official | 235:685d5f11838f | 40 | #define __STM32F4xx_HAL_DCMI_H |
mbed_official | 235:685d5f11838f | 41 | |
mbed_official | 235:685d5f11838f | 42 | #ifdef __cplusplus |
mbed_official | 235:685d5f11838f | 43 | extern "C" { |
mbed_official | 235:685d5f11838f | 44 | #endif |
mbed_official | 235:685d5f11838f | 45 | |
mbed_official | 235:685d5f11838f | 46 | #if defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
mbed_official | 235:685d5f11838f | 47 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 48 | #include "stm32f4xx_hal_def.h" |
mbed_official | 235:685d5f11838f | 49 | |
mbed_official | 235:685d5f11838f | 50 | |
mbed_official | 235:685d5f11838f | 51 | /** @addtogroup STM32F4xx_HAL_Driver |
mbed_official | 235:685d5f11838f | 52 | * @{ |
mbed_official | 235:685d5f11838f | 53 | */ |
mbed_official | 235:685d5f11838f | 54 | |
mbed_official | 235:685d5f11838f | 55 | /** @addtogroup DCMI |
mbed_official | 235:685d5f11838f | 56 | * @{ |
mbed_official | 235:685d5f11838f | 57 | */ |
mbed_official | 235:685d5f11838f | 58 | |
mbed_official | 235:685d5f11838f | 59 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 60 | |
mbed_official | 235:685d5f11838f | 61 | /** |
mbed_official | 235:685d5f11838f | 62 | * @brief DCMI Error source |
mbed_official | 235:685d5f11838f | 63 | */ |
mbed_official | 235:685d5f11838f | 64 | typedef enum |
mbed_official | 235:685d5f11838f | 65 | { |
mbed_official | 235:685d5f11838f | 66 | DCMI_ERROR_SYNC = 1, /*!< Synchronisation error */ |
mbed_official | 235:685d5f11838f | 67 | DCMI_OVERRUN = 2, /*!< DCMI Overrun */ |
mbed_official | 235:685d5f11838f | 68 | }DCMI_ErrorTypeDef; |
mbed_official | 235:685d5f11838f | 69 | |
mbed_official | 235:685d5f11838f | 70 | /** |
mbed_official | 235:685d5f11838f | 71 | * @brief DCMI Embedded Synchronisation CODE Init structure definition |
mbed_official | 235:685d5f11838f | 72 | */ |
mbed_official | 235:685d5f11838f | 73 | typedef struct |
mbed_official | 235:685d5f11838f | 74 | { |
mbed_official | 235:685d5f11838f | 75 | uint8_t FrameStartCode; /*!< Specifies the code of the frame start delimiter. */ |
mbed_official | 235:685d5f11838f | 76 | uint8_t LineStartCode; /*!< Specifies the code of the line start delimiter. */ |
mbed_official | 235:685d5f11838f | 77 | uint8_t LineEndCode; /*!< Specifies the code of the line end delimiter. */ |
mbed_official | 235:685d5f11838f | 78 | uint8_t FrameEndCode; /*!< Specifies the code of the frame end delimiter. */ |
mbed_official | 235:685d5f11838f | 79 | }DCMI_CodesInitTypeDef; |
mbed_official | 235:685d5f11838f | 80 | |
mbed_official | 235:685d5f11838f | 81 | /** |
mbed_official | 235:685d5f11838f | 82 | * @brief DCMI Init structure definition |
mbed_official | 235:685d5f11838f | 83 | */ |
mbed_official | 235:685d5f11838f | 84 | typedef struct |
mbed_official | 235:685d5f11838f | 85 | { |
mbed_official | 235:685d5f11838f | 86 | uint32_t SynchroMode; /*!< Specifies the Synchronization Mode: Hardware or Embedded. |
mbed_official | 235:685d5f11838f | 87 | This parameter can be a value of @ref DCMI_Synchronization_Mode */ |
mbed_official | 235:685d5f11838f | 88 | |
mbed_official | 235:685d5f11838f | 89 | uint32_t PCKPolarity; /*!< Specifies the Pixel clock polarity: Falling or Rising. |
mbed_official | 235:685d5f11838f | 90 | This parameter can be a value of @ref DCMI_PIXCK_Polarity */ |
mbed_official | 235:685d5f11838f | 91 | |
mbed_official | 235:685d5f11838f | 92 | uint32_t VSPolarity; /*!< Specifies the Vertical synchronization polarity: High or Low. |
mbed_official | 235:685d5f11838f | 93 | This parameter can be a value of @ref DCMI_VSYNC_Polarity */ |
mbed_official | 235:685d5f11838f | 94 | |
mbed_official | 235:685d5f11838f | 95 | uint32_t HSPolarity; /*!< Specifies the Horizontal synchronization polarity: High or Low. |
mbed_official | 235:685d5f11838f | 96 | This parameter can be a value of @ref DCMI_HSYNC_Polarity */ |
mbed_official | 235:685d5f11838f | 97 | |
mbed_official | 235:685d5f11838f | 98 | uint32_t CaptureRate; /*!< Specifies the frequency of frame capture: All, 1/2 or 1/4. |
mbed_official | 235:685d5f11838f | 99 | This parameter can be a value of @ref DCMI_Capture_Rate */ |
mbed_official | 235:685d5f11838f | 100 | |
mbed_official | 235:685d5f11838f | 101 | uint32_t ExtendedDataMode; /*!< Specifies the data width: 8-bit, 10-bit, 12-bit or 14-bit. |
mbed_official | 235:685d5f11838f | 102 | This parameter can be a value of @ref DCMI_Extended_Data_Mode */ |
mbed_official | 235:685d5f11838f | 103 | |
mbed_official | 235:685d5f11838f | 104 | DCMI_CodesInitTypeDef SyncroCode; /*!< Specifies the code of the frame start delimiter. */ |
mbed_official | 235:685d5f11838f | 105 | |
mbed_official | 235:685d5f11838f | 106 | uint32_t JPEGMode; /*!< Enable or Disable the JPEG mode. |
mbed_official | 235:685d5f11838f | 107 | This parameter can be a value of @ref DCMI_MODE_JPEG */ |
mbed_official | 235:685d5f11838f | 108 | |
mbed_official | 235:685d5f11838f | 109 | }DCMI_InitTypeDef; |
mbed_official | 235:685d5f11838f | 110 | |
mbed_official | 235:685d5f11838f | 111 | /** |
mbed_official | 235:685d5f11838f | 112 | * @brief HAL DCMI State structures definition |
mbed_official | 235:685d5f11838f | 113 | */ |
mbed_official | 235:685d5f11838f | 114 | typedef enum |
mbed_official | 235:685d5f11838f | 115 | { |
mbed_official | 235:685d5f11838f | 116 | HAL_DCMI_STATE_RESET = 0x00, /*!< DCMI not yet initialized or disabled */ |
mbed_official | 235:685d5f11838f | 117 | HAL_DCMI_STATE_READY = 0x01, /*!< DCMI initialized and ready for use */ |
mbed_official | 235:685d5f11838f | 118 | HAL_DCMI_STATE_BUSY = 0x02, /*!< DCMI internal processing is ongoing */ |
mbed_official | 235:685d5f11838f | 119 | HAL_DCMI_STATE_TIMEOUT = 0x03, /*!< DCMI timeout state */ |
mbed_official | 235:685d5f11838f | 120 | HAL_DCMI_STATE_ERROR = 0x04 /*!< DCMI error state */ |
mbed_official | 235:685d5f11838f | 121 | }HAL_DCMI_StateTypeDef; |
mbed_official | 235:685d5f11838f | 122 | |
mbed_official | 235:685d5f11838f | 123 | /** |
mbed_official | 235:685d5f11838f | 124 | * @brief DCMI handle Structure definition |
mbed_official | 235:685d5f11838f | 125 | */ |
mbed_official | 235:685d5f11838f | 126 | typedef struct |
mbed_official | 235:685d5f11838f | 127 | { |
mbed_official | 235:685d5f11838f | 128 | DCMI_TypeDef *Instance; /*!< DCMI Register base address */ |
mbed_official | 235:685d5f11838f | 129 | |
mbed_official | 235:685d5f11838f | 130 | DCMI_InitTypeDef Init; /*!< DCMI parameters */ |
mbed_official | 235:685d5f11838f | 131 | |
mbed_official | 235:685d5f11838f | 132 | HAL_LockTypeDef Lock; /*!< DCMI locking object */ |
mbed_official | 235:685d5f11838f | 133 | |
mbed_official | 235:685d5f11838f | 134 | __IO HAL_DCMI_StateTypeDef State; /*!< DCMI state */ |
mbed_official | 235:685d5f11838f | 135 | |
mbed_official | 235:685d5f11838f | 136 | __IO uint32_t XferCount; /*!< DMA transfer counter */ |
mbed_official | 235:685d5f11838f | 137 | |
mbed_official | 235:685d5f11838f | 138 | __IO uint32_t XferSize; /*!< DMA transfer size */ |
mbed_official | 235:685d5f11838f | 139 | |
mbed_official | 235:685d5f11838f | 140 | uint32_t XferTransferNumber; /*!< DMA transfer number */ |
mbed_official | 235:685d5f11838f | 141 | |
mbed_official | 235:685d5f11838f | 142 | uint32_t pBuffPtr; /*!< Pointer to DMA output buffer */ |
mbed_official | 235:685d5f11838f | 143 | |
mbed_official | 235:685d5f11838f | 144 | DMA_HandleTypeDef *DMA_Handle; /*!< Pointer to the DMA handler */ |
mbed_official | 235:685d5f11838f | 145 | |
mbed_official | 235:685d5f11838f | 146 | __IO uint32_t ErrorCode; /*!< DCMI Error code */ |
mbed_official | 235:685d5f11838f | 147 | |
mbed_official | 235:685d5f11838f | 148 | }DCMI_HandleTypeDef; |
mbed_official | 235:685d5f11838f | 149 | |
mbed_official | 235:685d5f11838f | 150 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 151 | |
mbed_official | 235:685d5f11838f | 152 | /** @defgroup DCMI_Exported_Constants |
mbed_official | 235:685d5f11838f | 153 | * @{ |
mbed_official | 235:685d5f11838f | 154 | */ |
mbed_official | 235:685d5f11838f | 155 | |
mbed_official | 235:685d5f11838f | 156 | /** @defgroup DCMI_Error_Code |
mbed_official | 235:685d5f11838f | 157 | * @{ |
mbed_official | 235:685d5f11838f | 158 | */ |
mbed_official | 235:685d5f11838f | 159 | #define HAL_DCMI_ERROR_NONE ((uint32_t)0x00000000) /*!< No error */ |
mbed_official | 235:685d5f11838f | 160 | #define HAL_DCMI_ERROR_OVF ((uint32_t)0x00000001) /*!< Overflow error */ |
mbed_official | 235:685d5f11838f | 161 | #define HAL_DCMI_ERROR_SYNC ((uint32_t)0x00000002) /*!< Synchronization error */ |
mbed_official | 235:685d5f11838f | 162 | #define HAL_DCMI_ERROR_TIMEOUT ((uint32_t)0x00000020) /*!< Timeout error */ |
mbed_official | 235:685d5f11838f | 163 | /** |
mbed_official | 235:685d5f11838f | 164 | * @} |
mbed_official | 235:685d5f11838f | 165 | */ |
mbed_official | 235:685d5f11838f | 166 | |
mbed_official | 235:685d5f11838f | 167 | /** @defgroup DCMI_Capture_Mode |
mbed_official | 235:685d5f11838f | 168 | * @{ |
mbed_official | 235:685d5f11838f | 169 | */ |
mbed_official | 235:685d5f11838f | 170 | #define DCMI_MODE_CONTINUOUS ((uint32_t)0x00000000) /*!< The received data are transferred continuously |
mbed_official | 235:685d5f11838f | 171 | into the destination memory through the DMA */ |
mbed_official | 235:685d5f11838f | 172 | #define DCMI_MODE_SNAPSHOT ((uint32_t)DCMI_CR_CM) /*!< Once activated, the interface waits for the start of |
mbed_official | 235:685d5f11838f | 173 | frame and then transfers a single frame through the DMA */ |
mbed_official | 235:685d5f11838f | 174 | |
mbed_official | 235:685d5f11838f | 175 | #define IS_DCMI_CAPTURE_MODE(MODE)(((MODE) == DCMI_MODE_CONTINUOUS) || \ |
mbed_official | 235:685d5f11838f | 176 | ((MODE) == DCMI_MODE_SNAPSHOT)) |
mbed_official | 235:685d5f11838f | 177 | /** |
mbed_official | 235:685d5f11838f | 178 | * @} |
mbed_official | 235:685d5f11838f | 179 | */ |
mbed_official | 235:685d5f11838f | 180 | |
mbed_official | 235:685d5f11838f | 181 | /** @defgroup DCMI_Synchronization_Mode |
mbed_official | 235:685d5f11838f | 182 | * @{ |
mbed_official | 235:685d5f11838f | 183 | */ |
mbed_official | 235:685d5f11838f | 184 | #define DCMI_SYNCHRO_HARDWARE ((uint32_t)0x00000000) /*!< Hardware synchronization data capture (frame/line start/stop) |
mbed_official | 235:685d5f11838f | 185 | is synchronized with the HSYNC/VSYNC signals */ |
mbed_official | 235:685d5f11838f | 186 | #define DCMI_SYNCHRO_EMBEDDED ((uint32_t)DCMI_CR_ESS) /*!< Embedded synchronization data capture is synchronized with |
mbed_official | 235:685d5f11838f | 187 | synchronization codes embedded in the data flow */ |
mbed_official | 235:685d5f11838f | 188 | |
mbed_official | 235:685d5f11838f | 189 | #define IS_DCMI_SYNCHRO(MODE)(((MODE) == DCMI_SYNCHRO_HARDWARE) || \ |
mbed_official | 235:685d5f11838f | 190 | ((MODE) == DCMI_SYNCHRO_EMBEDDED)) |
mbed_official | 235:685d5f11838f | 191 | /** |
mbed_official | 235:685d5f11838f | 192 | * @} |
mbed_official | 235:685d5f11838f | 193 | */ |
mbed_official | 235:685d5f11838f | 194 | |
mbed_official | 235:685d5f11838f | 195 | /** @defgroup DCMI_PIXCK_Polarity |
mbed_official | 235:685d5f11838f | 196 | * @{ |
mbed_official | 235:685d5f11838f | 197 | */ |
mbed_official | 235:685d5f11838f | 198 | #define DCMI_PCKPOLARITY_FALLING ((uint32_t)0x00000000) /*!< Pixel clock active on Falling edge */ |
mbed_official | 235:685d5f11838f | 199 | #define DCMI_PCKPOLARITY_RISING ((uint32_t)DCMI_CR_PCKPOL) /*!< Pixel clock active on Rising edge */ |
mbed_official | 235:685d5f11838f | 200 | |
mbed_official | 235:685d5f11838f | 201 | #define IS_DCMI_PCKPOLARITY(POLARITY)(((POLARITY) == DCMI_PCKPOLARITY_FALLING) || \ |
mbed_official | 235:685d5f11838f | 202 | ((POLARITY) == DCMI_PCKPOLARITY_RISING)) |
mbed_official | 235:685d5f11838f | 203 | /** |
mbed_official | 235:685d5f11838f | 204 | * @} |
mbed_official | 235:685d5f11838f | 205 | */ |
mbed_official | 235:685d5f11838f | 206 | |
mbed_official | 235:685d5f11838f | 207 | /** @defgroup DCMI_VSYNC_Polarity |
mbed_official | 235:685d5f11838f | 208 | * @{ |
mbed_official | 235:685d5f11838f | 209 | */ |
mbed_official | 235:685d5f11838f | 210 | #define DCMI_VSPOLARITY_LOW ((uint32_t)0x00000000) /*!< Vertical synchronization active Low */ |
mbed_official | 235:685d5f11838f | 211 | #define DCMI_VSPOLARITY_HIGH ((uint32_t)DCMI_CR_VSPOL) /*!< Vertical synchronization active High */ |
mbed_official | 235:685d5f11838f | 212 | |
mbed_official | 235:685d5f11838f | 213 | #define IS_DCMI_VSPOLARITY(POLARITY)(((POLARITY) == DCMI_VSPOLARITY_LOW) || \ |
mbed_official | 235:685d5f11838f | 214 | ((POLARITY) == DCMI_VSPOLARITY_HIGH)) |
mbed_official | 235:685d5f11838f | 215 | /** |
mbed_official | 235:685d5f11838f | 216 | * @} |
mbed_official | 235:685d5f11838f | 217 | */ |
mbed_official | 235:685d5f11838f | 218 | |
mbed_official | 235:685d5f11838f | 219 | /** @defgroup DCMI_HSYNC_Polarity |
mbed_official | 235:685d5f11838f | 220 | * @{ |
mbed_official | 235:685d5f11838f | 221 | */ |
mbed_official | 235:685d5f11838f | 222 | #define DCMI_HSPOLARITY_LOW ((uint32_t)0x00000000) /*!< Horizontal synchronization active Low */ |
mbed_official | 235:685d5f11838f | 223 | #define DCMI_HSPOLARITY_HIGH ((uint32_t)DCMI_CR_HSPOL) /*!< Horizontal synchronization active High */ |
mbed_official | 235:685d5f11838f | 224 | |
mbed_official | 235:685d5f11838f | 225 | #define IS_DCMI_HSPOLARITY(POLARITY)(((POLARITY) == DCMI_HSPOLARITY_LOW) || \ |
mbed_official | 235:685d5f11838f | 226 | ((POLARITY) == DCMI_HSPOLARITY_HIGH)) |
mbed_official | 235:685d5f11838f | 227 | /** |
mbed_official | 235:685d5f11838f | 228 | * @} |
mbed_official | 235:685d5f11838f | 229 | */ |
mbed_official | 235:685d5f11838f | 230 | |
mbed_official | 235:685d5f11838f | 231 | /** @defgroup DCMI_MODE_JPEG |
mbed_official | 235:685d5f11838f | 232 | * @{ |
mbed_official | 235:685d5f11838f | 233 | */ |
mbed_official | 235:685d5f11838f | 234 | #define DCMI_JPEG_DISABLE ((uint32_t)0x00000000) /*!< Mode JPEG Disabled */ |
mbed_official | 235:685d5f11838f | 235 | #define DCMI_JPEG_ENABLE ((uint32_t)DCMI_CR_JPEG) /*!< Mode JPEG Enabled */ |
mbed_official | 235:685d5f11838f | 236 | |
mbed_official | 235:685d5f11838f | 237 | #define IS_DCMI_MODE_JPEG(JPEG_MODE)(((JPEG_MODE) == DCMI_JPEG_DISABLE) || \ |
mbed_official | 235:685d5f11838f | 238 | ((JPEG_MODE) == DCMI_JPEG_ENABLE)) |
mbed_official | 235:685d5f11838f | 239 | /** |
mbed_official | 235:685d5f11838f | 240 | * @} |
mbed_official | 235:685d5f11838f | 241 | */ |
mbed_official | 235:685d5f11838f | 242 | |
mbed_official | 235:685d5f11838f | 243 | /** @defgroup DCMI_Capture_Rate |
mbed_official | 235:685d5f11838f | 244 | * @{ |
mbed_official | 235:685d5f11838f | 245 | */ |
mbed_official | 235:685d5f11838f | 246 | #define DCMI_CR_ALL_FRAME ((uint32_t)0x00000000) /*!< All frames are captured */ |
mbed_official | 235:685d5f11838f | 247 | #define DCMI_CR_ALTERNATE_2_FRAME ((uint32_t)DCMI_CR_FCRC_0) /*!< Every alternate frame captured */ |
mbed_official | 235:685d5f11838f | 248 | #define DCMI_CR_ALTERNATE_4_FRAME ((uint32_t)DCMI_CR_FCRC_1) /*!< One frame in 4 frames captured */ |
mbed_official | 235:685d5f11838f | 249 | |
mbed_official | 235:685d5f11838f | 250 | #define IS_DCMI_CAPTURE_RATE(RATE) (((RATE) == DCMI_CR_ALL_FRAME) || \ |
mbed_official | 235:685d5f11838f | 251 | ((RATE) == DCMI_CR_ALTERNATE_2_FRAME) || \ |
mbed_official | 235:685d5f11838f | 252 | ((RATE) == DCMI_CR_ALTERNATE_4_FRAME)) |
mbed_official | 235:685d5f11838f | 253 | /** |
mbed_official | 235:685d5f11838f | 254 | * @} |
mbed_official | 235:685d5f11838f | 255 | */ |
mbed_official | 235:685d5f11838f | 256 | |
mbed_official | 235:685d5f11838f | 257 | /** @defgroup DCMI_Extended_Data_Mode |
mbed_official | 235:685d5f11838f | 258 | * @{ |
mbed_official | 235:685d5f11838f | 259 | */ |
mbed_official | 235:685d5f11838f | 260 | #define DCMI_EXTEND_DATA_8B ((uint32_t)0x00000000) /*!< Interface captures 8-bit data on every pixel clock */ |
mbed_official | 235:685d5f11838f | 261 | #define DCMI_EXTEND_DATA_10B ((uint32_t)DCMI_CR_EDM_0) /*!< Interface captures 10-bit data on every pixel clock */ |
mbed_official | 235:685d5f11838f | 262 | #define DCMI_EXTEND_DATA_12B ((uint32_t)DCMI_CR_EDM_1) /*!< Interface captures 12-bit data on every pixel clock */ |
mbed_official | 235:685d5f11838f | 263 | #define DCMI_EXTEND_DATA_14B ((uint32_t)(DCMI_CR_EDM_0 | DCMI_CR_EDM_1)) /*!< Interface captures 14-bit data on every pixel clock */ |
mbed_official | 235:685d5f11838f | 264 | |
mbed_official | 235:685d5f11838f | 265 | #define IS_DCMI_EXTENDED_DATA(DATA)(((DATA) == DCMI_EXTEND_DATA_8B) || \ |
mbed_official | 235:685d5f11838f | 266 | ((DATA) == DCMI_EXTEND_DATA_10B) || \ |
mbed_official | 235:685d5f11838f | 267 | ((DATA) == DCMI_EXTEND_DATA_12B) || \ |
mbed_official | 235:685d5f11838f | 268 | ((DATA) == DCMI_EXTEND_DATA_14B)) |
mbed_official | 235:685d5f11838f | 269 | /** |
mbed_official | 235:685d5f11838f | 270 | * @} |
mbed_official | 235:685d5f11838f | 271 | */ |
mbed_official | 235:685d5f11838f | 272 | |
mbed_official | 235:685d5f11838f | 273 | /** @defgroup DCMI_Window_Coordinate |
mbed_official | 235:685d5f11838f | 274 | * @{ |
mbed_official | 235:685d5f11838f | 275 | */ |
mbed_official | 235:685d5f11838f | 276 | #define DCMI_WINDOW_COORDINATE ((uint32_t)0x3FFF) /*!< Window coordinate */ |
mbed_official | 235:685d5f11838f | 277 | |
mbed_official | 235:685d5f11838f | 278 | #define IS_DCMI_WINDOW_COORDINATE(COORDINATE) ((COORDINATE) <= DCMI_WINDOW_COORDINATE) |
mbed_official | 235:685d5f11838f | 279 | /** |
mbed_official | 235:685d5f11838f | 280 | * @} |
mbed_official | 235:685d5f11838f | 281 | */ |
mbed_official | 235:685d5f11838f | 282 | |
mbed_official | 235:685d5f11838f | 283 | /** @defgroup DCMI_Window_Height |
mbed_official | 235:685d5f11838f | 284 | * @{ |
mbed_official | 235:685d5f11838f | 285 | */ |
mbed_official | 235:685d5f11838f | 286 | #define DCMI_WINDOW_HEIGHT ((uint32_t)0x1FFF) /*!< Window Height */ |
mbed_official | 235:685d5f11838f | 287 | |
mbed_official | 235:685d5f11838f | 288 | #define IS_DCMI_WINDOW_HEIGHT(HEIGHT) ((HEIGHT) <= DCMI_WINDOW_HEIGHT) |
mbed_official | 235:685d5f11838f | 289 | /** |
mbed_official | 235:685d5f11838f | 290 | * @} |
mbed_official | 235:685d5f11838f | 291 | */ |
mbed_official | 235:685d5f11838f | 292 | |
mbed_official | 235:685d5f11838f | 293 | /** @defgroup DCMI_interrupt_sources |
mbed_official | 235:685d5f11838f | 294 | * @{ |
mbed_official | 235:685d5f11838f | 295 | */ |
mbed_official | 235:685d5f11838f | 296 | #define DCMI_IT_FRAME ((uint32_t)DCMI_IER_FRAME_IE) |
mbed_official | 235:685d5f11838f | 297 | #define DCMI_IT_OVF ((uint32_t)DCMI_IER_OVF_IE) |
mbed_official | 235:685d5f11838f | 298 | #define DCMI_IT_ERR ((uint32_t)DCMI_IER_ERR_IE) |
mbed_official | 235:685d5f11838f | 299 | #define DCMI_IT_VSYNC ((uint32_t)DCMI_IER_VSYNC_IE) |
mbed_official | 235:685d5f11838f | 300 | #define DCMI_IT_LINE ((uint32_t)DCMI_IER_LINE_IE) |
mbed_official | 235:685d5f11838f | 301 | |
mbed_official | 235:685d5f11838f | 302 | #define IS_DCMI_CONFIG_IT(IT) ((((IT) & (uint16_t)0xFFE0) == 0x0000) && ((IT) != 0x0000)) |
mbed_official | 235:685d5f11838f | 303 | |
mbed_official | 235:685d5f11838f | 304 | #define IS_DCMI_GET_IT(IT) (((IT) == DCMI_IT_FRAME) || \ |
mbed_official | 235:685d5f11838f | 305 | ((IT) == DCMI_IT_OVF) || \ |
mbed_official | 235:685d5f11838f | 306 | ((IT) == DCMI_IT_ERR) || \ |
mbed_official | 235:685d5f11838f | 307 | ((IT) == DCMI_IT_VSYNC) || \ |
mbed_official | 235:685d5f11838f | 308 | ((IT) == DCMI_IT_LINE)) |
mbed_official | 235:685d5f11838f | 309 | /** |
mbed_official | 235:685d5f11838f | 310 | * @} |
mbed_official | 235:685d5f11838f | 311 | */ |
mbed_official | 235:685d5f11838f | 312 | |
mbed_official | 235:685d5f11838f | 313 | /** @defgroup DCMI_Flags |
mbed_official | 235:685d5f11838f | 314 | * @{ |
mbed_official | 235:685d5f11838f | 315 | */ |
mbed_official | 235:685d5f11838f | 316 | |
mbed_official | 235:685d5f11838f | 317 | /** |
mbed_official | 235:685d5f11838f | 318 | * @brief DCMI SR register |
mbed_official | 235:685d5f11838f | 319 | */ |
mbed_official | 235:685d5f11838f | 320 | #define DCMI_FLAG_HSYNC ((uint32_t)0x2001) |
mbed_official | 235:685d5f11838f | 321 | #define DCMI_FLAG_VSYNC ((uint32_t)0x2002) |
mbed_official | 235:685d5f11838f | 322 | #define DCMI_FLAG_FNE ((uint32_t)0x2004) |
mbed_official | 235:685d5f11838f | 323 | /** |
mbed_official | 235:685d5f11838f | 324 | * @brief DCMI RISR register |
mbed_official | 235:685d5f11838f | 325 | */ |
mbed_official | 235:685d5f11838f | 326 | #define DCMI_FLAG_FRAMERI ((uint32_t)DCMI_RISR_FRAME_RIS) |
mbed_official | 235:685d5f11838f | 327 | #define DCMI_FLAG_OVFRI ((uint32_t)DCMI_RISR_OVF_RIS) |
mbed_official | 235:685d5f11838f | 328 | #define DCMI_FLAG_ERRRI ((uint32_t)DCMI_RISR_ERR_RIS) |
mbed_official | 235:685d5f11838f | 329 | #define DCMI_FLAG_VSYNCRI ((uint32_t)DCMI_RISR_VSYNC_RIS) |
mbed_official | 235:685d5f11838f | 330 | #define DCMI_FLAG_LINERI ((uint32_t)DCMI_RISR_LINE_RIS) |
mbed_official | 235:685d5f11838f | 331 | /** |
mbed_official | 235:685d5f11838f | 332 | * @brief DCMI MISR register |
mbed_official | 235:685d5f11838f | 333 | */ |
mbed_official | 235:685d5f11838f | 334 | #define DCMI_FLAG_FRAMEMI ((uint32_t)0x1001) |
mbed_official | 235:685d5f11838f | 335 | #define DCMI_FLAG_OVFMI ((uint32_t)0x1002) |
mbed_official | 235:685d5f11838f | 336 | #define DCMI_FLAG_ERRMI ((uint32_t)0x1004) |
mbed_official | 235:685d5f11838f | 337 | #define DCMI_FLAG_VSYNCMI ((uint32_t)0x1008) |
mbed_official | 235:685d5f11838f | 338 | #define DCMI_FLAG_LINEMI ((uint32_t)0x1010) |
mbed_official | 235:685d5f11838f | 339 | #define IS_DCMI_GET_FLAG(FLAG) (((FLAG) == DCMI_FLAG_HSYNC) || \ |
mbed_official | 235:685d5f11838f | 340 | ((FLAG) == DCMI_FLAG_VSYNC) || \ |
mbed_official | 235:685d5f11838f | 341 | ((FLAG) == DCMI_FLAG_FNE) || \ |
mbed_official | 235:685d5f11838f | 342 | ((FLAG) == DCMI_FLAG_FRAMERI) || \ |
mbed_official | 235:685d5f11838f | 343 | ((FLAG) == DCMI_FLAG_OVFRI) || \ |
mbed_official | 235:685d5f11838f | 344 | ((FLAG) == DCMI_FLAG_ERRRI) || \ |
mbed_official | 235:685d5f11838f | 345 | ((FLAG) == DCMI_FLAG_VSYNCRI) || \ |
mbed_official | 235:685d5f11838f | 346 | ((FLAG) == DCMI_FLAG_LINERI) || \ |
mbed_official | 235:685d5f11838f | 347 | ((FLAG) == DCMI_FLAG_FRAMEMI) || \ |
mbed_official | 235:685d5f11838f | 348 | ((FLAG) == DCMI_FLAG_OVFMI) || \ |
mbed_official | 235:685d5f11838f | 349 | ((FLAG) == DCMI_FLAG_ERRMI) || \ |
mbed_official | 235:685d5f11838f | 350 | ((FLAG) == DCMI_FLAG_VSYNCMI) || \ |
mbed_official | 235:685d5f11838f | 351 | ((FLAG) == DCMI_FLAG_LINEMI)) |
mbed_official | 235:685d5f11838f | 352 | |
mbed_official | 235:685d5f11838f | 353 | #define IS_DCMI_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFE0) == 0x0000) && ((FLAG) != 0x0000)) |
mbed_official | 235:685d5f11838f | 354 | /** |
mbed_official | 235:685d5f11838f | 355 | * @} |
mbed_official | 235:685d5f11838f | 356 | */ |
mbed_official | 235:685d5f11838f | 357 | |
mbed_official | 235:685d5f11838f | 358 | /** |
mbed_official | 235:685d5f11838f | 359 | * @} |
mbed_official | 235:685d5f11838f | 360 | */ |
mbed_official | 235:685d5f11838f | 361 | |
mbed_official | 235:685d5f11838f | 362 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 363 | |
mbed_official | 235:685d5f11838f | 364 | /** @brief Reset DCMI handle state |
mbed_official | 235:685d5f11838f | 365 | * @param __HANDLE__: specifies the DCMI handle. |
mbed_official | 235:685d5f11838f | 366 | * @retval None |
mbed_official | 235:685d5f11838f | 367 | */ |
mbed_official | 235:685d5f11838f | 368 | #define __HAL_DCMI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DCMI_STATE_RESET) |
mbed_official | 235:685d5f11838f | 369 | |
mbed_official | 235:685d5f11838f | 370 | /** |
mbed_official | 235:685d5f11838f | 371 | * @brief Enable the DCMI. |
mbed_official | 235:685d5f11838f | 372 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 373 | * @retval None |
mbed_official | 235:685d5f11838f | 374 | */ |
mbed_official | 235:685d5f11838f | 375 | #define __HAL_DCMI_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DCMI_CR_ENABLE) |
mbed_official | 235:685d5f11838f | 376 | |
mbed_official | 235:685d5f11838f | 377 | /** |
mbed_official | 235:685d5f11838f | 378 | * @brief Disable the DCMI. |
mbed_official | 235:685d5f11838f | 379 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 380 | * @retval None |
mbed_official | 235:685d5f11838f | 381 | */ |
mbed_official | 235:685d5f11838f | 382 | #define __HAL_DCMI_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(DCMI_CR_ENABLE)) |
mbed_official | 235:685d5f11838f | 383 | |
mbed_official | 235:685d5f11838f | 384 | /* Interrupt & Flag management */ |
mbed_official | 235:685d5f11838f | 385 | /** |
mbed_official | 235:685d5f11838f | 386 | * @brief Get the DCMI pending flags. |
mbed_official | 235:685d5f11838f | 387 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 388 | * @param __FLAG__: Get the specified flag. |
mbed_official | 235:685d5f11838f | 389 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 390 | * @arg DCMI_FLAG_FRAMERI: Frame capture complete flag mask |
mbed_official | 235:685d5f11838f | 391 | * @arg DCMI_FLAG_OVFRI: Overflow flag mask |
mbed_official | 235:685d5f11838f | 392 | * @arg DCMI_FLAG_ERRRI: Synchronization error flag mask |
mbed_official | 235:685d5f11838f | 393 | * @arg DCMI_FLAG_VSYNCRI: VSYNC flag mask |
mbed_official | 235:685d5f11838f | 394 | * @arg DCMI_FLAG_LINERI: Line flag mask |
mbed_official | 235:685d5f11838f | 395 | * @retval The state of FLAG. |
mbed_official | 235:685d5f11838f | 396 | */ |
mbed_official | 235:685d5f11838f | 397 | #define __HAL_DCMI_GET_FLAG(__HANDLE__, __FLAG__)\ |
mbed_official | 235:685d5f11838f | 398 | ((((__FLAG__) & 0x3000) == 0x0)? ((__HANDLE__)->Instance->RISR & (__FLAG__)) :\ |
mbed_official | 235:685d5f11838f | 399 | (((__FLAG__) & 0x2000) == 0x0)? ((__HANDLE__)->Instance->MISR & (__FLAG__)) : ((__HANDLE__)->Instance->SR & (__FLAG__))) |
mbed_official | 235:685d5f11838f | 400 | |
mbed_official | 235:685d5f11838f | 401 | /** |
mbed_official | 235:685d5f11838f | 402 | * @brief Clear the DCMI pending flags. |
mbed_official | 235:685d5f11838f | 403 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 404 | * @param __FLAG__: specifies the flag to clear. |
mbed_official | 235:685d5f11838f | 405 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 406 | * @arg DCMI_FLAG_FRAMERI: Frame capture complete flag mask |
mbed_official | 235:685d5f11838f | 407 | * @arg DCMI_FLAG_OVFRI: Overflow flag mask |
mbed_official | 235:685d5f11838f | 408 | * @arg DCMI_FLAG_ERRRI: Synchronization error flag mask |
mbed_official | 235:685d5f11838f | 409 | * @arg DCMI_FLAG_VSYNCRI: VSYNC flag mask |
mbed_official | 235:685d5f11838f | 410 | * @arg DCMI_FLAG_LINERI: Line flag mask |
mbed_official | 235:685d5f11838f | 411 | * @retval None |
mbed_official | 235:685d5f11838f | 412 | */ |
mbed_official | 235:685d5f11838f | 413 | #define __HAL_DCMI_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
mbed_official | 235:685d5f11838f | 414 | |
mbed_official | 235:685d5f11838f | 415 | /** |
mbed_official | 235:685d5f11838f | 416 | * @brief Enable the specified DCMI interrupts. |
mbed_official | 235:685d5f11838f | 417 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 418 | * @param __INTERRUPT__: specifies the DCMI interrupt sources to be enabled. |
mbed_official | 235:685d5f11838f | 419 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 420 | * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask |
mbed_official | 235:685d5f11838f | 421 | * @arg DCMI_IT_OVF: Overflow interrupt mask |
mbed_official | 235:685d5f11838f | 422 | * @arg DCMI_IT_ERR: Synchronization error interrupt mask |
mbed_official | 235:685d5f11838f | 423 | * @arg DCMI_IT_VSYNC: VSYNC interrupt mask |
mbed_official | 235:685d5f11838f | 424 | * @arg DCMI_IT_LINE: Line interrupt mask |
mbed_official | 235:685d5f11838f | 425 | * @retval None |
mbed_official | 235:685d5f11838f | 426 | */ |
mbed_official | 235:685d5f11838f | 427 | #define __HAL_DCMI_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IER |= (__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 428 | |
mbed_official | 235:685d5f11838f | 429 | /** |
mbed_official | 235:685d5f11838f | 430 | * @brief Disable the specified DCMI interrupts. |
mbed_official | 235:685d5f11838f | 431 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 432 | * @param __INTERRUPT__: specifies the DCMI interrupt sources to be enabled. |
mbed_official | 235:685d5f11838f | 433 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 434 | * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask |
mbed_official | 235:685d5f11838f | 435 | * @arg DCMI_IT_OVF: Overflow interrupt mask |
mbed_official | 235:685d5f11838f | 436 | * @arg DCMI_IT_ERR: Synchronization error interrupt mask |
mbed_official | 235:685d5f11838f | 437 | * @arg DCMI_IT_VSYNC: VSYNC interrupt mask |
mbed_official | 235:685d5f11838f | 438 | * @arg DCMI_IT_LINE: Line interrupt mask |
mbed_official | 235:685d5f11838f | 439 | * @retval None |
mbed_official | 235:685d5f11838f | 440 | */ |
mbed_official | 235:685d5f11838f | 441 | #define __HAL_DCMI_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IER &= ~(__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 442 | |
mbed_official | 235:685d5f11838f | 443 | /** |
mbed_official | 235:685d5f11838f | 444 | * @brief Check whether the specified DCMI interrupt has occurred or not. |
mbed_official | 235:685d5f11838f | 445 | * @param __HANDLE__: DCMI handle |
mbed_official | 235:685d5f11838f | 446 | * @param __INTERRUPT__: specifies the DCMI interrupt source to check. |
mbed_official | 235:685d5f11838f | 447 | * This parameter can be one of the following values: |
mbed_official | 235:685d5f11838f | 448 | * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask |
mbed_official | 235:685d5f11838f | 449 | * @arg DCMI_IT_OVF: Overflow interrupt mask |
mbed_official | 235:685d5f11838f | 450 | * @arg DCMI_IT_ERR: Synchronization error interrupt mask |
mbed_official | 235:685d5f11838f | 451 | * @arg DCMI_IT_VSYNC: VSYNC interrupt mask |
mbed_official | 235:685d5f11838f | 452 | * @arg DCMI_IT_LINE: Line interrupt mask |
mbed_official | 235:685d5f11838f | 453 | * @retval The state of INTERRUPT. |
mbed_official | 235:685d5f11838f | 454 | */ |
mbed_official | 235:685d5f11838f | 455 | #define __HAL_DCMI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MISR & (__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 456 | |
mbed_official | 235:685d5f11838f | 457 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 458 | |
mbed_official | 235:685d5f11838f | 459 | /* Initialization and de-initialization functions *****************************/ |
mbed_official | 235:685d5f11838f | 460 | HAL_StatusTypeDef HAL_DCMI_Init(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 461 | HAL_StatusTypeDef HAL_DCMI_DeInit(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 462 | void HAL_DCMI_MspInit(DCMI_HandleTypeDef* hdcmi); |
mbed_official | 235:685d5f11838f | 463 | void HAL_DCMI_MspDeInit(DCMI_HandleTypeDef* hdcmi); |
mbed_official | 235:685d5f11838f | 464 | |
mbed_official | 235:685d5f11838f | 465 | /* IO operation functions *****************************************************/ |
mbed_official | 235:685d5f11838f | 466 | HAL_StatusTypeDef HAL_DCMI_Start_DMA(DCMI_HandleTypeDef* hdcmi, uint32_t DCMI_Mode, uint32_t pData, uint32_t Length); |
mbed_official | 235:685d5f11838f | 467 | HAL_StatusTypeDef HAL_DCMI_Stop(DCMI_HandleTypeDef* hdcmi); |
mbed_official | 235:685d5f11838f | 468 | void HAL_DCMI_ErrorCallback(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 469 | void HAL_DCMI_LineEventCallback(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 470 | void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 471 | void HAL_DCMI_VsyncEventCallback(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 472 | void HAL_DCMI_IRQHandler(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 473 | |
mbed_official | 235:685d5f11838f | 474 | /* Peripheral Control functions ***********************************************/ |
mbed_official | 235:685d5f11838f | 475 | HAL_StatusTypeDef HAL_DCMI_ConfigCROP(DCMI_HandleTypeDef *hdcmi, uint32_t X0, uint32_t Y0, uint32_t XSize, uint32_t YSize); |
mbed_official | 235:685d5f11838f | 476 | HAL_StatusTypeDef HAL_DCMI_EnableCROP(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 477 | HAL_StatusTypeDef HAL_DCMI_DisableCROP(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 478 | |
mbed_official | 235:685d5f11838f | 479 | /* Peripheral State functions *************************************************/ |
mbed_official | 235:685d5f11838f | 480 | HAL_DCMI_StateTypeDef HAL_DCMI_GetState(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 481 | uint32_t HAL_DCMI_GetError(DCMI_HandleTypeDef *hdcmi); |
mbed_official | 235:685d5f11838f | 482 | |
mbed_official | 235:685d5f11838f | 483 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
mbed_official | 235:685d5f11838f | 484 | /** |
mbed_official | 235:685d5f11838f | 485 | * @} |
mbed_official | 235:685d5f11838f | 486 | */ |
mbed_official | 235:685d5f11838f | 487 | |
mbed_official | 235:685d5f11838f | 488 | /** |
mbed_official | 235:685d5f11838f | 489 | * @} |
mbed_official | 235:685d5f11838f | 490 | */ |
mbed_official | 235:685d5f11838f | 491 | |
mbed_official | 235:685d5f11838f | 492 | #ifdef __cplusplus |
mbed_official | 235:685d5f11838f | 493 | } |
mbed_official | 235:685d5f11838f | 494 | #endif |
mbed_official | 235:685d5f11838f | 495 | |
mbed_official | 235:685d5f11838f | 496 | #endif /* __STM32F4xx_HAL_DCMI_H */ |
mbed_official | 235:685d5f11838f | 497 | |
mbed_official | 235:685d5f11838f | 498 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |