Macros | Functions
micCapture_saiPdm.c File Reference
#include "micCapture_saiPdm.h"
#include "pdm2pcm.h"
#include "micCapture_task.h"
#include "stdio.h"
Include dependency graph for micCapture_saiPdm.c:

Go to the source code of this file.

Macros

#define MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS   ".NOCACHE_Section"
 
#define MIC_CAPTURE_PCM_BUFF_SIZE_SAMPLES   (MIC_CAPTURE_IT_MS * 16) /* ms @16kHz */
 
#define MIC_CAPTURE_PDM_BUFF_SIZE_BYTES   (MIC_CAPTURE_IT_MS * 2 * 2048 / 8) /* 256 kHz frequency expected on SAI ; 2x for pingPong */
 

Functions

 __attribute__ ((__section__(MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS)))
 
void HAL_SAI_ErrorCallback (SAI_HandleTypeDef *hsai)
 SAI error callbacks. More...
 
void HAL_SAI_RxCpltCallback (SAI_HandleTypeDef *hsai)
 Reception complete callback. More...
 
void HAL_SAI_RxHalfCpltCallback (SAI_HandleTypeDef *hsai)
 Re targets the C library printf function to the USART. More...
 

Macro Definition Documentation

◆ MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS

#define MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS   ".NOCACHE_Section"

IAR Compiler

Definition at line 15 of file micCapture_saiPdm.c.

◆ MIC_CAPTURE_PCM_BUFF_SIZE_SAMPLES

#define MIC_CAPTURE_PCM_BUFF_SIZE_SAMPLES   (MIC_CAPTURE_IT_MS * 16) /* ms @16kHz */

Definition at line 14 of file micCapture_saiPdm.c.

◆ MIC_CAPTURE_PDM_BUFF_SIZE_BYTES

#define MIC_CAPTURE_PDM_BUFF_SIZE_BYTES   (MIC_CAPTURE_IT_MS * 2 * 2048 / 8) /* 256 kHz frequency expected on SAI ; 2x for pingPong */

Definition at line 13 of file micCapture_saiPdm.c.

Function Documentation

◆ __attribute__()

__attribute__ ( (__section__(MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS))  )

Definition at line 29 of file micCapture_saiPdm.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:58