Peripheral Control functions.
More...
Peripheral Control functions.
===============================================================================
##### Peripheral Control functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Configure the crop feature.
(+) Enable/Disable the crop feature.
(+) Configure the synchronization delimiters unmasks.
(+) Enable/Disable user-specified DCMI interrupts.
◆ HAL_DCMI_ConfigCrop()
| HAL_StatusTypeDef HAL_DCMI_ConfigCrop |
( |
DCMI_HandleTypeDef * |
hdcmi, |
|
|
uint32_t |
X0, |
|
|
uint32_t |
Y0, |
|
|
uint32_t |
XSize, |
|
|
uint32_t |
YSize |
|
) |
| |
Configure the DCMI crop window coordinates.
- Parameters
-
| hdcmi | pointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI. |
| X0 | DCMI window crop window X offset (number of pixels clocks to count before the capture). |
| Y0 | DCMI window crop window Y offset (image capture starts with this line number, previous line data are ignored). |
| XSize | DCMI crop window horizontal size (in number of pixels per line). |
| YSize | DCMI crop window vertical size (in lines count). |
- Note
- For all the parameters, the actual value is the input data + 1 (e.g. YSize = 0x0 means 1 line, YSize = 0x1 means 2 lines, ...)
- Return values
-
Definition at line 905 of file stm32l4xx_hal_dcmi.c.
920 MODIFY_REG(hdcmi->
Instance->CWSIZER, (DCMI_CWSIZE_VLINE|DCMI_CWSIZE_CAPCNT), (XSize | (YSize << DCMI_CWSIZE_VLINE_Pos)));
921 MODIFY_REG(hdcmi->
Instance->CWSTRTR, (DCMI_CWSTRT_VST|DCMI_CWSTRT_HOFFCNT), (X0 | (Y0 << DCMI_CWSTRT_VST_Pos)));
__IO HAL_DCMI_StateTypeDef State
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_DCMI_ConfigSyncUnmask()
Set embedded synchronization delimiters unmasks.
- Parameters
-
| hdcmi | pointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI. |
| SyncUnmask | pointer to a DCMI_SyncUnmaskTypeDef structure that contains the embedded synchronization delimiters unmasks. |
- Return values
-
Definition at line 992 of file stm32l4xx_hal_dcmi.c.
1003 ((uint32_t)SyncUnmask->
LineEndUnmask << DCMI_ESUR_LEU_Pos)|\
__IO HAL_DCMI_StateTypeDef State
◆ HAL_DCMI_DisableCrop()
Disable the crop feature.
- Parameters
-
| hdcmi | pointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI. |
- Return values
-
Definition at line 938 of file stm32l4xx_hal_dcmi.c.
__IO HAL_DCMI_StateTypeDef State
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)
◆ HAL_DCMI_EnableCrop()
Enable the crop feature.
- Parameters
-
| hdcmi | pointer to a DCMI_HandleTypeDef structure that contains the configuration information for DCMI. |
- Return values
-
Definition at line 964 of file stm32l4xx_hal_dcmi.c.
973 SET_BIT(hdcmi->
Instance->CR, DCMI_CR_CROP);
__IO HAL_DCMI_StateTypeDef State