Functions | |
uint8_t | BSP_AUDIO_IN_AllocScratch (int32_t *pScratch, uint32_t size) |
Allocate channel buffer scratch. More... | |
__weak void | BSP_AUDIO_IN_ClockConfig (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t AudioFreq, 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... | |
uint8_t | BSP_AUDIO_IN_GetChannelNumber (void) |
Return audio in channel number. 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) |
Initialize wave recording. More... | |
uint8_t | BSP_AUDIO_IN_InitEx (uint16_t InputDevice, uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr) |
Initialize wave recording. More... | |
__weak void | BSP_AUDIO_IN_MspDeInit (void) |
DeInitialize BSP_AUDIO_IN MSP. More... | |
__weak void | BSP_AUDIO_IN_MspInit (void) |
Initialize BSP_AUDIO_IN MSP. More... | |
uint8_t | BSP_AUDIO_IN_Pause (void) |
Pause the audio file stream. More... | |
uint8_t | BSP_AUDIO_IN_Record (uint16_t *pbuf, uint32_t size) |
Start audio recording. More... | |
uint8_t | BSP_AUDIO_IN_Resume (void) |
Resume the audio file stream. More... | |
uint8_t | BSP_AUDIO_IN_Stop (void) |
Stop audio recording. More... | |
__weak void | BSP_AUDIO_IN_TransferComplete_CallBack (void) |
User callback when record buffer is filled. More... | |
static void | DFSDMx_ChannelMspDeInit (void) |
DeInitialize the DFSDM channel MSP. More... | |
static void | DFSDMx_ChannelMspInit (void) |
Initialize the DFSDM channel MSP. More... | |
static uint8_t | DFSDMx_DeInit (void) |
De-initialize the Digital Filter for Sigma-Delta Modulators interface (DFSDM). More... | |
static void | DFSDMx_FilterMspDeInit (void) |
DeInitialize the DFSDM filter MSP. More... | |
static void | DFSDMx_FilterMspInit (void) |
Initialize the DFSDM filter MSP. More... | |
static uint8_t | DFSDMx_Init (uint32_t AudioFreq) |
Initialize the Digital Filter for Sigma-Delta Modulators interface (DFSDM). More... | |
void | HAL_DFSDM_FilterRegConvCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
Regular conversion complete callback. More... | |
void | HAL_DFSDM_FilterRegConvHalfCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
Half regular conversion complete callback. More... | |
void | HAL_SAI_RxCpltCallback (SAI_HandleTypeDef *hsai) |
Reception complete callback. More... | |
void | HAL_SAI_RxHalfCpltCallback (SAI_HandleTypeDef *hsai) |
Half reception complete callback. More... | |
uint8_t BSP_AUDIO_IN_AllocScratch | ( | int32_t * | pScratch, |
uint32_t | size | ||
) |
Allocate channel buffer scratch.
pScratch | : pointer to scratch tables. |
size | of scratch buffer |
Definition at line 1204 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_ClockConfig | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter, |
uint32_t | AudioFreq, | ||
void * | Params | ||
) |
Clock Config.
hdfsdm_filter | might be required to set audio peripheral predivider if any. |
AudioFreq | Audio frequency used to play the audio stream. |
Params |
None |
Definition at line 1690 of file stm32f769i_discovery_audio.c.
void BSP_AUDIO_IN_DeInit | ( | void | ) |
Deinit the audio IN peripherals.
None |
Definition at line 1420 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_Error_CallBack | ( | void | ) |
Audio IN Error callback function.
None |
Definition at line 1637 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_GetChannelNumber | ( | void | ) |
Return audio in channel number.
Number | of channel |
Definition at line 1223 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_HalfTransfer_CallBack | ( | void | ) |
Manages the DMA Half Transfer complete event.
None |
Definition at line 1626 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Init | ( | uint32_t | AudioFreq, |
uint32_t | BitRes, | ||
uint32_t | ChnlNbr | ||
) |
Initialize wave recording.
Initializes wave recording.
AudioFreq | Audio frequency to be configured for the DFSDM peripheral. |
BitRes | Audio frequency to be configured for the DFSDM peripheral. |
ChnlNbr | Audio frequency to be configured for the DFSDM peripheral. |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1127 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_InitEx | ( | uint16_t | InputDevice, |
uint32_t | AudioFreq, | ||
uint32_t | BitRes, | ||
uint32_t | ChnlNbr | ||
) |
Initialize wave recording.
InputDevice | INPUT_DEVICE_DIGITAL_MIC or INPUT_DEVICE_ANALOG_MIC. |
AudioFreq | Audio frequency to be configured. |
BitRes | Audio bit resolution to be configured.. |
ChnlNbr | Number of channel to be configured. |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1140 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_MspDeInit | ( | void | ) |
DeInitialize BSP_AUDIO_IN MSP.
None |
Definition at line 1666 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_MspInit | ( | void | ) |
Initialize BSP_AUDIO_IN MSP.
None |
Definition at line 1647 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Pause | ( | void | ) |
Pause the audio file stream.
Pauses the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1348 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Record | ( | uint16_t * | pbuf, |
uint32_t | size | ||
) |
Start audio recording.
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 1234 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Resume | ( | void | ) |
Resume the audio file stream.
Resumes the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1384 of file stm32f769i_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Stop | ( | void | ) |
Stop audio recording.
Stops audio recording.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1287 of file stm32f769i_discovery_audio.c.
__weak void BSP_AUDIO_IN_TransferComplete_CallBack | ( | void | ) |
User callback when record buffer is filled.
None |
Definition at line 1615 of file stm32f769i_discovery_audio.c.
|
static |
DeInitialize the DFSDM channel MSP.
None |
Definition at line 2046 of file stm32f769i_discovery_audio.c.
|
static |
Initialize the DFSDM channel MSP.
None |
Definition at line 2009 of file stm32f769i_discovery_audio.c.
|
static |
De-initialize the Digital Filter for Sigma-Delta Modulators interface (DFSDM).
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1953 of file stm32f769i_discovery_audio.c.
|
static |
DeInitialize the DFSDM filter MSP.
None |
Definition at line 2184 of file stm32f769i_discovery_audio.c.
|
static |
Initialize the DFSDM filter MSP.
None |
Definition at line 2070 of file stm32f769i_discovery_audio.c.
|
static |
Initialize the Digital Filter for Sigma-Delta Modulators interface (DFSDM).
AudioFreq | Audio frequency to be used to set correctly the DFSDM peripheral. |
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 1743 of file stm32f769i_discovery_audio.c.
void HAL_DFSDM_FilterRegConvCpltCallback | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter | ) |
Regular conversion complete callback.
hdfsdm_filter | : DFSDM filter handle. |
None |
Definition at line 1441 of file stm32f769i_discovery_audio.c.
void HAL_DFSDM_FilterRegConvHalfCpltCallback | ( | DFSDM_Filter_HandleTypeDef * | hdfsdm_filter | ) |
Half regular conversion complete callback.
hdfsdm_filter | : DFSDM filter handle. |
None |
Definition at line 1517 of file stm32f769i_discovery_audio.c.
void HAL_SAI_RxCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Reception complete callback.
hsai | : SAI handle. |
None |
Definition at line 1605 of file stm32f769i_discovery_audio.c.
void HAL_SAI_RxHalfCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Half reception complete callback.
hsai | : SAI handle. |
None |
Definition at line 1593 of file stm32f769i_discovery_audio.c.