Macros
Collaboration diagram for STM32F411E DISCOVERY HLOW LEVEL BUS:

Macros

#define AUDIO_I2C_ADDRESS   0x94
 AUDIO I2C Interface pins. More...
 
#define AUDIO_RESET_GPIO   GPIOD
 
#define AUDIO_RESET_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOD_CLK_ENABLE()
 
#define AUDIO_RESET_PIN   GPIO_PIN_4
 
#define CODEC_AUDIO_POWER_OFF()   HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET)
 
#define CODEC_AUDIO_POWER_ON()   HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_SET)
 
#define DISCOVERY_I2Cx   I2C1
 
#define DISCOVERY_I2Cx_AF   GPIO_AF4_I2C1
 
#define DISCOVERY_I2Cx_CLOCK_ENABLE()   __HAL_RCC_I2C1_CLK_ENABLE()
 
#define DISCOVERY_I2Cx_ER_IRQn   I2C1_ER_IRQn
 
#define DISCOVERY_I2Cx_EV_IRQn   I2C1_EV_IRQn
 
#define DISCOVERY_I2Cx_FORCE_RESET()   __HAL_RCC_I2C1_FORCE_RESET()
 
#define DISCOVERY_I2Cx_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
 
#define DISCOVERY_I2Cx_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define DISCOVERY_I2Cx_GPIO_PORT   GPIOB /* GPIOB */
 
#define DISCOVERY_I2Cx_RELEASE_RESET()   __HAL_RCC_I2C1_RELEASE_RESET()
 
#define DISCOVERY_I2Cx_SCL_PIN   GPIO_PIN_6 /* PB.06 */
 
#define DISCOVERY_I2Cx_SDA_PIN   GPIO_PIN_9 /* PB.09 */
 
#define DISCOVERY_SPIx   SPI1
 
#define DISCOVERY_SPIx_AF   GPIO_AF5_SPI1
 
#define DISCOVERY_SPIx_CLOCK_ENABLE()   __HAL_RCC_SPI1_CLK_ENABLE()
 
#define DISCOVERY_SPIx_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
 
#define DISCOVERY_SPIx_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
 
#define DISCOVERY_SPIx_GPIO_PORT   GPIOA /* GPIOA */
 
#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_6 /* PA.06 */
 
#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_7 /* PA.07 */
 
#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_5 /* PA.05 */
 
#define DUMMY_BYTE   ((uint8_t)0x00)
 
#define GYRO_CS_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOE_CLK_DISABLE()
 
#define GYRO_CS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOE_CLK_ENABLE()
 
#define GYRO_CS_GPIO_PORT   GPIOE /* GPIOE */
 GYRO SPI Interface pins. More...
 
#define GYRO_CS_HIGH()   HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET)
 
#define GYRO_CS_LOW()   HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_RESET)
 
#define GYRO_CS_PIN   GPIO_PIN_3 /* PE.03 */
 
#define GYRO_INT1_EXTI_IRQn   EXTI0_IRQn
 
#define GYRO_INT1_PIN   GPIO_PIN_0 /* PE.00 */
 
#define GYRO_INT2_EXTI_IRQn   EXTI1_IRQn
 
#define GYRO_INT2_PIN   GPIO_PIN_1 /* PE.01 */
 
#define GYRO_INT_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOE_CLK_DISABLE()
 
#define GYRO_INT_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOE_CLK_ENABLE()
 
#define GYRO_INT_GPIO_PORT   GPIOE /* GPIOE */
 
#define I2Cx_MAX_COMMUNICATION_FREQ   ((uint32_t) 100000)
 
#define I2Cx_TIMEOUT_MAX   0xA000 /*<! The value of the maximal timeout for I2C waiting loops */
 
#define MULTIPLEBYTE_CMD   ((uint8_t)0x40)
 
#define READWRITE_CMD   ((uint8_t)0x80)
 
#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)
 

Detailed Description

Macro Definition Documentation

◆ AUDIO_I2C_ADDRESS

#define AUDIO_I2C_ADDRESS   0x94

AUDIO I2C Interface pins.

Definition at line 236 of file stm32f411e_discovery.h.

◆ AUDIO_RESET_GPIO

#define AUDIO_RESET_GPIO   GPIOD

Definition at line 245 of file stm32f411e_discovery.h.

◆ AUDIO_RESET_GPIO_CLK_ENABLE

#define AUDIO_RESET_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOD_CLK_ENABLE()

Definition at line 243 of file stm32f411e_discovery.h.

◆ AUDIO_RESET_PIN

#define AUDIO_RESET_PIN   GPIO_PIN_4

Definition at line 244 of file stm32f411e_discovery.h.

◆ CODEC_AUDIO_POWER_OFF

#define CODEC_AUDIO_POWER_OFF ( )    HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET)

Definition at line 239 of file stm32f411e_discovery.h.

◆ CODEC_AUDIO_POWER_ON

#define CODEC_AUDIO_POWER_ON ( )    HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_SET)

Definition at line 240 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx

#define DISCOVERY_I2Cx   I2C1

Definition at line 166 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_AF

#define DISCOVERY_I2Cx_AF   GPIO_AF4_I2C1

Definition at line 173 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_CLOCK_ENABLE

#define DISCOVERY_I2Cx_CLOCK_ENABLE ( )    __HAL_RCC_I2C1_CLK_ENABLE()

Definition at line 167 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_ER_IRQn

#define DISCOVERY_I2Cx_ER_IRQn   I2C1_ER_IRQn

Definition at line 180 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_EV_IRQn

#define DISCOVERY_I2Cx_EV_IRQn   I2C1_EV_IRQn

