
Functions | |
| int32_t | BSP_AUDIO_IN_DeInit (uint32_t Instance) | 
| Deinit the audio IN peripherals.  More... | |
| __weak void | BSP_AUDIO_IN_Error_CallBack (uint32_t Instance) | 
| Audio IN Error callback function.  More... | |
| int32_t | BSP_AUDIO_IN_GetBitsPerSample (uint32_t Instance, uint32_t *BitsPerSample) | 
| Get Audio In Resolution.  More... | |
| int32_t | BSP_AUDIO_IN_GetChannelsNbr (uint32_t Instance, uint32_t *ChannelNbr) | 
| Get Audio In Channel number.  More... | |
| int32_t | BSP_AUDIO_IN_GetDevice (uint32_t Instance, uint32_t *Device) | 
| Get Audio In device.  More... | |
| int32_t | BSP_AUDIO_IN_GetSampleRate (uint32_t Instance, uint32_t *SampleRate) | 
| Get Audio In frequency.  More... | |
| int32_t | BSP_AUDIO_IN_GetState (uint32_t Instance, uint32_t *State) | 
| Get Audio In device.  More... | |
| int32_t | BSP_AUDIO_IN_GetVolume (uint32_t Instance, uint32_t *Volume) | 
| Get the current audio in volume level.  More... | |
| __weak void | BSP_AUDIO_IN_HalfTransfer_CallBack (uint32_t Instance) | 
| Manages the DMA Half Transfer complete event.  More... | |
| int32_t | BSP_AUDIO_IN_Init (uint32_t Instance, BSP_AUDIO_Init_t *AudioInit) | 
| Initialize wave recording.  More... | |
| void | BSP_AUDIO_IN_IRQHandler (uint32_t Instance, uint32_t InputDevice) | 
| This function handles Audio Out DMA interrupt requests.  More... | |
| int32_t | BSP_AUDIO_IN_Pause (uint32_t Instance) | 
| Pause the audio file stream.  More... | |
| int32_t | BSP_AUDIO_IN_PDMToPCM (uint32_t Instance, uint16_t *PDMBuf, uint16_t *PCMBuf) | 
| Converts audio format from PDM to PCM.  More... | |
| int32_t | BSP_AUDIO_IN_PDMToPCM_Init (uint32_t Instance, uint32_t AudioFreq, uint32_t ChnlNbrIn, uint32_t ChnlNbrOut) | 
| Initialize the PDM library.  More... | |
| int32_t | BSP_AUDIO_IN_Record (uint32_t Instance, uint8_t *pBuf, uint32_t NbrOfBytes) | 
| Start audio recording.  More... | |
| int32_t | BSP_AUDIO_IN_RecordPDM (uint32_t Instance, uint8_t *pBuf, uint32_t NbrOfBytes) | 
| Start audio recording.  More... | |
| int32_t | BSP_AUDIO_IN_Resume (uint32_t Instance) | 
| Resume the audio file stream.  More... | |
| int32_t | BSP_AUDIO_IN_SetBitsPerSample (uint32_t Instance, uint32_t BitsPerSample) | 
| Set Audio In Resolution.  More... | |
| int32_t | BSP_AUDIO_IN_SetChannelsNbr (uint32_t Instance, uint32_t ChannelNbr) | 
| Set Audio In Channel number.  More... | |
| int32_t | BSP_AUDIO_IN_SetDevice (uint32_t Instance, uint32_t Device) | 
| Set Audio In device.  More... | |
| int32_t | BSP_AUDIO_IN_SetSampleRate (uint32_t Instance, uint32_t SampleRate) | 
| Set Audio In frequency.  More... | |
| int32_t | BSP_AUDIO_IN_SetVolume (uint32_t Instance, uint32_t Volume) | 
| Set the current audio in volume level.  More... | |
| int32_t | BSP_AUDIO_IN_Stop (uint32_t Instance) | 
| Stop audio recording.  More... | |
| __weak void | BSP_AUDIO_IN_TransferComplete_CallBack (uint32_t Instance) | 
| User callback when record buffer is filled.  More... | |
| void | HAL_SAI_RxCpltCallback (SAI_HandleTypeDef *hsai) | 
| Reception complete callback.  More... | |
| void | HAL_SAI_RxHalfCpltCallback (SAI_HandleTypeDef *hsai) | 
| Half reception complete callback.  More... | |
| __weak HAL_StatusTypeDef | MX_SAI1_Block_B_Init (SAI_HandleTypeDef *hsai, MX_SAI_Config_t *MXConfig) | 
| Initializes the Audio Codec audio in instance (SAI).  More... | |
| __weak HAL_StatusTypeDef | MX_SAI4_Block_A_Init (SAI_HandleTypeDef *hsai, MX_SAI_Config_t *MXConfig) | 
| Initializes the Audio Codec audio in instance (SAI).  More... | |
| int32_t BSP_AUDIO_IN_DeInit | ( | uint32_t | Instance | ) | 
Deinit the audio IN peripherals.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used or 1 if PDM is used | 
| BSP | status | 
Definition at line 1574 of file stm32h747i_discovery_audio.c.
| void BSP_AUDIO_IN_Error_CallBack | ( | uint32_t | Instance | ) | 
Audio IN Error callback function.
| None | 
Definition at line 2487 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetBitsPerSample | ( | uint32_t | Instance, | 
| uint32_t * | BitsPerSample | ||
| ) | 
Get Audio In Resolution.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| BitsPerSample | Input resolution to be returned | 
| BSP | status | 
Definition at line 2269 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetChannelsNbr | ( | uint32_t | Instance, | 
| uint32_t * | ChannelNbr | ||
| ) | 
Get Audio In Channel number.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| ChannelNbr | Channel number to be used | 
| BSP | status | 
Definition at line 2314 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetDevice | ( | uint32_t | Instance, | 
| uint32_t * | Device | ||
| ) | 
Get Audio In device.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used or 1 | 
| Device | The audio input device used | 
| BSP | status | 
Definition at line 2148 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetSampleRate | ( | uint32_t | Instance, | 
| uint32_t * | SampleRate | ||
| ) | 
Get Audio In frequency.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| SampleRate | Audio Input frequency to be returned | 
| BSP | status | 
Definition at line 2207 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetState | ( | uint32_t | Instance, | 
| uint32_t * | State | ||
| ) | 
Get Audio In device.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| State | Audio Out state | 
| BSP | status | 
Definition at line 2385 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_GetVolume | ( | uint32_t | Instance, | 
| uint32_t * | Volume | ||
| ) | 
Get the current audio in volume level.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| Volume | Volume level to be returnd | 
| BSP | status | 
Definition at line 2363 of file stm32h747i_discovery_audio.c.
| void BSP_AUDIO_IN_HalfTransfer_CallBack | ( | uint32_t | Instance | ) | 
Manages the DMA Half Transfer complete event.
| None | 
Definition at line 2473 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_Init | ( | uint32_t | Instance, | 
| BSP_AUDIO_Init_t * | AudioInit | ||
| ) | 
Initialize wave recording.
| Instance | AUDIO IN Instance. It can be:
  | 
