Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CMSIS_STM32L4xx CMSIS_DSP_401 STM32L4xx_HAL_Driver
Private Functions
[STM32L476G-DISCOVERY AUDIO]
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_MspDeInit (SAI_HandleTypeDef *hsai) |
SAI MSP Init. | |
void | HAL_DFSDM_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
Initializes the DFSDM channel MSP. | |
void | HAL_DFSDM_FilterMspDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
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 1053 of file stm32l476g_discovery_audio.c.
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 1137 of file stm32l476g_discovery_audio.c.
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 1074 of file stm32l476g_discovery_audio.c.
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 1230 of file stm32l476g_discovery_audio.c.
static uint8_t AUDIO_SAIx_DeInit | ( | void | ) | [static] |
De-initializes the Audio Codec audio interface (SAI).
- Return values:
-
BSP AUDIO status
Definition at line 995 of file stm32l476g_discovery_audio.c.
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 929 of file stm32l476g_discovery_audio.c.
void HAL_DFSDM_ChannelMspDeInit | ( | DFSDM_Channel_HandleTypeDef * | hdfsdm_channel ) |
Initializes the DFSDM channel MSP.
- Parameters:
-
hdfsdm_channel : DFSDM channel handle.
- Return values:
-
None De-initializes the DFSDM channel MSP.
- Parameters:
-
hdfsdm_channel : DFSDM channel handle.
- Return values:
-
None
Definition at line 1179 of file stm32l476g_discovery_audio.c.
void HAL_DFSDM_FilterMspDeInit | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter ) |
Initializes the DFSDM filter MSP.
- Parameters:
-
hdfsdm_filter : DFSDM filter handle.
- Return values:
-
None De-initializes the DFSDM filter MSP.
- Parameters:
-
hdfsdm_filter : DFSDM filter handle.
- Return values:
-
None
Definition at line 1210 of file stm32l476g_discovery_audio.c.
void HAL_SAI_MspDeInit | ( | SAI_HandleTypeDef * | hsai ) |
SAI MSP Init.
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None SAI MSP De-init
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None
Definition at line 1026 of file stm32l476g_discovery_audio.c.
Generated on Wed Jul 13 2022 02:20:53 by
