Functions | |
uint8_t | BSP_AUDIO_IN_AllocScratch (int32_t *pScratch, uint32_t size) |
Allocate channel buffer scratch. More... | |
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... | |
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... | |
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... | |
uint8_t | BSP_AUDIO_IN_InitEx (uint16_t InputDevice, uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr) |
Initialize wave recording. More... | |
void | BSP_AUDIO_IN_MspDeInit (void) |
DeInitialize BSP_AUDIO_IN MSP. More... | |
void | BSP_AUDIO_IN_MspInit (void) |
Initialize BSP_AUDIO_IN MSP. More... | |
uint8_t | BSP_AUDIO_IN_Pause (void) |
Pauses the audio file stream. More... | |
uint8_t | BSP_AUDIO_IN_Record (uint16_t *pData, 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_Stop (void) |
Stops audio recording. More... | |
void | BSP_AUDIO_IN_TransferComplete_CallBack (void) |
User callback when record buffer is filled. 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.
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 1036 of file stm32469i_discovery_audio.c.
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.
void BSP_AUDIO_IN_HalfTransfer_CallBack | ( | void | ) |
Manages the DMA Half Transfer complete event.
None |
Definition at line 1011 of file stm32f4_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 |
AudioFreq | Audio frequency to be configured for the I2S peripheral. |
BitRes | Audio Bit resolution. |
ChnlNbr | Audio Channel number. |
AUDIO_OK | if correct communication, else wrong communication |
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 |
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 705 of file stm32f4_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.
void BSP_AUDIO_IN_MspDeInit | ( | void | ) |
DeInitialize BSP_AUDIO_IN MSP.
None |
Definition at line 1666 of file stm32f769i_discovery_audio.c.
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 | ) |
Pauses the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Pauses the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 771 of file stm32f4_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 |
pbuf | Main buffer pointer for the recorded data storing |
size | Current size of the recorded buffer |
AUDIO_OK | if correct communication, else wrong communication |
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 737 of file stm32f4_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Resume | ( | void | ) |
Resumes the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Resumes the audio file stream.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 784 of file stm32f4_discovery_audio.c.
uint8_t BSP_AUDIO_IN_Stop | ( | void | ) |
Stops audio recording.
AUDIO_OK | if correct communication, else wrong communication |
Stops audio recording.
AUDIO_OK | if correct communication, else wrong communication |
Definition at line 754 of file stm32f4_discovery_audio.c.
void BSP_AUDIO_IN_TransferComplete_CallBack | ( | void | ) |
User callback when record buffer is filled.
None |
Definition at line 1001 of file stm32f4_discovery_audio.c.