Macros
STM32F411E DISCOVERY AUDIO OUT Exported Constants
Collaboration diagram for STM32F411E DISCOVERY AUDIO OUT Exported Constants:

Macros

#define AUDIO_ERROR   1
 
#define AUDIO_IN_IRQ_PREPRIO   0x0F /* Select the preemption priority level(0 is the highest) */
 
#define AUDIO_OK   0
 
#define AUDIO_OUT_IRQ_PREPRIO   0x0E /* Select the preemption priority level(0 is the highest) */
 
#define AUDIO_TIMEOUT   2
 
#define AUDIODATA_SIZE   2 /* 16-bits audio data size */
 
#define CHANNEL_DEMUX_MASK   0x55
 
#define DEFAULT_AUDIO_IN_BIT_RESOLUTION   16
 
#define DEFAULT_AUDIO_IN_CHANNEL_NBR   1 /* Mono = 1, Stereo = 2 */
 
#define DEFAULT_AUDIO_IN_FREQ   I2S_AUDIOFREQ_16K
 
#define DEFAULT_AUDIO_IN_VOLUME   64
 
#define DMA_MAX_SZE   0xFFFF
 
#define I2S2   SPI2
 
#define I2S2_CLK_DISABLE()   __HAL_RCC_SPI2_CLK_DISABLE()
 
#define I2S2_CLK_ENABLE()   __HAL_RCC_SPI2_CLK_ENABLE()
 
#define I2S2_DMAx_CHANNEL   DMA_CHANNEL_0
 
#define I2S2_DMAx_CLK_DISABLE()   __HAL_RCC_DMA1_CLK_DISABLE()
 
#define I2S2_DMAx_CLK_ENABLE()   __HAL_RCC_DMA1_CLK_ENABLE()
 
#define I2S2_DMAx_IRQ   DMA1_Stream3_IRQn
 
#define I2S2_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD
 
#define I2S2_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD
 
#define I2S2_DMAx_STREAM   DMA1_Stream3
 
#define I2S2_IRQHandler   DMA1_Stream3_IRQHandler
 
#define I2S2_MOSI_AF   GPIO_AF5_SPI2
 
#define I2S2_MOSI_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
 
#define I2S2_MOSI_GPIO_PORT   GPIOC
 
#define I2S2_MOSI_PIN   GPIO_PIN_3
 
#define I2S2_SCK_AF   GPIO_AF5_SPI2
 
#define I2S2_SCK_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define I2S2_SCK_GPIO_PORT   GPIOB
 
#define I2S2_SCK_PIN   GPIO_PIN_10
 
#define I2S3   SPI3
 
#define I2S3_CLK_DISABLE()   __HAL_RCC_SPI3_CLK_DISABLE()
 
#define I2S3_CLK_ENABLE()   __HAL_RCC_SPI3_CLK_ENABLE()
 
#define I2S3_DMAx_CHANNEL   DMA_CHANNEL_0
 
#define I2S3_DMAx_CLK_DISABLE()   __HAL_RCC_DMA1_CLK_DISABLE()
 
#define I2S3_DMAx_CLK_ENABLE()   __HAL_RCC_DMA1_CLK_ENABLE()
 
#define I2S3_DMAx_IRQ   DMA1_Stream7_IRQn
 
#define I2S3_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD
 
#define I2S3_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD
 
#define I2S3_DMAx_STREAM   DMA1_Stream7
 
#define I2S3_IRQHandler   DMA1_Stream7_IRQHandler
 
#define I2S3_MCK_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
 
#define I2S3_MCK_GPIO_PORT   GPIOC
 
#define I2S3_MCK_PIN   GPIO_PIN_7
 
#define I2S3_SCK_PIN   GPIO_PIN_10
 
#define I2S3_SCK_SD_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
 
#define I2S3_SCK_SD_GPIO_PORT   GPIOC
 
#define I2S3_SCK_SD_WS_AF   GPIO_AF6_SPI3
 
#define I2S3_SD_PIN   GPIO_PIN_12
 
#define I2S3_WS_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
 
#define I2S3_WS_GPIO_PORT   GPIOA
 
#define I2S3_WS_PIN   GPIO_PIN_4
 
#define INTERNAL_BUFF_SIZE   128*DEFAULT_AUDIO_IN_FREQ/16000*DEFAULT_AUDIO_IN_CHANNEL_NBR
 
#define PCM_OUT_SIZE   DEFAULT_AUDIO_IN_FREQ/1000
 

Detailed Description

Macro Definition Documentation

◆ AUDIO_ERROR

#define AUDIO_ERROR   1

Definition at line 148 of file stm32f411e_discovery_audio.h.

◆ AUDIO_IN_IRQ_PREPRIO

