STSW-STLKT01
|
This file provides the Audio In driver for the Sensor Tile board. More...
Go to the source code of this file.
Macros | |
#define | SaturaLH(N, L, H) (((N)<(L))?(L):(((N)>(H))?(H):(N))) |
#define | OverSampling(__FREQUENCY__) |
#define | ClockDivider(__FREQUENCY__) |
Functions | |
static void | DFSDMx_FilterMspInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
Initializes the DFSDM filter MSP. More... | |
static uint8_t | DFSDMx_Init (uint32_t AudioFreq, uint32_t ChnlNbr) |
Initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM). More... | |
static uint8_t | DFSDMx_DeInit (void) |
De-initializes the Digital Filter for Sigma-Delta Modulators interface (DFSDM). More... | |
static void | DFSDMx_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel) |
DeInitializes the DFSDM channel MSP. More... | |
static void | DFSDMx_FilterMspDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter) |
DeInitializes the DFSDM filter MSP. More... | |
uint8_t | BSP_AUDIO_IN_Init (uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr) |
Initializes audio acquisition. More... | |
uint8_t | BSP_AUDIO_IN_DeInit (void) |
DeInitializes the audio peripheral. More... | |
__weak uint8_t | BSP_AUDIO_IN_ClockConfig (uint32_t AudioFreq, void *Params) |
Clock Config. More... | |
uint8_t | BSP_AUDIO_IN_Record (uint16_t *pbuf, uint32_t size) |
Starts audio recording. More... | |
uint8_t | BSP_AUDIO_IN_Stop (void) |
Stops audio recording. More... | |
uint8_t | BSP_AUDIO_IN_Pause (void) |
Pauses the audio file stream. 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... | |
__weak void | BSP_AUDIO_IN_Error_Callback (void) |
Audio IN Error callback function. 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... | |
__weak void | BSP_AUDIO_IN_TransferComplete_CallBack (void) |
User callback when record buffer is filled. More... | |
__weak void | BSP_AUDIO_IN_HalfTransfer_CallBack (void) |
User callback when record buffer is half filled. More... | |
Variables | |
static SENSORTILE_AudioIn_HandlerTypeDef | SENSORTILE_AudioIn_Handler |
DFSDM_Channel_HandleTypeDef | haudio_in_dfsdmchannel [MAX_CH_NUMBER] |
DFSDM_Filter_HandleTypeDef | haudio_in_dfsdmfilter [MAX_CH_NUMBER] |
DMA_HandleTypeDef | hdma_dfsdmReg_FLT [MAX_CH_NUMBER] |
int32_t | RecBuff [MAX_CH_NUMBER][MAX_SAMPLES_PER_CH] |
static uint16_t | AudioInVolume = DEFAULT_AUDIO_IN_VOLUME |
Detailed Description
This file provides the Audio In driver for the Sensor Tile board.
- Author
- Central Labs
- Version
- V1.3.1
- Date
- 27-Apr-2017
- Attention
© COPYRIGHT(c) 2014 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file SensorTile_audio_in.c.
Generated by
