Channel operation functions.
More...
Channel operation functions.
==============================================================================
##### Channel operation functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Manage clock absence detector feature.
(+) Manage short circuit detector feature.
(+) Get analog watchdog value.
(+) Modify offset value.
◆ HAL_DFSDM_ChannelCkabCallback()
Clock absence detection callback.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1212 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelCkabStart()
This function allows to start clock absence detection in polling mode.
- Note
- Same mode has to be used for all channels.
-
If clock is not available on this channel during 5 seconds, clock absence detection will not be activated and function will return HAL_TIMEOUT error.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 875 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelCkabStart_IT()
This function allows to start clock absence detection in interrupt mode.
- Note
- Same mode has to be used for all channels.
-
If clock is not available on this channel during 5 seconds, clock absence detection will not be activated and function will return HAL_TIMEOUT error.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1111 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelCkabStop()
This function allows to stop clock absence detection in polling mode.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1051 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelCkabStop_IT()
This function allows to stop clock absence detection in interrupt mode.
- Note
- Interrupt will be disabled for all channels
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1227 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelGetAwdValue()
This function allows to get channel analog watchdog value.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Channel | analog watchdog value. |
Definition at line 1599 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelModifyOffset()
This function allows to modify channel offset value.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
Offset | DFSDM channel offset. This parameter must be a number between Min_Data = -8388608 and Max_Data = 8388607. |
- Return values
-
Definition at line 1611 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelPollForCkab()
This function allows to poll for the clock absence detection.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
Timeout | Timeout value in milliseconds. |
- Return values
-
Definition at line 963 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelPollForScd()
This function allows to poll for the short circuit detection.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
Timeout | Timeout value in milliseconds. |
- Return values
-
Definition at line 1332 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelScdCallback()
Short circuit detection callback.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1529 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelScdStart()
This function allows to start short circuit detection in polling mode.
- Note
- Same mode has to be used for all channels
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
Threshold | Short circuit detector threshold. This parameter must be a number between Min_Data = 0 and Max_Data = 255. |
BreakSignal | Break signals assigned to short circuit event. This parameter can be a values combination of DFSDM break signals. |
- Return values
-
Definition at line 1295 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelScdStart_IT()
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart_IT |
( |
DFSDM_Channel_HandleTypeDef * |
hdfsdm_channel, |
|
|
uint32_t |
Threshold, |
|
|
uint32_t |
BreakSignal |
|
) |
| |
This function allows to start short circuit detection in interrupt mode.
- Note
- Same mode has to be used for all channels
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
Threshold | Short circuit detector threshold. This parameter must be a number between Min_Data = 0 and Max_Data = 255. |
BreakSignal | Break signals assigned to short circuit event. This parameter can be a values combination of DFSDM break signals. |
- Return values
-
Definition at line 1473 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelScdStop()
This function allows to stop short circuit detection in polling mode.
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1418 of file stm32f4xx_hal_dfsdm.c.
◆ HAL_DFSDM_ChannelScdStop_IT()
This function allows to stop short circuit detection in interrupt mode.
- Note
- Interrupt will be disabled for all channels
- Parameters
-
hdfsdm_channel | DFSDM channel handle. |
- Return values
-
Definition at line 1544 of file stm32f4xx_hal_dfsdm.c.