STM32L4R9I-Discovery BSP User Manual
|
Functions | |
static uint8_t | AUDIO_SAIx_Init (uint32_t AudioFreq) |
Initializes the Audio Codec audio interface (SAI). | |
static uint8_t | AUDIO_SAIx_DeInit (void) |
De-initializes the Audio Codec audio interface (SAI). | |
static uint8_t | AUDIO_DFSDMx_Init (uint32_t AudioFreq) |
Initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM). | |
static uint8_t | AUDIO_DFSDMx_DeInit (void) |
De-initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM). | |
static uint8_t | AUDIO_SAIPLLConfig (uint32_t Frequency) |
Configures the SAI PLL clock according to the required audio frequency. | |
void | HAL_SAI_MspInit (SAI_HandleTypeDef *hsai) |
SAI MSP Init. | |
void | HAL_SAI_MspDeInit (SAI_HandleTypeDef *hsai) |
SAI MSP De-init. | |
void | HAL_DFSDM_ChannelMspInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
Initializes the DFSDM channel MSP. | |
void | HAL_DFSDM_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
De-initializes the DFSDM channel MSP. | |
void | HAL_DFSDM_FilterMspInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
Initializes the DFSDM filter MSP. | |
void | HAL_DFSDM_FilterMspDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
De-initializes the DFSDM filter MSP. |
Function Documentation
static uint8_t AUDIO_DFSDMx_DeInit | ( | void | ) | [static] |
De-initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM).
- Return values:
-
BSP AUDIO status
Definition at line 1828 of file stm32l4r9i_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, BSP_AUDIO_hDfsdmLeftFilter, BSP_AUDIO_hDfsdmRightFilter, AUDIO_IN_TypeDef::hDfsdmLeftChannel, AUDIO_IN_TypeDef::hDfsdmRightChannel, INPUT_DEVICE_DIGITAL_MIC1, INPUT_DEVICE_DIGITAL_MIC2, and AUDIO_IN_TypeDef::InputDevice.
Referenced by BSP_AUDIO_IN_DeInit(), and BSP_AUDIO_IN_SetFrequency().
static uint8_t AUDIO_DFSDMx_Init | ( | uint32_t | AudioFreq | ) | [static] |
Initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM).
- Parameters:
-
AudioFreq,: Audio frequency to be used to set correctly the DFSDM peripheral.
- Return values:
-
BSP AUDIO status
Definition at line 1696 of file stm32l4r9i_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, BSP_AUDIO_hDfsdmLeftFilter, BSP_AUDIO_hDfsdmRightFilter, DFSDMClockDivider, DFSDMFilterOrder, DFSDMOverSampling, DFSDMRightBitShift, AUDIO_IN_TypeDef::hDfsdmLeftChannel, AUDIO_IN_TypeDef::hDfsdmRightChannel, INPUT_DEVICE_DIGITAL_MIC1, INPUT_DEVICE_DIGITAL_MIC2, and AUDIO_IN_TypeDef::InputDevice.
Referenced by BSP_AUDIO_IN_InitEx(), and BSP_AUDIO_IN_SetFrequency().
static uint8_t AUDIO_SAIPLLConfig | ( | uint32_t | Frequency | ) | [static] |
Configures the SAI PLL clock according to the required audio frequency.
- Parameters:
-
Frequency,: Audio frequency.
- Return values:
-
BSP AUDIO status
- Note:
- The SAI PLL input clock must be configured in the user application. The SAI PLL configuration done within this function assumes that the SAI PLL input clock runs at 4 MHz.
Definition at line 2035 of file stm32l4r9i_discovery_audio.c.
References AUDIO_ERROR, and AUDIO_OK.
Referenced by BSP_AUDIO_IN_InitEx(), BSP_AUDIO_IN_SetFrequency(), BSP_AUDIO_OUT_Init(), and BSP_AUDIO_OUT_SetFrequency().
static uint8_t AUDIO_SAIx_DeInit | ( | void | ) | [static] |
De-initializes the Audio Codec audio interface (SAI).
- Return values:
-
BSP AUDIO status
Definition at line 1533 of file stm32l4r9i_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, BSP_AUDIO_hSai_Rx, and BSP_AUDIO_hSai_Tx.
Referenced by BSP_AUDIO_IN_DeInit(), and BSP_AUDIO_OUT_DeInit().
static uint8_t AUDIO_SAIx_Init | ( | uint32_t | AudioFreq | ) | [static] |
Initializes the Audio Codec audio interface (SAI).
- Parameters:
-
AudioFreq,: Audio frequency to be configured for the SAI peripheral.
- Return values:
-
BSP AUDIO status
Definition at line 1404 of file stm32l4r9i_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, BSP_AUDIO_hSai_Rx, BSP_AUDIO_hSai_Tx, and SAIClockDivider.
Referenced by BSP_AUDIO_IN_InitEx(), and BSP_AUDIO_OUT_Init().
void HAL_DFSDM_ChannelMspDeInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
De-initializes the DFSDM channel MSP.
- Parameters:
-
hdfsdm_channel : DFSDM channel handle.
- Return values:
-
None
Definition at line 1912 of file stm32l4r9i_discovery_audio.c.
References INPUT_DEVICE_DIGITAL_MIC1, INPUT_DEVICE_DIGITAL_MIC2, and AUDIO_IN_TypeDef::InputDevice.
void HAL_DFSDM_ChannelMspInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel | ) |
Initializes the DFSDM channel MSP.
- Parameters:
-
hdfsdm_channel : DFSDM channel handle.
- Return values:
-
None
Definition at line 1874 of file stm32l4r9i_discovery_audio.c.
References INPUT_DEVICE_DIGITAL_MIC1, INPUT_DEVICE_DIGITAL_MIC2, and AUDIO_IN_TypeDef::InputDevice.
void HAL_DFSDM_FilterMspDeInit | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter | ) |
De-initializes the DFSDM filter MSP.
- Parameters:
-
hdfsdm_filter : DFSDM filter handle.
- Return values:
-
None
Definition at line 2007 of file stm32l4r9i_discovery_audio.c.
References AUDIO_IN_TypeDef::hDmaDfsdmLeft, and AUDIO_IN_TypeDef::hDmaDfsdmRight.
void HAL_DFSDM_FilterMspInit | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter | ) |
Initializes the DFSDM filter MSP.
- Parameters:
-
hdfsdm_filter : DFSDM filter handle.
- Return values:
-
None
Definition at line 1935 of file stm32l4r9i_discovery_audio.c.
References AUDIO_IN_TypeDef::hDmaDfsdmLeft, AUDIO_IN_TypeDef::hDmaDfsdmRight, INPUT_DEVICE_DIGITAL_MIC2, and AUDIO_IN_TypeDef::InputDevice.
void HAL_SAI_MspDeInit | ( | SAI_HandleTypeDef * | hsai | ) |
SAI MSP De-init.
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None
Definition at line 1644 of file stm32l4r9i_discovery_audio.c.
void HAL_SAI_MspInit | ( | SAI_HandleTypeDef * | hsai | ) |
SAI MSP Init.
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None
Definition at line 1557 of file stm32l4r9i_discovery_audio.c.
Generated on Fri Oct 13 2017 02:37:42 for STM32L4R9I-Discovery BSP User Manual by 1.7.6.1