Definition at line 179 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_FORCE_RESET

#define DISCOVERY_I2Cx_FORCE_RESET ( )    __HAL_RCC_I2C1_FORCE_RESET()

Definition at line 175 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_GPIO_CLK_DISABLE

#define DISCOVERY_I2Cx_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 172 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_GPIO_CLK_ENABLE

#define DISCOVERY_I2Cx_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 171 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_GPIO_PORT

#define DISCOVERY_I2Cx_GPIO_PORT   GPIOB /* GPIOB */

Definition at line 168 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_RELEASE_RESET

#define DISCOVERY_I2Cx_RELEASE_RESET ( )    __HAL_RCC_I2C1_RELEASE_RESET()

Definition at line 176 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_SCL_PIN

#define DISCOVERY_I2Cx_SCL_PIN   GPIO_PIN_6 /* PB.06 */

Definition at line 169 of file stm32f411e_discovery.h.

◆ DISCOVERY_I2Cx_SDA_PIN

#define DISCOVERY_I2Cx_SDA_PIN   GPIO_PIN_9 /* PB.09 */

Definition at line 170 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx

#define DISCOVERY_SPIx   SPI1

Definition at line 187 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_AF

#define DISCOVERY_SPIx_AF   GPIO_AF5_SPI1

Definition at line 190 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_CLOCK_ENABLE

#define DISCOVERY_SPIx_CLOCK_ENABLE ( )    __HAL_RCC_SPI1_CLK_ENABLE()

Definition at line 188 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_GPIO_CLK_DISABLE

#define DISCOVERY_SPIx_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 192 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_GPIO_CLK_ENABLE

#define DISCOVERY_SPIx_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 191 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_GPIO_PORT

#define DISCOVERY_SPIx_GPIO_PORT   GPIOA /* GPIOA */

Definition at line 189 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_MISO_PIN

#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_6 /* PA.06 */

Definition at line 194 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_MOSI_PIN

#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_7 /* PA.07 */

Definition at line 195 of file stm32f411e_discovery.h.

◆ DISCOVERY_SPIx_SCK_PIN

#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_5 /* PA.05 */

Definition at line 193 of file stm32f411e_discovery.h.

◆ DUMMY_BYTE

#define DUMMY_BYTE   ((uint8_t)0x00)

Definition at line 209 of file stm32f411e_discovery.h.

◆ GYRO_CS_GPIO_CLK_DISABLE

#define GYRO_CS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOE_CLK_DISABLE()

Definition at line 220 of file stm32f411e_discovery.h.

◆ GYRO_CS_GPIO_CLK_ENABLE

#define GYRO_CS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOE_CLK_ENABLE()

Definition at line 219 of file stm32f411e_discovery.h.

◆ GYRO_CS_GPIO_PORT

#define GYRO_CS_GPIO_PORT   GPIOE /* GPIOE */

GYRO SPI Interface pins.

Definition at line 218 of file stm32f411e_discovery.h.

◆ GYRO_CS_HIGH

#define GYRO_CS_HIGH ( )    HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET)

Definition at line 213 of file stm32f411e_discovery.h.

◆ GYRO_CS_LOW

Definition at line 212 of file stm32f411e_discovery.h.

◆ GYRO_CS_PIN

#define GYRO_CS_PIN   GPIO_PIN_3 /* PE.03 */

Definition at line 221 of file stm32f411e_discovery.h.

◆ GYRO_INT1_EXTI_IRQn

#define GYRO_INT1_EXTI_IRQn   EXTI0_IRQn

Definition at line 227 of file stm32f411e_discovery.h.

◆ GYRO_INT1_PIN

#define GYRO_INT1_PIN   GPIO_PIN_0 /* PE.00 */

Definition at line 226 of file stm32f411e_discovery.h.

◆ GYRO_INT2_EXTI_IRQn

#define GYRO_INT2_EXTI_IRQn   EXTI1_IRQn

Definition at line 229 of file stm32f411e_discovery.h.

◆ GYRO_INT2_PIN

#define GYRO_INT2_PIN   GPIO_PIN_1 /* PE.01 */

Definition at line 228 of file stm32f411e_discovery.h.

◆ GYRO_INT_GPIO_CLK_DISABLE

#define GYRO_INT_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOE_CLK_DISABLE()

Definition at line 225 of file stm32f411e_discovery.h.

◆ GYRO_INT_GPIO_CLK_ENABLE

#define GYRO_INT_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOE_CLK_ENABLE()

Definition at line 224 of file stm32f411e_discovery.h.

◆ GYRO_INT_GPIO_PORT

#define GYRO_INT_GPIO_PORT   GPIOE /* GPIOE */

Definition at line 223 of file stm32f411e_discovery.h.

◆ I2Cx_MAX_COMMUNICATION_FREQ

#define I2Cx_MAX_COMMUNICATION_FREQ   ((uint32_t) 100000)

Definition at line 184 of file stm32f411e_discovery.h.

◆ I2Cx_TIMEOUT_MAX

#define I2Cx_TIMEOUT_MAX   0xA000 /*<! The value of the maximal timeout for I2C waiting loops */

Definition at line 183 of file stm32f411e_discovery.h.

◆ MULTIPLEBYTE_CMD

#define MULTIPLEBYTE_CMD   ((uint8_t)0x40)

Definition at line 207 of file stm32f411e_discovery.h.

◆ READWRITE_CMD

#define READWRITE_CMD   ((uint8_t)0x80)

Definition at line 205 of file stm32f411e_discovery.h.

◆ SPIx_TIMEOUT_MAX

#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)

Definition at line 201 of file stm32f411e_discovery.h.



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