STM32746G-Discovery BSP User Manual
|
Defines | |
#define | CODEC_AUDIOFRAME_SLOT_0123 SAI_SLOTACTIVE_0 | SAI_SLOTACTIVE_1 | SAI_SLOTACTIVE_2 | SAI_SLOTACTIVE_3 |
#define | CODEC_AUDIOFRAME_SLOT_02 SAI_SLOTACTIVE_0 | SAI_SLOTACTIVE_2 |
#define | CODEC_AUDIOFRAME_SLOT_13 SAI_SLOTACTIVE_1 | SAI_SLOTACTIVE_3 |
#define | AUDIO_OUT_SAIx SAI2_Block_A |
#define | AUDIO_OUT_SAIx_CLK_ENABLE() __HAL_RCC_SAI2_CLK_ENABLE() |
#define | AUDIO_OUT_SAIx_CLK_DISABLE() __HAL_RCC_SAI2_CLK_DISABLE() |
#define | AUDIO_OUT_SAIx_SCK_AF GPIO_AF10_SAI2 |
#define | AUDIO_OUT_SAIx_FS_SD_MCLK_AF GPIO_AF10_SAI2 |
#define | AUDIO_OUT_SAIx_MCLK_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE() |
#define | AUDIO_OUT_SAIx_MCLK_GPIO_PORT GPIOI |
#define | AUDIO_OUT_SAIx_MCLK_PIN GPIO_PIN_4 |
#define | AUDIO_OUT_SAIx_SCK_SD_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE() |
#define | AUDIO_OUT_SAIx_SCK_SD_GPIO_PORT GPIOI |
#define | AUDIO_OUT_SAIx_SCK_PIN GPIO_PIN_5 |
#define | AUDIO_OUT_SAIx_SD_PIN GPIO_PIN_6 |
#define | AUDIO_OUT_SAIx_FS_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE() |
#define | AUDIO_OUT_SAIx_FS_GPIO_PORT GPIOI |
#define | AUDIO_OUT_SAIx_FS_PIN GPIO_PIN_7 |
#define | AUDIO_OUT_SAIx_DMAx_CLK_ENABLE() __HAL_RCC_DMA2_CLK_ENABLE() |
#define | AUDIO_OUT_SAIx_DMAx_STREAM DMA2_Stream4 |
#define | AUDIO_OUT_SAIx_DMAx_CHANNEL DMA_CHANNEL_3 |
#define | AUDIO_OUT_SAIx_DMAx_IRQ DMA2_Stream4_IRQn |
#define | AUDIO_OUT_SAIx_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
#define | AUDIO_OUT_SAIx_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
#define | DMA_MAX_SZE ((uint16_t)0xFFFF) |
#define | AUDIO_OUT_SAIx_DMAx_IRQHandler DMA2_Stream4_IRQHandler |
#define | AUDIO_OUT_IRQ_PREPRIO ((uint32_t)0x0E) /* Select the preemption priority level(0 is the highest) */ |
#define | AUDIO_IN_SAIx SAI2_Block_B |
#define | AUDIO_IN_SAIx_CLK_ENABLE() __HAL_RCC_SAI2_CLK_ENABLE() |
#define | AUDIO_IN_SAIx_CLK_DISABLE() __HAL_RCC_SAI2_CLK_DISABLE() |
#define | AUDIO_IN_SAIx_SD_AF GPIO_AF10_SAI2 |
#define | AUDIO_IN_SAIx_SD_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE() |
#define | AUDIO_IN_SAIx_SD_GPIO_PORT GPIOG |
#define | AUDIO_IN_SAIx_SD_PIN GPIO_PIN_10 |
#define | AUDIO_IN_INT_GPIO_ENABLE() __HAL_RCC_GPIOH_CLK_ENABLE() |
#define | AUDIO_IN_INT_GPIO_PORT GPIOH |
#define | AUDIO_IN_INT_GPIO_PIN GPIO_PIN_15 |
#define | AUDIO_IN_INT_IRQ EXTI15_10_IRQn |
#define | AUDIO_IN_SAIx_DMAx_CLK_ENABLE() __HAL_RCC_DMA2_CLK_ENABLE() |
#define | AUDIO_IN_SAIx_DMAx_STREAM DMA2_Stream7 |
#define | AUDIO_IN_SAIx_DMAx_CHANNEL DMA_CHANNEL_0 |
#define | AUDIO_IN_SAIx_DMAx_IRQ DMA2_Stream7_IRQn |
#define | AUDIO_IN_SAIx_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
#define | AUDIO_IN_SAIx_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
#define | AUDIO_IN_SAIx_DMAx_IRQHandler DMA2_Stream7_IRQHandler |
#define | AUDIO_IN_INT_IRQHandler EXTI15_10_IRQHandler |
#define | AUDIO_IN_IRQ_PREPRIO ((uint32_t)0x0F) /* Select the preemption priority level(0 is the highest) */ |
#define | AUDIODATA_SIZE ((uint16_t)2) /* 16-bits audio data size */ |
#define | AUDIO_OK ((uint8_t)0) |
#define | AUDIO_ERROR ((uint8_t)1) |
#define | AUDIO_TIMEOUT ((uint8_t)2) |
#define | DEFAULT_AUDIO_IN_FREQ I2S_AUDIOFREQ_16K |
#define | DEFAULT_AUDIO_IN_BIT_RESOLUTION ((uint8_t)16) |
#define | DEFAULT_AUDIO_IN_CHANNEL_NBR ((uint8_t)2) /* Mono = 1, Stereo = 2 */ |
#define | DEFAULT_AUDIO_IN_VOLUME ((uint16_t)64) |
#define | CODEC_RESET_DELAY ((uint8_t)5) |
#define | OUTPUT_DEVICE_HEADPHONE1 OUTPUT_DEVICE_HEADPHONE |
#define | OUTPUT_DEVICE_HEADPHONE2 OUTPUT_DEVICE_SPEAKER /* Headphone2 is connected to Speaker output of the wm8994 */ |
Define Documentation
#define AUDIO_ERROR ((uint8_t)1) |
Definition at line 164 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_InitEx(), BSP_AUDIO_IN_OUT_Init(), BSP_AUDIO_IN_Record(), 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(), and BSP_AUDIO_OUT_Stop().
#define AUDIO_IN_INT_GPIO_ENABLE | ( | ) | __HAL_RCC_GPIOH_CLK_ENABLE() |
Definition at line 137 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_INT_GPIO_PIN GPIO_PIN_15 |
Definition at line 139 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_INT_GPIO_PORT GPIOH |
Definition at line 138 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_INT_IRQ EXTI15_10_IRQn |
Definition at line 140 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_INT_IRQHandler EXTI15_10_IRQHandler |
Definition at line 151 of file stm32746g_discovery_audio.h.
#define AUDIO_IN_IRQ_PREPRIO ((uint32_t)0x0F) /* Select the preemption priority level(0 is the highest) */ |
Definition at line 154 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx SAI2_Block_B |
Definition at line 128 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_InitEx(), BSP_AUDIO_IN_MspDeInit(), BSP_AUDIO_IN_MspInit(), BSP_AUDIO_IN_OUT_Init(), SAIx_In_DeInit(), and SAIx_In_Init().
#define AUDIO_IN_SAIx_CLK_DISABLE | ( | ) | __HAL_RCC_SAI2_CLK_DISABLE() |
Definition at line 130 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit().
#define AUDIO_IN_SAIx_CLK_ENABLE | ( | ) | __HAL_RCC_SAI2_CLK_ENABLE() |
Definition at line 129 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_CHANNEL DMA_CHANNEL_0 |
Definition at line 145 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA2_CLK_ENABLE() |
Definition at line 143 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_IRQ DMA2_Stream7_IRQn |
Definition at line 146 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_IRQHandler DMA2_Stream7_IRQHandler |
Definition at line 150 of file stm32746g_discovery_audio.h.
#define AUDIO_IN_SAIx_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 148 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 147 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_DMAx_STREAM DMA2_Stream7 |
Definition at line 144 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_SD_AF GPIO_AF10_SAI2 |
Definition at line 131 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_SD_ENABLE | ( | ) | __HAL_RCC_GPIOG_CLK_ENABLE() |
Definition at line 133 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_SD_GPIO_PORT GPIOG |
Definition at line 134 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define AUDIO_IN_SAIx_SD_PIN GPIO_PIN_10 |
Definition at line 135 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_MspDeInit(), and BSP_AUDIO_IN_MspInit().
#define AUDIO_OK ((uint8_t)0) |
Definition at line 163 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_InitEx(), BSP_AUDIO_IN_OUT_Init(), BSP_AUDIO_IN_Pause(), 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(), and BSP_AUDIO_OUT_Stop().
#define AUDIO_OUT_IRQ_PREPRIO ((uint32_t)0x0E) /* Select the preemption priority level(0 is the highest) */ |
Definition at line 122 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx SAI2_Block_A |
Definition at line 93 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_OUT_Init(), BSP_AUDIO_OUT_Init(), BSP_AUDIO_OUT_MspDeInit(), BSP_AUDIO_OUT_MspInit(), SAIx_In_Init(), SAIx_Out_DeInit(), and SAIx_Out_Init().
#define AUDIO_OUT_SAIx_CLK_DISABLE | ( | ) | __HAL_RCC_SAI2_CLK_DISABLE() |
Definition at line 95 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit().
#define AUDIO_OUT_SAIx_CLK_ENABLE | ( | ) | __HAL_RCC_SAI2_CLK_ENABLE() |
Definition at line 94 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_CHANNEL DMA_CHANNEL_3 |
Definition at line 113 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_CLK_ENABLE | ( | ) | __HAL_RCC_DMA2_CLK_ENABLE() |
Definition at line 111 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_IRQ DMA2_Stream4_IRQn |
Definition at line 114 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_IRQHandler DMA2_Stream4_IRQHandler |
Definition at line 119 of file stm32746g_discovery_audio.h.
#define AUDIO_OUT_SAIx_DMAx_MEM_DATA_SIZE DMA_MDATAALIGN_HALFWORD |
Definition at line 116 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_PERIPH_DATA_SIZE DMA_PDATAALIGN_HALFWORD |
Definition at line 115 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_DMAx_STREAM DMA2_Stream4 |
Definition at line 112 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_FS_ENABLE | ( | ) | __HAL_RCC_GPIOI_CLK_ENABLE() |
Definition at line 106 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_FS_GPIO_PORT GPIOI |
Definition at line 107 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_FS_PIN GPIO_PIN_7 |
Definition at line 108 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_FS_SD_MCLK_AF GPIO_AF10_SAI2 |
Definition at line 97 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_MCLK_ENABLE | ( | ) | __HAL_RCC_GPIOI_CLK_ENABLE() |
Definition at line 99 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_MCLK_GPIO_PORT GPIOI |
Definition at line 100 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_MCLK_PIN GPIO_PIN_4 |
Definition at line 101 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_SCK_AF GPIO_AF10_SAI2 |
Definition at line 96 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_SCK_PIN GPIO_PIN_5 |
Definition at line 104 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_SCK_SD_ENABLE | ( | ) | __HAL_RCC_GPIOI_CLK_ENABLE() |
Definition at line 102 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_SCK_SD_GPIO_PORT GPIOI |
Definition at line 103 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_OUT_SAIx_SD_PIN GPIO_PIN_6 |
Definition at line 105 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_MspDeInit(), and BSP_AUDIO_OUT_MspInit().
#define AUDIO_TIMEOUT ((uint8_t)2) |
Definition at line 165 of file stm32746g_discovery_audio.h.
#define AUDIODATA_SIZE ((uint16_t)2) /* 16-bits audio data size */ |
Definition at line 160 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_OUT_Play().
#define CODEC_AUDIOFRAME_SLOT_0123 SAI_SLOTACTIVE_0 | SAI_SLOTACTIVE_1 | SAI_SLOTACTIVE_2 | SAI_SLOTACTIVE_3 |
Definition at line 86 of file stm32746g_discovery_audio.h.
Referenced by SAIx_Out_Init().
#define CODEC_AUDIOFRAME_SLOT_02 SAI_SLOTACTIVE_0 | SAI_SLOTACTIVE_2 |
Definition at line 88 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_InitEx(), and BSP_AUDIO_IN_OUT_Init().
#define CODEC_AUDIOFRAME_SLOT_13 SAI_SLOTACTIVE_1 | SAI_SLOTACTIVE_3 |
Definition at line 90 of file stm32746g_discovery_audio.h.
Referenced by BSP_AUDIO_IN_InitEx(), and BSP_AUDIO_IN_OUT_Init().
#define CODEC_RESET_DELAY ((uint8_t)5) |
Definition at line 178 of file stm32746g_discovery_audio.h.
#define DEFAULT_AUDIO_IN_BIT_RESOLUTION ((uint8_t)16) |
Definition at line 169 of file stm32746g_discovery_audio.h.
#define DEFAULT_AUDIO_IN_CHANNEL_NBR ((uint8_t)2) /* Mono = 1, Stereo = 2 */ |
Definition at line 170 of file stm32746g_discovery_audio.h.
#define DEFAULT_AUDIO_IN_FREQ I2S_AUDIOFREQ_16K |
Definition at line 168 of file stm32746g_discovery_audio.h.
#define DEFAULT_AUDIO_IN_VOLUME ((uint16_t)64) |
Definition at line 171 of file stm32746g_discovery_audio.h.
#define DMA_MAX_SZE ((uint16_t)0xFFFF) |
Definition at line 117 of file stm32746g_discovery_audio.h.
#define OUTPUT_DEVICE_HEADPHONE1 OUTPUT_DEVICE_HEADPHONE |
Definition at line 185 of file stm32746g_discovery_audio.h.
#define OUTPUT_DEVICE_HEADPHONE2 OUTPUT_DEVICE_SPEAKER /* Headphone2 is connected to Speaker output of the wm8994 */ |
Definition at line 186 of file stm32746g_discovery_audio.h.
Generated on Fri Dec 30 2016 16:31:33 for STM32746G-Discovery BSP User Manual by 1.7.6.1