STM32H735xx HAL User Manual
Functions
Initialization and Configuration functions
DCMI Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_DCMI_Init (DCMI_HandleTypeDef *hdcmi)
 Initializes the DCMI according to the specified parameters in the DCMI_InitTypeDef and create the associated handle.
HAL_StatusTypeDef HAL_DCMI_DeInit (DCMI_HandleTypeDef *hdcmi)
 Deinitializes the DCMI peripheral registers to their default reset values.
__weak void HAL_DCMI_MspInit (DCMI_HandleTypeDef *hdcmi)
 Initializes the DCMI MSP.
__weak void HAL_DCMI_MspDeInit (DCMI_HandleTypeDef *hdcmi)
 DeInitializes the DCMI MSP.
HAL_StatusTypeDef HAL_DCMI_RegisterCallback (DCMI_HandleTypeDef *hdcmi, HAL_DCMI_CallbackIDTypeDef CallbackID, pDCMI_CallbackTypeDef pCallback)
 Register a User DCMI Callback To be used instead of the weak predefined callback.
HAL_StatusTypeDef HAL_DCMI_UnRegisterCallback (DCMI_HandleTypeDef *hdcmi, HAL_DCMI_CallbackIDTypeDef CallbackID)
 Unregister a DCMI Callback DCMI callabck is redirected to the weak predefined callback.

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
                ##### Initialization and Configuration functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the DCMI
      (+) De-initialize the DCMI


Function Documentation

HAL_StatusTypeDef HAL_DCMI_DeInit ( DCMI_HandleTypeDef hdcmi)

Deinitializes the DCMI peripheral registers to their default reset values.

Parameters:
hdcmipointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI.
Return values:
HALstatus

Definition at line 270 of file stm32h7xx_hal_dcmi.c.

References __DCMI_HandleTypeDef::ErrorCode, HAL_DCMI_ERROR_NONE, HAL_DCMI_MspDeInit(), HAL_DCMI_STATE_RESET, __DCMI_HandleTypeDef::MspDeInitCallback, and __DCMI_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DCMI_Init ( DCMI_HandleTypeDef hdcmi)

Initializes the DCMI according to the specified parameters in the DCMI_InitTypeDef and create the associated handle.

Parameters:
hdcmipointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI.
Return values:
HALstatus

Definition at line 173 of file stm32h7xx_hal_dcmi.c.

References __HAL_DCMI_ENABLE_IT, assert_param, DCMI_InitTypeDef::ByteSelectMode, DCMI_InitTypeDef::ByteSelectStart, DCMI_InitTypeDef::CaptureRate, DCMI_BSM_ALL, DCMI_EXTEND_DATA_8B, DCMI_IT_ERR, DCMI_IT_LINE, DCMI_IT_OVR, DCMI_IT_VSYNC, DCMI_SYNCHRO_EMBEDDED, __DCMI_HandleTypeDef::ErrorCallback, __DCMI_HandleTypeDef::ErrorCode, DCMI_InitTypeDef::ExtendedDataMode, DCMI_CodesInitTypeDef::FrameEndCode, __DCMI_HandleTypeDef::FrameEventCallback, DCMI_CodesInitTypeDef::FrameStartCode, HAL_DCMI_ERROR_NONE, HAL_DCMI_ErrorCallback(), HAL_DCMI_FrameEventCallback(), HAL_DCMI_LineEventCallback(), HAL_DCMI_MspInit(), HAL_DCMI_STATE_BUSY, HAL_DCMI_STATE_READY, HAL_DCMI_STATE_RESET, HAL_DCMI_VsyncEventCallback(), DCMI_InitTypeDef::HSPolarity, __DCMI_HandleTypeDef::Init, __DCMI_HandleTypeDef::Instance, IS_DCMI_BYTE_SELECT_MODE, IS_DCMI_BYTE_SELECT_START, IS_DCMI_CAPTURE_RATE, IS_DCMI_EXTENDED_DATA, IS_DCMI_HSPOLARITY, IS_DCMI_LINE_SELECT_MODE, IS_DCMI_LINE_SELECT_START, IS_DCMI_MODE_JPEG, IS_DCMI_PCKPOLARITY, IS_DCMI_SYNCHRO, IS_DCMI_VSPOLARITY, DCMI_InitTypeDef::JPEGMode, DCMI_CodesInitTypeDef::LineEndCode, __DCMI_HandleTypeDef::LineEventCallback, DCMI_InitTypeDef::LineSelectMode, DCMI_InitTypeDef::LineSelectStart, DCMI_CodesInitTypeDef::LineStartCode, __DCMI_HandleTypeDef::MspInitCallback, DCMI_InitTypeDef::PCKPolarity, __DCMI_HandleTypeDef::State, DCMI_InitTypeDef::SynchroMode, DCMI_InitTypeDef::SyncroCode, DCMI_InitTypeDef::VSPolarity, and __DCMI_HandleTypeDef::VsyncEventCallback.

DeInitializes the DCMI MSP.

Parameters:
hdcmipointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI.
Return values:
None

Definition at line 318 of file stm32h7xx_hal_dcmi.c.

Referenced by HAL_DCMI_DeInit(), and HAL_DCMI_UnRegisterCallback().

Initializes the DCMI MSP.

Parameters:
hdcmipointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI.
Return values:
None

Definition at line 302 of file stm32h7xx_hal_dcmi.c.

Referenced by HAL_DCMI_Init(), and HAL_DCMI_UnRegisterCallback().

HAL_StatusTypeDef HAL_DCMI_RegisterCallback ( DCMI_HandleTypeDef hdcmi,
HAL_DCMI_CallbackIDTypeDef  CallbackID,
pDCMI_CallbackTypeDef  pCallback 
)

Register a User DCMI Callback To be used instead of the weak predefined callback.

Parameters:
hdcmiDCMI handle
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values:
HALstatus

Definition at line 944 of file stm32h7xx_hal_dcmi.c.

References __DCMI_HandleTypeDef::ErrorCallback, __DCMI_HandleTypeDef::ErrorCode, __DCMI_HandleTypeDef::FrameEventCallback, HAL_DCMI_ERROR_CB_ID, HAL_DCMI_ERROR_INVALID_CALLBACK, HAL_DCMI_FRAME_EVENT_CB_ID, HAL_DCMI_LINE_EVENT_CB_ID, HAL_DCMI_MSPDEINIT_CB_ID, HAL_DCMI_MSPINIT_CB_ID, HAL_DCMI_STATE_READY, HAL_DCMI_STATE_RESET, HAL_DCMI_VSYNC_EVENT_CB_ID, __DCMI_HandleTypeDef::LineEventCallback, __DCMI_HandleTypeDef::MspDeInitCallback, __DCMI_HandleTypeDef::MspInitCallback, __DCMI_HandleTypeDef::State, and __DCMI_HandleTypeDef::VsyncEventCallback.

HAL_StatusTypeDef HAL_DCMI_UnRegisterCallback ( DCMI_HandleTypeDef hdcmi,
HAL_DCMI_CallbackIDTypeDef  CallbackID 
)