Team Riedel - display
Dependencies: LCD_fonts SPI_TFT_ILI9341 CMSIS_DSP_401_without_cm4 mbed-src SDFileSystem wavfile
Private Functions
[STM32L476G-DISCOVERY AUDIO]
Functions | |
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. | |
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). | |
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. | |
void | AudioRecord_TransferComplete_CallBack (void) |
Callback function invoked when half of the PCM samples have been DM Atransfered from the DFSDM channel. | |
void | AudioRecord_HalfTransfer_CallBack (void) |
Callback function invoked when all the PCM samples have been DMA transfered from the DFSDM channel. | |
void | AudioRecord_Error_CallBack (void) |
Callback function invoked when an error occured durint he DMA transfer of the PCM samples from the DFSDM channel. |
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 881 of file stm32l476g_discovery_audio.cpp.
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 818 of file stm32l476g_discovery_audio.cpp.
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 1024 of file stm32l476g_discovery_audio.cpp.
static uint8_t AUDIO_SAIx_DeInit | ( | void | ) | [static] |
De-initializes the Audio Codec audio interface (SAI).
- Return values:
-
BSP AUDIO status
Definition at line 696 of file stm32l476g_discovery_audio.cpp.
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 630 of file stm32l476g_discovery_audio.cpp.
void AudioRecord_Error_CallBack | ( | void | ) |
Callback function invoked when an error occured durint he DMA transfer of the PCM samples from the DFSDM channel.
- Parameters:
-
None
- Return values:
-
None
Definition at line 1097 of file stm32l476g_discovery_audio.cpp.
void AudioRecord_HalfTransfer_CallBack | ( | void | ) |
Callback function invoked when all the PCM samples have been DMA transfered from the DFSDM channel.
- Parameters:
-
None
- Return values:
-
None
Definition at line 1086 of file stm32l476g_discovery_audio.cpp.
void AudioRecord_TransferComplete_CallBack | ( | void | ) |
Callback function invoked when half of the PCM samples have been DM Atransfered from the DFSDM channel.
- Parameters:
-
None
- Return values:
-
None
Definition at line 1072 of file stm32l476g_discovery_audio.cpp.
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 940 of file stm32l476g_discovery_audio.cpp.
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 916 of file stm32l476g_discovery_audio.cpp.
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 1004 of file stm32l476g_discovery_audio.cpp.
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 965 of file stm32l476g_discovery_audio.cpp.
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 776 of file stm32l476g_discovery_audio.cpp.
void HAL_SAI_MspInit | ( | SAI_HandleTypeDef * | hsai ) |
SAI MSP Init.
- Parameters:
-
hsai : pointer to a SAI_HandleTypeDef structure
- Return values:
-
None
Definition at line 721 of file stm32l476g_discovery_audio.cpp.
Generated on Tue Jul 12 2022 15:34:18 by 1.7.2