Functions | |
__weak void | BSP_AUDIO_IN_ClockConfig (I2S_HandleTypeDef *hi2s, void *Params) |
Clock Config. More... | |
void | BSP_AUDIO_IN_DeInit (void) |
Deinit the audio IN peripherals. More... | |
__weak void | BSP_AUDIO_IN_Error_Callback (void) |
Audio IN Error callback function. More... | |
__weak void | BSP_AUDIO_IN_HalfTransfer_CallBack (void) |
Manages the DMA Half Transfer complete event. More... | |
uint8_t | BSP_AUDIO_IN_Init (uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr) |
Initializes wave recording. More... | |
__weak void | BSP_AUDIO_IN_MspDeInit (I2S_HandleTypeDef *hi2s, void *Params) |
DeInitializes BSP_AUDIO_IN MSP. More... | |
__weak void | BSP_AUDIO_IN_MspInit (I2S_HandleTypeDef *hi2s, void *Params) |
BSP AUDIO IN MSP Init. More... | |
uint8_t | BSP_AUDIO_IN_Pause (void) |
Pauses the audio file stream. More... | |
uint8_t | BSP_AUDIO_IN_PDMToPCM (uint16_t *PDMBuf, uint16_t *PCMBuf) |
Converts audio format from PDM to PCM. More... | |
uint8_t | BSP_AUDIO_IN_Record (uint16_t *pbuf, uint32_t size) |
Starts audio recording. More... | |
uint8_t | BSP_AUDIO_IN_Resume (void) |
Resumes the audio file stream. More... | |
uint8_t | BSP_AUDIO_IN_SetVolume (uint8_t Volume) |
Controls the audio in volume level. More... | |
uint8_t | BSP_AUDIO_IN_Stop (void) |
Stops audio recording. More... | |
__weak void | BSP_AUDIO_IN_TransferComplete_CallBack (void) |
User callback when record buffer is filled. More... | |
void | HAL_I2S_ErrorCallback (I2S_HandleTypeDef *hi2s) |
I2S error callbacks. More... | |
void | HAL_I2S_RxCpltCallback (I2S_HandleTypeDef *hi2s) |
Rx Transfer completed callbacks. More... | |
void | HAL_I2S_RxHalfCpltCallback (I2S_HandleTypeDef *hi2s) |
Rx Half Transfer completed callbacks. More... | |
static void | I2Sx_Init (uint32_t AudioFreq) |
Initializes the Audio Codec audio interface (I2S) More... | |
static void | PDMDecoder_Init (uint32_t AudioFreq, uint32_t ChnlNbrIn, uint32_t ChnlNbrOut) |
Initializes the PDM library. More... | |
static void | TIMx_IC_MspDeInit (TIM_HandleTypeDef *htim) |
Initializes the TIM INput Capture MSP. More... | |
static void | TIMx_IC_MspInit (TIM_HandleTypeDef *htim) |
Initializes the TIM INput Capture MSP. More... | |
__weak void BSP_AUDIO_IN_ClockConfig | ( | I2S_HandleTypeDef * | hi2s, |
void * | Params | ||
) |
Clock Config.
hi2s | I2S handle |
Params | : pointer on additional configuration parameters, can be NULL. |
Definition at line 1114 of file stm32469i_discovery_audio.c.
void BSP_AUDIO_IN_DeInit | ( | void | ) |
Deinit the audio IN peripherals.
Definition at line 1036 of file stm32469i_discovery_audio.c.
__weak void BSP_AUDIO_IN_Error_Callback | ( | void | ) |
Audio IN Error callback function.
Definition at line 1148 of file stm32469i_discovery_audio.c.
__weak void BSP_AUDIO_IN_HalfTransfer_CallBack | ( | void | ) |
Manages the DMA Half Transfer complete event.
Definition at line 1138 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Init | ( | uint32_t | AudioFreq, |
uint32_t | BitRes, | ||
uint32_t | ChnlNbr | ||
) |
Initializes wave recording.
AudioFreq | Audio frequency to be configured for the I2S peripheral. |
BitRes | Audio frequency to be configured for the I2S peripheral. |
ChnlNbr | Audio frequency to be configured for the I2S peripheral. |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 928 of file stm32469i_discovery_audio.c.
__weak void BSP_AUDIO_IN_MspDeInit | ( | I2S_HandleTypeDef * | hi2s, |
void * | Params | ||
) |
DeInitializes BSP_AUDIO_IN MSP.
hi2s | I2S handle |
Params | : pointer on additional configuration parameters, can be NULL. |
Definition at line 1238 of file stm32469i_discovery_audio.c.
__weak void BSP_AUDIO_IN_MspInit | ( | I2S_HandleTypeDef * | hi2s, |
void * | Params | ||
) |
BSP AUDIO IN MSP Init.
hi2s | I2S handle |
Params | : pointer on additional configuration parameters, can be NULL. |
Definition at line 1159 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Pause | ( | void | ) |
Pauses the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 996 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_PDMToPCM | ( | uint16_t * | PDMBuf, |
uint16_t * | PCMBuf | ||
) |
Converts audio format from PDM to PCM.
PDMBuf | Pointer to data PDM buffer |
PCMBuf | Pointer to data PCM buffer |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1050 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Record | ( | uint16_t * | pbuf, |
uint32_t | size | ||
) |
Starts audio recording.
pbuf | Main buffer pointer for the recorded data storing |
size | Current size of the recorded buffer |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 959 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Resume | ( | void | ) |
Resumes the audio file stream.
Resumes the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1009 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_SetVolume | ( | uint8_t | Volume | ) |
Controls the audio in volume level.
Volume | Volume level to be set in percentage from 0% to 100% (0 for Mute and 100 for Max volume level). |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1024 of file stm32469i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Stop | ( | void | ) |
Stops audio recording.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 976 of file stm32469i_discovery_audio.c.
__weak void BSP_AUDIO_IN_TransferComplete_CallBack | ( | void | ) |
User callback when record buffer is filled.
Definition at line 1128 of file stm32469i_discovery_audio.c.
void HAL_I2S_ErrorCallback | ( | I2S_HandleTypeDef * | hi2s | ) |
I2S error callbacks.
hi2s | I2S handle |
Definition at line 1100 of file stm32469i_discovery_audio.c.
void HAL_I2S_RxCpltCallback | ( | I2S_HandleTypeDef * | hi2s | ) |
Rx Transfer completed callbacks.
hi2s | I2S handle |
Definition at line 1079 of file stm32469i_discovery_audio.c.
void HAL_I2S_RxHalfCpltCallback | ( | I2S_HandleTypeDef * | hi2s | ) |
Rx Half Transfer completed callbacks.
hi2s | I2S handle |
Definition at line 1089 of file stm32469i_discovery_audio.c.
|
static |
Initializes the Audio Codec audio interface (I2S)
AudioFreq | Audio frequency to be configured for the I2S peripheral. |
Definition at line 1309 of file stm32469i_discovery_audio.c.
|
static |
Initializes the PDM library.
AudioFreq | Audio sampling frequency |
ChnlNbrIn | Number of input audio channels in the PDM buffer |
ChnlNbrOut | Number of desired output audio channels in the resulting PCM buffer Number of audio channels (1: mono; 2: stereo) |
Definition at line 1278 of file stm32469i_discovery_audio.c.
|
static |
Initializes the TIM INput Capture MSP.
htim | TIM handle |
Definition at line 1385 of file stm32469i_discovery_audio.c.
|
static |
Initializes the TIM INput Capture MSP.
htim | TIM handle |
Definition at line 1354 of file stm32469i_discovery_audio.c.