STM32H735xx HAL User Manual
|
Channel initialization and de-initialization functions. More...
Functions | |
HAL_StatusTypeDef | HAL_DFSDM_ChannelInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
Initialize the DFSDM channel according to the specified parameters in the DFSDM_ChannelInitTypeDef structure and initialize the associated handle. | |
HAL_StatusTypeDef | HAL_DFSDM_ChannelDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
De-initialize the DFSDM channel. | |
__weak void | HAL_DFSDM_ChannelMspInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
Initialize the DFSDM channel MSP. | |
__weak void | HAL_DFSDM_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
De-initialize the DFSDM channel MSP. | |
HAL_StatusTypeDef | HAL_DFSDM_Channel_RegisterCallback (DFSDM_Channel_HandleTypeDef *hdfsdm_channel, HAL_DFSDM_Channel_CallbackIDTypeDef CallbackID, pDFSDM_Channel_CallbackTypeDef pCallback) |
Register a user DFSDM channel callback to be used instead of the weak predefined callback. | |
HAL_StatusTypeDef | HAL_DFSDM_Channel_UnRegisterCallback (DFSDM_Channel_HandleTypeDef *hdfsdm_channel, HAL_DFSDM_Channel_CallbackIDTypeDef CallbackID) |
Unregister a user DFSDM channel callback. |
Channel initialization and de-initialization functions.
============================================================================== ##### Channel initialization and de-initialization functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize the DFSDM channel. (+) De-initialize the DFSDM channel.
HAL_StatusTypeDef HAL_DFSDM_Channel_RegisterCallback | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel, |
HAL_DFSDM_Channel_CallbackIDTypeDef | CallbackID, | ||
pDFSDM_Channel_CallbackTypeDef | pCallback | ||
) |
Register a user DFSDM channel callback to be used instead of the weak predefined callback.
hdfsdm_channel | DFSDM channel handle. |
CallbackID | ID of the callback to be registered. This parameter can be one of the following values:
|
pCallback | pointer to the callback function. |
HAL | status. |
Definition at line 602 of file stm32h7xx_hal_dfsdm.c.
References __DFSDM_Channel_HandleTypeDef::CkabCallback, HAL_DFSDM_CHANNEL_CKAB_CB_ID, HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID, HAL_DFSDM_CHANNEL_MSPINIT_CB_ID, HAL_DFSDM_CHANNEL_SCD_CB_ID, HAL_DFSDM_CHANNEL_STATE_READY, HAL_DFSDM_CHANNEL_STATE_RESET, __DFSDM_Channel_HandleTypeDef::MspDeInitCallback, __DFSDM_Channel_HandleTypeDef::MspInitCallback, __DFSDM_Channel_HandleTypeDef::ScdCallback, and __DFSDM_Channel_HandleTypeDef::State.
HAL_StatusTypeDef HAL_DFSDM_Channel_UnRegisterCallback | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel, |
HAL_DFSDM_Channel_CallbackIDTypeDef | CallbackID | ||
) |
Unregister a user DFSDM channel callback.
DFSDM channel callback is redirected to the weak predefined callback.
hdfsdm_channel | DFSDM channel handle. |
CallbackID | ID of the callback to be unregistered. This parameter can be one of the following values:
|
HAL | status. |
Definition at line 674 of file stm32h7xx_hal_dfsdm.c.
References __DFSDM_Channel_HandleTypeDef::CkabCallback, HAL_DFSDM_CHANNEL_CKAB_CB_ID, HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID, HAL_DFSDM_CHANNEL_MSPINIT_CB_ID, HAL_DFSDM_CHANNEL_SCD_CB_ID, HAL_DFSDM_CHANNEL_STATE_READY, HAL_DFSDM_CHANNEL_STATE_RESET, HAL_DFSDM_ChannelCkabCallback(), HAL_DFSDM_ChannelMspDeInit(), HAL_DFSDM_ChannelMspInit(), HAL_DFSDM_ChannelScdCallback(), __DFSDM_Channel_HandleTypeDef::MspDeInitCallback, __DFSDM_Channel_HandleTypeDef::MspInitCallback, __DFSDM_Channel_HandleTypeDef::ScdCallback, and __DFSDM_Channel_HandleTypeDef::State.
HAL_StatusTypeDef HAL_DFSDM_ChannelDeInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
De-initialize the DFSDM channel.
hdfsdm_channel | DFSDM channel handle. |
HAL | status. |
Definition at line 486 of file stm32h7xx_hal_dfsdm.c.
References a_dfsdm1ChannelHandle, assert_param, DFSDM_GetChannelFromInstance(), HAL_DFSDM_CHANNEL_STATE_RESET, HAL_DFSDM_ChannelMspDeInit(), __DFSDM_Channel_HandleTypeDef::Instance, __DFSDM_Channel_HandleTypeDef::MspDeInitCallback, __DFSDM_Channel_HandleTypeDef::State, and v_dfsdm1ChannelCounter.
HAL_StatusTypeDef HAL_DFSDM_ChannelInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
Initialize the DFSDM channel according to the specified parameters in the DFSDM_ChannelInitTypeDef structure and initialize the associated handle.
hdfsdm_channel | DFSDM channel handle. |
HAL | status. |
Definition at line 356 of file stm32h7xx_hal_dfsdm.c.
References a_dfsdm1ChannelHandle, DFSDM_Channel_OutputClockTypeDef::Activation, assert_param, DFSDM_Channel_InitTypeDef::Awd, __DFSDM_Channel_HandleTypeDef::CkabCallback, DFSDM_Channel_InputTypeDef::DataPacking, DFSDM_GetChannelFromInstance(), DFSDM_Channel_OutputClockTypeDef::Divider, DFSDM_Channel_AwdTypeDef::FilterOrder, HAL_DFSDM_CHANNEL_STATE_READY, HAL_DFSDM_ChannelCkabCallback(), HAL_DFSDM_ChannelMspInit(), HAL_DFSDM_ChannelScdCallback(), __DFSDM_Channel_HandleTypeDef::Init, DFSDM_Channel_InitTypeDef::Input, __DFSDM_Channel_HandleTypeDef::Instance, IS_DFSDM_CHANNEL_DATA_PACKING, IS_DFSDM_CHANNEL_FILTER_ORDER, IS_DFSDM_CHANNEL_FILTER_OVS_RATIO, IS_DFSDM_CHANNEL_INPUT, IS_DFSDM_CHANNEL_INPUT_PINS, IS_DFSDM_CHANNEL_OFFSET, IS_DFSDM_CHANNEL_OUTPUT_CLOCK, IS_DFSDM_CHANNEL_OUTPUT_CLOCK_DIVIDER, IS_DFSDM_CHANNEL_RIGHT_BIT_SHIFT, IS_DFSDM_CHANNEL_SERIAL_INTERFACE_TYPE, IS_DFSDM_CHANNEL_SPI_CLOCK, __DFSDM_Channel_HandleTypeDef::MspInitCallback, DFSDM_Channel_InputTypeDef::Multiplexer, DFSDM_Channel_InitTypeDef::Offset, DFSDM_Channel_InitTypeDef::OutputClock, DFSDM_Channel_AwdTypeDef::Oversampling, DFSDM_Channel_InputTypeDef::Pins, DFSDM_Channel_InitTypeDef::RightBitShift, __DFSDM_Channel_HandleTypeDef::ScdCallback, DFSDM_Channel_OutputClockTypeDef::Selection, DFSDM_Channel_InitTypeDef::SerialInterface, DFSDM_Channel_SerialInterfaceTypeDef::SpiClock, __DFSDM_Channel_HandleTypeDef::State, DFSDM_Channel_SerialInterfaceTypeDef::Type, and v_dfsdm1ChannelCounter.
void HAL_DFSDM_ChannelMspDeInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
De-initialize the DFSDM channel MSP.
hdfsdm_channel | DFSDM channel handle. |
None |
Definition at line 578 of file stm32h7xx_hal_dfsdm.c.
Referenced by HAL_DFSDM_Channel_UnRegisterCallback(), and HAL_DFSDM_ChannelDeInit().
void HAL_DFSDM_ChannelMspInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
Initialize the DFSDM channel MSP.
hdfsdm_channel | DFSDM channel handle. |
None |
Definition at line 563 of file stm32h7xx_hal_dfsdm.c.
Referenced by HAL_DFSDM_Channel_UnRegisterCallback(), and HAL_DFSDM_ChannelInit().