#define AUDIO_IN_IRQ_PREPRIO   0x0F /* Select the preemption priority level(0 is the highest) */

Definition at line 138 of file stm32f411e_discovery_audio.h.

◆ AUDIO_OK

#define AUDIO_OK   0

Definition at line 147 of file stm32f411e_discovery_audio.h.

◆ AUDIO_OUT_IRQ_PREPRIO

#define AUDIO_OUT_IRQ_PREPRIO   0x0E /* Select the preemption priority level(0 is the highest) */

Definition at line 107 of file stm32f411e_discovery_audio.h.

◆ AUDIO_TIMEOUT

#define AUDIO_TIMEOUT   2

Definition at line 149 of file stm32f411e_discovery_audio.h.

◆ AUDIODATA_SIZE

#define AUDIODATA_SIZE   2 /* 16-bits audio data size */

Definition at line 144 of file stm32f411e_discovery_audio.h.

◆ CHANNEL_DEMUX_MASK

#define CHANNEL_DEMUX_MASK   0x55

Definition at line 161 of file stm32f411e_discovery_audio.h.

◆ DEFAULT_AUDIO_IN_BIT_RESOLUTION

#define DEFAULT_AUDIO_IN_BIT_RESOLUTION   16

Definition at line 153 of file stm32f411e_discovery_audio.h.

◆ DEFAULT_AUDIO_IN_CHANNEL_NBR

#define DEFAULT_AUDIO_IN_CHANNEL_NBR   1 /* Mono = 1, Stereo = 2 */

Definition at line 154 of file stm32f411e_discovery_audio.h.

◆ DEFAULT_AUDIO_IN_FREQ

#define DEFAULT_AUDIO_IN_FREQ   I2S_AUDIOFREQ_16K

Definition at line 152 of file stm32f411e_discovery_audio.h.

◆ DEFAULT_AUDIO_IN_VOLUME

#define DEFAULT_AUDIO_IN_VOLUME   64

Definition at line 155 of file stm32f411e_discovery_audio.h.

◆ DMA_MAX_SZE

#define DMA_MAX_SZE   0xFFFF

Definition at line 102 of file stm32f411e_discovery_audio.h.

◆ I2S2

#define I2S2   SPI2

Definition at line 113 of file stm32f411e_discovery_audio.h.

◆ I2S2_CLK_DISABLE

#define I2S2_CLK_DISABLE ( )    __HAL_RCC_SPI2_CLK_DISABLE()

Definition at line 115 of file stm32f411e_discovery_audio.h.

◆ I2S2_CLK_ENABLE

#define I2S2_CLK_ENABLE ( )    __HAL_RCC_SPI2_CLK_ENABLE()

Definition at line 114 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_CHANNEL

#define I2S2_DMAx_CHANNEL   DMA_CHANNEL_0

Definition at line 130 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_CLK_DISABLE

#define I2S2_DMAx_CLK_DISABLE ( )    __HAL_RCC_DMA1_CLK_DISABLE()

Definition at line 128 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_CLK_ENABLE

#define I2S2_DMAx_CLK_ENABLE ( )    __HAL_RCC_DMA1_CLK_ENABLE()

Definition at line 127 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_IRQ

#define I2S2_DMAx_IRQ   DMA1_Stream3_IRQn

Definition at line 131 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_MEM_DATA_SIZE

#define I2S2_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD

Definition at line 133 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_PERIPH_DATA_SIZE

#define I2S2_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD

Definition at line 132 of file stm32f411e_discovery_audio.h.

◆ I2S2_DMAx_STREAM

#define I2S2_DMAx_STREAM   DMA1_Stream3

Definition at line 129 of file stm32f411e_discovery_audio.h.

◆ I2S2_IRQHandler

#define I2S2_IRQHandler   DMA1_Stream3_IRQHandler

Definition at line 135 of file stm32f411e_discovery_audio.h.

◆ I2S2_MOSI_AF

#define I2S2_MOSI_AF   GPIO_AF5_SPI2

Definition at line 124 of file stm32f411e_discovery_audio.h.

◆ I2S2_MOSI_GPIO_CLK_ENABLE

#define I2S2_MOSI_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 123 of file stm32f411e_discovery_audio.h.

◆ I2S2_MOSI_GPIO_PORT

#define I2S2_MOSI_GPIO_PORT   GPIOC

Definition at line 122 of file stm32f411e_discovery_audio.h.

◆ I2S2_MOSI_PIN

#define I2S2_MOSI_PIN   GPIO_PIN_3

Definition at line 121 of file stm32f411e_discovery_audio.h.

◆ I2S2_SCK_AF

#define I2S2_SCK_AF   GPIO_AF5_SPI2

