STM32L476G_EVAL BSP User Manual: Private Functions

STM32L476G_EVAL BSP

STM32L476G_EVAL BSP User Manual
Private Functions

Functions

static void CODEC_Reset (void)
 Resets the audio codec.
static void SAIx_MspInit (void)
 Initializes SAI MSP.
static void SAIx_Init (uint32_t AudioFreq)
 Initializes the Audio Codec audio interface (SAI).
static void DFSDMx_ChannelMspInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 Initializes the DFSDM channel MSP.
static void DFSDMx_FilterMspInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Initializes the DFSDM filter MSP.
static void DFSDMx_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 DeInitializes the DFSDM channel MSP.
static void DFSDMx_FilterMspDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 DeInitializes the DFSDM filter MSP.
static uint8_t DFSDMx_Init (uint32_t AudioFreq)
 Initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM).
static uint8_t DFSDMx_DeInit (void)
 De-initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM).

Function Documentation

static void 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 862 of file stm32l476g_eval_audio.c.

References audio_drv, and AUDIO_I2C_ADDRESS.

Referenced by BSP_AUDIO_OUT_Init().

static void DFSDMx_ChannelMspDeInit ( DFSDM_Channel_HandleTypeDef *  hdfsdm_channel) [static]

DeInitializes the DFSDM channel MSP.

Parameters:
hdfsdm_channel: DFSDM channel handle.
Return values:
None

Definition at line 1511 of file stm32l476g_eval_audio.c.

References AUDIO_DFSDMx_CKOUT_DMIC_DATIN_GPIO_PORT, AUDIO_DFSDMx_CKOUT_PIN, and AUDIO_DFSDMx_DMIC_DATIN_PIN.

Referenced by DFSDMx_DeInit().

static void DFSDMx_ChannelMspInit ( DFSDM_Channel_HandleTypeDef *  hdfsdm_channel) [static]

Initializes the DFSDM channel MSP.

Parameters:
hdfsdm_channel: DFSDM channel handle.
Return values:
None

Definition at line 1487 of file stm32l476g_eval_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.

Referenced by DFSDMx_Init().

static uint8_t DFSDMx_DeInit ( void  ) [static]

De-initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM).

Return values:
AUDIO_OKif correct communication, else wrong communication

Definition at line 1449 of file stm32l476g_eval_audio.c.

References AUDIO_ERROR, AUDIO_OK, DFSDMx_ChannelMspDeInit(), DFSDMx_FilterMspDeInit(), haudio_in_dfsdm_leftchannel, haudio_in_dfsdm_leftfilter, haudio_in_dfsdm_rightchannel, and haudio_in_dfsdm_rightfilter.

Referenced by BSP_AUDIO_IN_DeInit(), and BSP_AUDIO_IN_SetFrequency().

static void DFSDMx_FilterMspDeInit ( DFSDM_Filter_HandleTypeDef *  hdfsdm_filter) [static]

DeInitializes the DFSDM filter MSP.

Parameters:
hdfsdm_filter: DFSDM filter handle.
Return values:
None

Definition at line 1590 of file stm32l476g_eval_audio.c.

References AUDIO_DFSDMx_LEFT_FILTER, hdma_dfsdm_left, and hdma_dfsdm_right.

Referenced by DFSDMx_DeInit().

static void DFSDMx_FilterMspInit ( DFSDM_Filter_HandleTypeDef *  hdfsdm_filter) [static]
static uint8_t 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:
AUDIO_OKif correct communication, else wrong communication

Definition at line 1317 of file stm32l476g_eval_audio.c.

References AUDIO_DFSDMx_LEFT_FILTER, AUDIO_DFSDMx_RIGHT_FILTER, AUDIO_ERROR, AUDIO_OK, DFSDMClockDivider, DFSDMFilterOrder, DFSDMOverSampling, DFSDMRightBitShift, DFSDMx_ChannelMspInit(), DFSDMx_FilterMspInit(), haudio_in_dfsdm_leftchannel, haudio_in_dfsdm_leftfilter, haudio_in_dfsdm_rightchannel, and haudio_in_dfsdm_rightfilter.

Referenced by BSP_AUDIO_IN_Init(), and BSP_AUDIO_IN_SetFrequency().

static void 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:
None

Definition at line 802 of file stm32l476g_eval_audio.c.

References AUDIO_SAIx, CODEC_AUDIOFRAME_SLOT_0123, haudio_out_sai, SAIClockDivider, and SAIx_MspInit().

Referenced by BSP_AUDIO_OUT_Init().

Generated on Sun Jun 21 2015 23:46:42 for STM32L476G_EVAL BSP User Manual by   doxygen 1.7.6.1