#define AUDIO_ERROR 1 |
Definition at line 148 of file stm32f411e_discovery_audio.h.
#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.
#define AUDIO_OK 0 |
Definition at line 147 of file stm32f411e_discovery_audio.h.
#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.
#define AUDIO_TIMEOUT 2 |
Definition at line 149 of file stm32f411e_discovery_audio.h.
#define AUDIODATA_SIZE 2 /* 16-bits audio data size */ |
Definition at line 144 of file stm32f411e_discovery_audio.h.
#define CHANNEL_DEMUX_MASK 0x55 |
Definition at line 161 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_BIT_RESOLUTION 16 |
Definition at line 153 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_CHANNEL_NBR 1 /* Mono = 1, Stereo = 2 */ |
Definition at line 154 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_FREQ I2S_AUDIOFREQ_16K |
Definition at line 152 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_VOLUME 64 |
Definition at line 155 of file stm32f411e_discovery_audio.h.
#define DMA_MAX_SZE 0xFFFF |
Definition at line 102 of file stm32f411e_discovery_audio.h.
#define I2S2 SPI2 |
Definition at line 113 of file stm32f411e_discovery_audio.h.
#define I2S2_CLK_DISABLE | ( | ) | __HAL_RCC_SPI2_CLK_DISABLE() |
Definition at line 115 of file stm32f411e_discovery_audio.h.
#define I2S2_CLK_ENABLE | ( | ) | __HAL_RCC_SPI2_CLK_ENABLE() |
Definition at line 114 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_CHANNEL DMA_CHANNEL_0 |
Definition at line 130 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_CLK_DISABLE | ( | ) | __HAL_RCC_DMA1_CLK_DISABLE() |
Definition at line 128 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA1_CLK_ENABLE() |
Definition at line 127 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_IRQ DMA1_Stream3_IRQn |
Definition at line 131 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 133 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 132 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_STREAM DMA1_Stream3 |
Definition at line 129 of file stm32f411e_discovery_audio.h.
#define I2S2_IRQHandler DMA1_Stream3_IRQHandler |
Definition at line 135 of file stm32f411e_discovery_audio.h.
#define I2S2_MOSI_AF GPIO_AF5_SPI2 |
Definition at line 124 of file stm32f411e_discovery_audio.h.
#define I2S2_MOSI_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 123 of file stm32f411e_discovery_audio.h.
#define I2S2_MOSI_GPIO_PORT GPIOC |
Definition at line 122 of file stm32f411e_discovery_audio.h.
#define I2S2_MOSI_PIN GPIO_PIN_3 |
Definition at line 121 of file stm32f411e_discovery_audio.h.
#define I2S2_SCK_AF GPIO_AF5_SPI2 |
Definition at line 119 of file stm32f411e_discovery_audio.h.
#define I2S2_SCK_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 118 of file stm32f411e_discovery_audio.h.
#define I2S2_SCK_GPIO_PORT GPIOB |
Definition at line 117 of file stm32f411e_discovery_audio.h.
#define I2S2_SCK_PIN GPIO_PIN_10 |
Definition at line 116 of file stm32f411e_discovery_audio.h.
#define I2S3 SPI3 |
Definition at line 79 of file stm32f411e_discovery_audio.h.
#define I2S3_CLK_DISABLE | ( | ) | __HAL_RCC_SPI3_CLK_DISABLE() |
Definition at line 81 of file stm32f411e_discovery_audio.h.
#define I2S3_CLK_ENABLE | ( | ) | __HAL_RCC_SPI3_CLK_ENABLE() |
Definition at line 80 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_CHANNEL DMA_CHANNEL_0 |
Definition at line 98 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_CLK_DISABLE | ( | ) | __HAL_RCC_DMA1_CLK_DISABLE() |
Definition at line 96 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA1_CLK_ENABLE() |
Definition at line 95 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_IRQ DMA1_Stream7_IRQn |
Definition at line 99 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 101 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 100 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_STREAM DMA1_Stream7 |
Definition at line 97 of file stm32f411e_discovery_audio.h.
#define I2S3_IRQHandler DMA1_Stream7_IRQHandler |
Definition at line 104 of file stm32f411e_discovery_audio.h.
#define I2S3_MCK_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 84 of file stm32f411e_discovery_audio.h.
#define I2S3_MCK_GPIO_PORT GPIOC |
Definition at line 92 of file stm32f411e_discovery_audio.h.
#define I2S3_MCK_PIN GPIO_PIN_7 |
Definition at line 89 of file stm32f411e_discovery_audio.h.
#define I2S3_SCK_PIN GPIO_PIN_10 |
Definition at line 87 of file stm32f411e_discovery_audio.h.
#define I2S3_SCK_SD_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 83 of file stm32f411e_discovery_audio.h.
#define I2S3_SCK_SD_GPIO_PORT GPIOC |
Definition at line 90 of file stm32f411e_discovery_audio.h.
#define I2S3_SCK_SD_WS_AF GPIO_AF6_SPI3 |
Definition at line 82 of file stm32f411e_discovery_audio.h.
#define I2S3_SD_PIN GPIO_PIN_12 |
Definition at line 88 of file stm32f411e_discovery_audio.h.
#define I2S3_WS_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 85 of file stm32f411e_discovery_audio.h.
#define I2S3_WS_GPIO_PORT GPIOA |
Definition at line 91 of file stm32f411e_discovery_audio.h.
#define I2S3_WS_PIN GPIO_PIN_4 |
Definition at line 86 of file stm32f411e_discovery_audio.h.
#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.
#define PCM_OUT_SIZE DEFAULT_AUDIO_IN_FREQ/1000 |
Definition at line 160 of file stm32f411e_discovery_audio.h.