Definition at line 119 of file stm32f411e_discovery_audio.h.

◆ I2S2_SCK_GPIO_CLK_ENABLE

#define I2S2_SCK_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 118 of file stm32f411e_discovery_audio.h.

◆ I2S2_SCK_GPIO_PORT

#define I2S2_SCK_GPIO_PORT   GPIOB

Definition at line 117 of file stm32f411e_discovery_audio.h.

◆ I2S2_SCK_PIN

#define I2S2_SCK_PIN   GPIO_PIN_10

Definition at line 116 of file stm32f411e_discovery_audio.h.

◆ I2S3

#define I2S3   SPI3

Definition at line 79 of file stm32f411e_discovery_audio.h.

◆ I2S3_CLK_DISABLE

#define I2S3_CLK_DISABLE ( )    __HAL_RCC_SPI3_CLK_DISABLE()

Definition at line 81 of file stm32f411e_discovery_audio.h.

◆ I2S3_CLK_ENABLE

#define I2S3_CLK_ENABLE ( )    __HAL_RCC_SPI3_CLK_ENABLE()

Definition at line 80 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_CHANNEL

#define I2S3_DMAx_CHANNEL   DMA_CHANNEL_0

Definition at line 98 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_CLK_DISABLE

#define I2S3_DMAx_CLK_DISABLE ( )    __HAL_RCC_DMA1_CLK_DISABLE()

Definition at line 96 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_CLK_ENABLE

#define I2S3_DMAx_CLK_ENABLE ( )    __HAL_RCC_DMA1_CLK_ENABLE()

Definition at line 95 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_IRQ

#define I2S3_DMAx_IRQ   DMA1_Stream7_IRQn

Definition at line 99 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_MEM_DATA_SIZE

#define I2S3_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD

Definition at line 101 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_PERIPH_DATA_SIZE

#define I2S3_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD

Definition at line 100 of file stm32f411e_discovery_audio.h.

◆ I2S3_DMAx_STREAM

#define I2S3_DMAx_STREAM   DMA1_Stream7

Definition at line 97 of file stm32f411e_discovery_audio.h.

◆ I2S3_IRQHandler

#define I2S3_IRQHandler   DMA1_Stream7_IRQHandler

Definition at line 104 of file stm32f411e_discovery_audio.h.

◆ I2S3_MCK_CLK_ENABLE

#define I2S3_MCK_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 84 of file stm32f411e_discovery_audio.h.

◆ I2S3_MCK_GPIO_PORT

#define I2S3_MCK_GPIO_PORT   GPIOC

Definition at line 92 of file stm32f411e_discovery_audio.h.

◆ I2S3_MCK_PIN

#define I2S3_MCK_PIN   GPIO_PIN_7

Definition at line 89 of file stm32f411e_discovery_audio.h.

◆ I2S3_SCK_PIN

#define I2S3_SCK_PIN   GPIO_PIN_10

Definition at line 87 of file stm32f411e_discovery_audio.h.

◆ I2S3_SCK_SD_CLK_ENABLE

#define I2S3_SCK_SD_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 83 of file stm32f411e_discovery_audio.h.

◆ I2S3_SCK_SD_GPIO_PORT

#define I2S3_SCK_SD_GPIO_PORT   GPIOC

Definition at line 90 of file stm32f411e_discovery_audio.h.

◆ I2S3_SCK_SD_WS_AF

#define I2S3_SCK_SD_WS_AF   GPIO_AF6_SPI3

Definition at line 82 of file stm32f411e_discovery_audio.h.

◆ I2S3_SD_PIN

#define I2S3_SD_PIN   GPIO_PIN_12

Definition at line 88 of file stm32f411e_discovery_audio.h.

◆ I2S3_WS_CLK_ENABLE

#define I2S3_WS_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 85 of file stm32f411e_discovery_audio.h.

◆ I2S3_WS_GPIO_PORT

#define I2S3_WS_GPIO_PORT   GPIOA

Definition at line 91 of file stm32f411e_discovery_audio.h.

◆ I2S3_WS_PIN

#define I2S3_WS_PIN   GPIO_PIN_4

Definition at line 86 of file stm32f411e_discovery_audio.h.

◆ INTERNAL_BUFF_SIZE

#define INTERNAL_BUFF_SIZE   128*DEFAULT_AUDIO_IN_FREQ/16000*DEFAULT_AUDIO_IN_CHANNEL_NBR

Definition at line 158 of file stm32f411e_discovery_audio.h.

◆ PCM_OUT_SIZE

#define PCM_OUT_SIZE   DEFAULT_AUDIO_IN_FREQ/1000

Definition at line 160 of file stm32f411e_discovery_audio.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:07