| AudioInit | Init structure | 
| BSP | status | 
Definition at line 1374 of file stm32h747i_discovery_audio.c.
| void BSP_AUDIO_IN_IRQHandler | ( | uint32_t | Instance, | 
| uint32_t | InputDevice | ||
| ) | 
This function handles Audio Out DMA interrupt requests.
| Instance | Audio IN instance: 0 for SAI, 1 for SAI PDM | 
| InputDevice | Can be:
  | 
| None | 
Definition at line 2409 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_Pause | ( | uint32_t | Instance | ) | 
Pause the audio file stream.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| BSP | status | 
Definition at line 2001 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_PDMToPCM | ( | uint32_t | Instance, | 
| uint16_t * | PDMBuf, | ||
| uint16_t * | PCMBuf | ||
| ) | 
Converts audio format from PDM to PCM.
| Instance | AUDIO IN Instance | 
| PDMBuf | Pointer to PDM buffer data | 
| PCMBuf | Pointer to PCM buffer data | 
| BSP | status | 
Definition at line 1908 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_PDMToPCM_Init | ( | uint32_t | Instance, | 
| uint32_t | AudioFreq, | ||
| uint32_t | ChnlNbrIn, | ||
| uint32_t | ChnlNbrOut | ||
| ) | 
Initialize the PDM library.
| Instance | AUDIO IN Instance | 
| 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 | 
| BSP | status | 
Definition at line 1866 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_Record | ( | uint32_t | Instance, | 
| uint8_t * | pBuf, | ||
| uint32_t | NbrOfBytes | ||
| ) | 
Start audio recording.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| pBuf | Main buffer pointer for the recorded data storing | 
| NbrOfBytes | Size of the record buffer | 
| BSP | status | 
Definition at line 1934 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_RecordPDM | ( | uint32_t | Instance, | 
| uint8_t * | pBuf, | ||
| uint32_t | NbrOfBytes | ||
| ) | 
Start audio recording.
| Instance | AUDIO IN SAI PDM Instance. It can be only 2 | 
| pBuf | Main buffer pointer for the recorded data storing | 
| NbrOfBytes | Size of the record buffer | 
| BSP | status | 
Definition at line 2082 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_Resume | ( | uint32_t | Instance | ) | 
Resume the audio file stream.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| BSP | status | 
Definition at line 2040 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_SetBitsPerSample | ( | uint32_t | Instance, | 
| uint32_t | BitsPerSample | ||
| ) | 
Set Audio In Resolution.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| BitsPerSample | Input resolution to be set | 
| BSP | status | 
Definition at line 2231 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_SetChannelsNbr | ( | uint32_t | Instance, | 
| uint32_t | ChannelNbr | ||
| ) | 
Set Audio In Channel number.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| ChannelNbr | Channel number to be used | 
| BSP | status | 
Definition at line 2291 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_SetDevice | ( | uint32_t | Instance, | 
| uint32_t | Device | ||
| ) | 
Set Audio In device.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| Device | The audio input device to be used | 
| BSP | status | 
Definition at line 2110 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_SetSampleRate | ( | uint32_t | Instance, | 
| uint32_t | SampleRate | ||
| ) | 
Set Audio In frequency.
| Instance | Audio IN instance | 
| SampleRate | Input frequency to be set | 
| BSP | status | 
Definition at line 2170 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_SetVolume | ( | uint32_t | Instance, | 
| uint32_t | Volume | ||
| ) | 
Set the current audio in volume level.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| Volume | Volume level to be returnd | 
| BSP | status | 
Definition at line 2336 of file stm32h747i_discovery_audio.c.
| int32_t BSP_AUDIO_IN_Stop | ( | uint32_t | Instance | ) | 
Stop audio recording.
| Instance | AUDIO IN Instance. It can be 0 when SAI is used | 
| BSP | status | 
Definition at line 1959 of file stm32h747i_discovery_audio.c.
| void BSP_AUDIO_IN_TransferComplete_CallBack | ( | uint32_t | Instance | ) | 
User callback when record buffer is filled.
| None | 
Definition at line 2459 of file stm32h747i_discovery_audio.c.
| void HAL_SAI_RxCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) | 
Reception complete callback.
| hsai | SAI handle. | 
| None | 
Definition at line 2441 of file stm32h747i_discovery_audio.c.
| void HAL_SAI_RxHalfCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) | 
Half reception complete callback.
| hsai | SAI handle. | 
| None | 
Definition at line 2423 of file stm32h747i_discovery_audio.c.
| HAL_StatusTypeDef MX_SAI1_Block_B_Init | ( | SAI_HandleTypeDef * | hsai, | 
| MX_SAI_Config_t * | MXConfig | ||
| ) | 
Initializes the Audio Codec audio in instance (SAI).
| hsai | SAI handle | 
| MXConfig | SAI configuration structure | 
| HAL | status | 
Definition at line 1652 of file stm32h747i_discovery_audio.c.
| HAL_StatusTypeDef MX_SAI4_Block_A_Init | ( | SAI_HandleTypeDef * | hsai, | 
| MX_SAI_Config_t * | MXConfig | ||
| ) | 
Initializes the Audio Codec audio in instance (SAI).
| hsai | SAI handle | 
| MXConfig | SAI configuration structure | 
| HAL | status | 
Definition at line 1708 of file stm32h747i_discovery_audio.c.