STM32L476G-Discovery BSP User Manual
|
Functions | |
static void | AUDIO_CODEC_Reset (void) |
Resets the audio codec. | |
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 void AUDIO_CODEC_Reset | ( | void | ) | [static] |
Resets the audio codec.
It restores the default configuration of the codec (this function shall be called before initializing the codec).
- Return values:
-
None
Definition at line 1136 of file stm32l476g_discovery_audio.c.
References AUDIO_I2C_ADDRESS, and AUDIO_OUT_TypeDef::AudioDrv.
Referenced by BSP_AUDIO_OUT_Init().
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 1220 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_CLK_DISABLE, AUDIO_ERROR, AUDIO_OK, AUDIO_SAIx_PLL_DISABLE, BSP_AUDIO_hDfsdmLeftFilter, and AUDIO_IN_TypeDef::hDfsdmLeftChannel.
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 1157 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_LEFT_FILTER, AUDIO_ERROR, AUDIO_OK, BSP_AUDIO_hDfsdmLeftFilter, DFSDMClockDivider, DFSDMFilterOrder, DFSDMOverSampling, DFSDMRightBitShift, and AUDIO_IN_TypeDef::hDfsdmLeftChannel.
Referenced by BSP_AUDIO_IN_Init(), 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 8 MHz.
Definition at line 1363 of file stm32l476g_discovery_audio.c.
References AUDIO_ERROR, and AUDIO_OK.
Referenced by BSP_AUDIO_IN_Init(), 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 1029 of file stm32l476g_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, AUDIO_SAIx_PLL_DISABLE, and BSP_AUDIO_hSai.
Referenced by 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.
- Note:
- The default SlotActive configuration is set to CODEC_AUDIOFRAME_SLOT_0123 and user can update this configuration using
- Return values:
-
BSP AUDIO status
Definition at line 963 of file stm32l476g_discovery_audio.c.
References AUDIO_ERROR, AUDIO_OK, AUDIO_SAIx, BSP_AUDIO_hSai, and SAIClockDivider.
Referenced by 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 1279 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_CKOUT_DMIC_DATIN_GPIO_CLK_ENABLE, AUDIO_DFSDMx_CKOUT_DMIC_DATIN_GPIO_PORT, AUDIO_DFSDMx_CKOUT_PIN, and AUDIO_DFSDMx_DMIC_DATIN_PIN.
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 1255 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_CKOUT_DMIC_DATIN_AF, AUDIO_DFSDMx_CKOUT_DMIC_DATIN_GPIO_CLK_ENABLE, AUDIO_DFSDMx_CKOUT_DMIC_DATIN_GPIO_PORT, AUDIO_DFSDMx_CKOUT_PIN, AUDIO_DFSDMx_CLK_ENABLE, and AUDIO_DFSDMx_DMIC_DATIN_PIN.
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 1343 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_DMAx_CLK_DISABLE, AUDIO_DFSDMx_DMAx_LEFT_IRQ, and AUDIO_IN_TypeDef::hDmaDfsdmLeft.
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 1304 of file stm32l476g_discovery_audio.c.
References AUDIO_DFSDMx_CLK_ENABLE, AUDIO_DFSDMx_DMAx_CLK_ENABLE, AUDIO_DFSDMx_DMAx_LEFT_CHANNEL, AUDIO_DFSDMx_DMAx_LEFT_IRQ, AUDIO_DFSDMx_DMAx_MEM_DATA_SIZE, AUDIO_DFSDMx_DMAx_PERIPH_DATA_SIZE, AUDIO_OUT_IRQ_PREPRIO, and AUDIO_IN_TypeDef::hDmaDfsdmLeft.
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 1109 of file stm32l476g_discovery_audio.c.
References AUDIO_SAIx_CLK_DISABLE, AUDIO_SAIx_DMAx_CLK_DISABLE, AUDIO_SAIx_DMAx_IRQ, AUDIO_SAIx_FS_PIN, AUDIO_SAIx_MCK_PIN, AUDIO_SAIx_MCK_SCK_SD_FS_DISABLE, AUDIO_SAIx_MCK_SCK_SD_FS_GPIO_PORT, AUDIO_SAIx_SCK_PIN, AUDIO_SAIx_SD_PIN, and hDmaSai.
void HAL_SAI_MspInit | ( | SAI_HandleTypeDef * | hsai | ) |
SAI MSP Init.
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None
Definition at line 1054 of file stm32l476g_discovery_audio.c.
References AUDIO_OUT_IRQ_PREPRIO, AUDIO_SAIx, AUDIO_SAIx_CLK_ENABLE, AUDIO_SAIx_DMAx_CHANNEL, AUDIO_SAIx_DMAx_CLK_ENABLE, AUDIO_SAIx_DMAx_IRQ, AUDIO_SAIx_DMAx_MEM_DATA_SIZE, AUDIO_SAIx_DMAx_PERIPH_DATA_SIZE, AUDIO_SAIx_FS_PIN, AUDIO_SAIx_MCK_PIN, AUDIO_SAIx_MCK_SCK_SD_FS_AF, AUDIO_SAIx_MCK_SCK_SD_FS_ENABLE, AUDIO_SAIx_MCK_SCK_SD_FS_GPIO_PORT, AUDIO_SAIx_SCK_PIN, AUDIO_SAIx_SD_PIN, and hDmaSai.
Generated on Tue Jun 23 2015 17:15:46 for STM32L476G-Discovery BSP User Manual by 1.7.6.1