STM32F411E-Discovery BSP User Manual
|
Defines | |
#define | I2S3 SPI3 |
#define | I2S3_CLK_ENABLE() __HAL_RCC_SPI3_CLK_ENABLE() |
#define | I2S3_CLK_DISABLE() __HAL_RCC_SPI3_CLK_DISABLE() |
#define | I2S3_SCK_SD_WS_AF GPIO_AF6_SPI3 |
#define | I2S3_SCK_SD_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | I2S3_MCK_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | I2S3_WS_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | I2S3_WS_PIN GPIO_PIN_4 |
#define | I2S3_SCK_PIN GPIO_PIN_10 |
#define | I2S3_SD_PIN GPIO_PIN_12 |
#define | I2S3_MCK_PIN GPIO_PIN_7 |
#define | I2S3_SCK_SD_GPIO_PORT GPIOC |
#define | I2S3_WS_GPIO_PORT GPIOA |
#define | I2S3_MCK_GPIO_PORT GPIOC |
#define | I2S3_DMAx_CLK_ENABLE() __HAL_RCC_DMA1_CLK_ENABLE() |
#define | I2S3_DMAx_CLK_DISABLE() __HAL_RCC_DMA1_CLK_DISABLE() |
#define | I2S3_DMAx_STREAM DMA1_Stream7 |
#define | I2S3_DMAx_CHANNEL DMA_CHANNEL_0 |
#define | I2S3_DMAx_IRQ DMA1_Stream7_IRQn |
#define | I2S3_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
#define | I2S3_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
#define | DMA_MAX_SZE 0xFFFF |
#define | I2S3_IRQHandler DMA1_Stream7_IRQHandler |
#define | AUDIO_OUT_IRQ_PREPRIO 0x0E /* Select the preemption priority level(0 is the highest) */ |
#define | I2S2 SPI2 |
#define | I2S2_CLK_ENABLE() __HAL_RCC_SPI2_CLK_ENABLE() |
#define | I2S2_CLK_DISABLE() __HAL_RCC_SPI2_CLK_DISABLE() |
#define | I2S2_SCK_PIN GPIO_PIN_10 |
#define | I2S2_SCK_GPIO_PORT GPIOB |
#define | I2S2_SCK_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | I2S2_SCK_AF GPIO_AF5_SPI2 |
#define | I2S2_MOSI_PIN GPIO_PIN_3 |
#define | I2S2_MOSI_GPIO_PORT GPIOC |
#define | I2S2_MOSI_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | I2S2_MOSI_AF GPIO_AF5_SPI2 |
#define | I2S2_DMAx_CLK_ENABLE() __HAL_RCC_DMA1_CLK_ENABLE() |
#define | I2S2_DMAx_CLK_DISABLE() __HAL_RCC_DMA1_CLK_DISABLE() |
#define | I2S2_DMAx_STREAM DMA1_Stream3 |
#define | I2S2_DMAx_CHANNEL DMA_CHANNEL_0 |
#define | I2S2_DMAx_IRQ DMA1_Stream3_IRQn |
#define | I2S2_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
#define | I2S2_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
#define | I2S2_IRQHandler DMA1_Stream3_IRQHandler |
#define | AUDIO_IN_IRQ_PREPRIO 0x0F /* Select the preemption priority level(0 is the highest) */ |
#define | AUDIODATA_SIZE 2 /* 16-bits audio data size */ |
#define | AUDIO_OK 0 |
#define | AUDIO_ERROR 1 |
#define | AUDIO_TIMEOUT 2 |
#define | DEFAULT_AUDIO_IN_FREQ I2S_AUDIOFREQ_16K |
#define | DEFAULT_AUDIO_IN_BIT_RESOLUTION 16 |
#define | DEFAULT_AUDIO_IN_CHANNEL_NBR 1 /* Mono = 1, Stereo = 2 */ |
#define | DEFAULT_AUDIO_IN_VOLUME 64 |
#define | INTERNAL_BUFF_SIZE 128*DEFAULT_AUDIO_IN_FREQ/16000*DEFAULT_AUDIO_IN_CHANNEL_NBR |
#define | PCM_OUT_SIZE DEFAULT_AUDIO_IN_FREQ/1000 |
#define | CHANNEL_DEMUX_MASK 0x55 |
Define Documentation
#define AUDIO_ERROR 1 |
Definition at line 150 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_Record(), BSP_AUDIO_IN_Stop(), BSP_AUDIO_OUT_Init(), BSP_AUDIO_OUT_Pause(), BSP_AUDIO_OUT_Play(), BSP_AUDIO_OUT_Resume(), BSP_AUDIO_OUT_SetMute(), BSP_AUDIO_OUT_SetOutputMode(), BSP_AUDIO_OUT_SetVolume(), BSP_AUDIO_OUT_Stop(), I2S2_Init(), and I2S3_Init().
#define AUDIO_IN_IRQ_PREPRIO 0x0F /* Select the preemption priority level(0 is the highest) */ |
Definition at line 140 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_OK 0 |
Definition at line 149 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_Init(), BSP_AUDIO_IN_Pause(), BSP_AUDIO_IN_PDMToPCM(), BSP_AUDIO_IN_Record(), BSP_AUDIO_IN_Resume(), BSP_AUDIO_IN_SetVolume(), BSP_AUDIO_IN_Stop(), BSP_AUDIO_OUT_Init(), BSP_AUDIO_OUT_Pause(), BSP_AUDIO_OUT_Play(), BSP_AUDIO_OUT_Resume(), BSP_AUDIO_OUT_SetMute(), BSP_AUDIO_OUT_SetOutputMode(), BSP_AUDIO_OUT_SetVolume(), BSP_AUDIO_OUT_Stop(), I2S2_Init(), and I2S3_Init().
#define AUDIO_OUT_IRQ_PREPRIO 0x0E /* Select the preemption priority level(0 is the highest) */ |
Definition at line 109 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_TIMEOUT 2 |
Definition at line 151 of file stm32f411e_discovery_audio.h.
#define AUDIODATA_SIZE 2 /* 16-bits audio data size */ |
Definition at line 146 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_Play().
#define CHANNEL_DEMUX_MASK 0x55 |
Definition at line 163 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_BIT_RESOLUTION 16 |
Definition at line 155 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_CHANNEL_NBR 1 /* Mono = 1, Stereo = 2 */ |
Definition at line 156 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_PDMToPCM().
#define DEFAULT_AUDIO_IN_FREQ I2S_AUDIOFREQ_16K |
Definition at line 154 of file stm32f411e_discovery_audio.h.
#define DEFAULT_AUDIO_IN_VOLUME 64 |
Definition at line 157 of file stm32f411e_discovery_audio.h.
#define DMA_MAX_SZE 0xFFFF |
Definition at line 104 of file stm32f411e_discovery_audio.h.
#define I2S2 SPI2 |
Definition at line 115 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_Init(), BSP_AUDIO_IN_MspDeInit(), BSP_AUDIO_IN_MspInit(), HAL_I2S_ErrorCallback(), and I2S2_Init().
#define I2S2_CLK_DISABLE | ( | ) | __HAL_RCC_SPI2_CLK_DISABLE() |
Definition at line 117 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit().
#define I2S2_CLK_ENABLE | ( | ) | __HAL_RCC_SPI2_CLK_ENABLE() |
Definition at line 116 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_CHANNEL DMA_CHANNEL_0 |
Definition at line 132 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_CLK_DISABLE | ( | ) | __HAL_RCC_DMA1_CLK_DISABLE() |
Definition at line 130 of file stm32f411e_discovery_audio.h.
#define I2S2_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA1_CLK_ENABLE() |
Definition at line 129 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_IRQ DMA1_Stream3_IRQn |
Definition at line 133 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 135 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 134 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_DMAx_STREAM DMA1_Stream3 |
Definition at line 131 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_IRQHandler DMA1_Stream3_IRQHandler |
Definition at line 137 of file stm32f411e_discovery_audio.h.
#define I2S2_MOSI_AF GPIO_AF5_SPI2 |
Definition at line 126 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_MOSI_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 125 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_MOSI_GPIO_PORT GPIOC |
Definition at line 124 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define I2S2_MOSI_PIN GPIO_PIN_3 |
Definition at line 123 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define I2S2_SCK_AF GPIO_AF5_SPI2 |
Definition at line 121 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_SCK_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 120 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define I2S2_SCK_GPIO_PORT GPIOB |
Definition at line 119 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define I2S2_SCK_PIN GPIO_PIN_10 |
Definition at line 118 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define I2S3 SPI3 |
Definition at line 81 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_Init(), BSP_AUDIO_OUT_MspDeInit(), BSP_AUDIO_OUT_MspInit(), HAL_I2S_ErrorCallback(), HAL_I2S_TxCpltCallback(), HAL_I2S_TxHalfCpltCallback(), and I2S3_Init().
#define I2S3_CLK_DISABLE | ( | ) | __HAL_RCC_SPI3_CLK_DISABLE() |
Definition at line 83 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit().
#define I2S3_CLK_ENABLE | ( | ) | __HAL_RCC_SPI3_CLK_ENABLE() |
Definition at line 82 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_CHANNEL DMA_CHANNEL_0 |
Definition at line 100 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_CLK_DISABLE | ( | ) | __HAL_RCC_DMA1_CLK_DISABLE() |
Definition at line 98 of file stm32f411e_discovery_audio.h.
#define I2S3_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA1_CLK_ENABLE() |
Definition at line 97 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_IRQ DMA1_Stream7_IRQn |
Definition at line 101 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 103 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 102 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_DMAx_STREAM DMA1_Stream7 |
Definition at line 99 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_IRQHandler DMA1_Stream7_IRQHandler |
Definition at line 106 of file stm32f411e_discovery_audio.h.
#define I2S3_MCK_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 86 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_MCK_GPIO_PORT GPIOC |
Definition at line 94 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_MCK_PIN GPIO_PIN_7 |
Definition at line 91 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_SCK_PIN GPIO_PIN_10 |
Definition at line 89 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_SCK_SD_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 85 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_SCK_SD_GPIO_PORT GPIOC |
Definition at line 92 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_SCK_SD_WS_AF GPIO_AF6_SPI3 |
Definition at line 84 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_SD_PIN GPIO_PIN_12 |
Definition at line 90 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_WS_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 87 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define I2S3_WS_GPIO_PORT GPIOA |
Definition at line 93 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define I2S3_WS_PIN GPIO_PIN_4 |
Definition at line 88 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define INTERNAL_BUFF_SIZE 128*DEFAULT_AUDIO_IN_FREQ/16000*DEFAULT_AUDIO_IN_CHANNEL_NBR |
Definition at line 160 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_PDMToPCM().
#define PCM_OUT_SIZE DEFAULT_AUDIO_IN_FREQ/1000 |
Definition at line 162 of file stm32f411e_discovery_audio.h.
Referenced by BSP_AUDIO_IN_PDMToPCM().
Generated on Fri Jan 20 2017 11:38:17 for STM32F411E-Discovery BSP User Manual by 1.7.6.1