STM32F479xx HAL User Manual
|
Defines | |
#define | I2SxEXT(__INSTANCE__) ((__INSTANCE__) == (SPI2)? (SPI_TypeDef *)(I2S2ext_BASE): (SPI_TypeDef *)(I2S3ext_BASE)) |
#define | __HAL_I2SEXT_ENABLE(__HANDLE__) (I2SxEXT((__HANDLE__)->Instance)->I2SCFGR |= SPI_I2SCFGR_I2SE) |
Enable or disable the specified I2SExt peripheral. | |
#define | __HAL_I2SEXT_DISABLE(__HANDLE__) (I2SxEXT((__HANDLE__)->Instance)->I2SCFGR &= ~SPI_I2SCFGR_I2SE) |
#define | __HAL_I2SEXT_ENABLE_IT(__HANDLE__, __INTERRUPT__) (I2SxEXT((__HANDLE__)->Instance)->CR2 |= (__INTERRUPT__)) |
Enable or disable the specified I2SExt interrupts. | |
#define | __HAL_I2SEXT_DISABLE_IT(__HANDLE__, __INTERRUPT__) (I2SxEXT((__HANDLE__)->Instance)->CR2 &= ~(__INTERRUPT__)) |
#define | __HAL_I2SEXT_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Checks if the specified I2SExt interrupt source is enabled or disabled. | |
#define | __HAL_I2SEXT_GET_FLAG(__HANDLE__, __FLAG__) (((I2SxEXT((__HANDLE__)->Instance)->SR) & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified I2SExt flag is set or not. | |
#define | __HAL_I2SEXT_CLEAR_OVRFLAG(__HANDLE__) |
Clears the I2SExt OVR pending flag. | |
#define | __HAL_I2SEXT_CLEAR_UDRFLAG(__HANDLE__) |
Clears the I2SExt UDR pending flag. | |
#define | __HAL_I2SEXT_FLUSH_RX_DR(__HANDLE__) |
Flush the I2S and I2SExt DR Registers. |
#define __HAL_I2SEXT_CLEAR_OVRFLAG | ( | __HANDLE__ | ) |
do{ \ __IO uint32_t tmpreg_ovr = 0x00U; \ tmpreg_ovr = I2SxEXT((__HANDLE__)->Instance)->DR;\ tmpreg_ovr = I2SxEXT((__HANDLE__)->Instance)->SR;\ UNUSED(tmpreg_ovr); \ }while(0U)
Clears the I2SExt OVR pending flag.
__HANDLE__ | specifies the I2S Handle. |
None |
Definition at line 99 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAStop(), and HAL_I2SEx_TransmitReceive().
#define __HAL_I2SEXT_CLEAR_UDRFLAG | ( | __HANDLE__ | ) |
do{ \ __IO uint32_t tmpreg_udr = 0x00U; \ tmpreg_udr = I2SxEXT((__HANDLE__)->Instance)->SR;\ UNUSED(tmpreg_udr); \ }while(0U)
Clears the I2SExt UDR pending flag.
__HANDLE__ | specifies the I2S Handle. |
None |
Definition at line 109 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAStop().
#define __HAL_I2SEXT_DISABLE | ( | __HANDLE__ | ) | (I2SxEXT((__HANDLE__)->Instance)->I2SCFGR &= ~SPI_I2SCFGR_I2SE) |
Definition at line 53 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAStop().
#define __HAL_I2SEXT_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (I2SxEXT((__HANDLE__)->Instance)->CR2 &= ~(__INTERRUPT__)) |
Definition at line 65 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2SEx_FullDuplex_IRQHandler(), HAL_I2SEx_TransmitReceive_IT(), I2SEx_RxISR_I2SExt(), and I2SEx_TxISR_I2SExt().
#define __HAL_I2SEXT_ENABLE | ( | __HANDLE__ | ) | (I2SxEXT((__HANDLE__)->Instance)->I2SCFGR |= SPI_I2SCFGR_I2SE) |
Enable or disable the specified I2SExt peripheral.
__HANDLE__ | specifies the I2S Handle. |
None |
Definition at line 52 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAResume(), HAL_I2SEx_TransmitReceive(), HAL_I2SEx_TransmitReceive_DMA(), and HAL_I2SEx_TransmitReceive_IT().
#define __HAL_I2SEXT_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (I2SxEXT((__HANDLE__)->Instance)->CR2 |= (__INTERRUPT__)) |
Enable or disable the specified I2SExt interrupts.
__HANDLE__ | specifies the I2S Handle. |
__INTERRUPT__ | specifies the interrupt source to enable or disable. This parameter can be one of the following values:
|
None |
Definition at line 64 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2SEx_TransmitReceive_IT().
#define __HAL_I2SEXT_FLUSH_RX_DR | ( | __HANDLE__ | ) |
do{ \ __IO uint32_t tmpreg_dr = 0x00U; \ tmpreg_dr = I2SxEXT((__HANDLE__)->Instance)->DR; \ tmpreg_dr = ((__HANDLE__)->Instance->DR); \ UNUSED(tmpreg_dr); \ }while(0U)
Flush the I2S and I2SExt DR Registers.
__HANDLE__ | specifies the I2S Handle. |
None |
Definition at line 118 of file stm32f4xx_hal_i2s_ex.h.
#define __HAL_I2SEXT_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((I2SxEXT((__HANDLE__)->Instance)->SR) & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified I2SExt flag is set or not.
__HANDLE__ | specifies the I2S Handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 93 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAStop(), HAL_I2SEx_TransmitReceive(), and I2SEx_FullDuplexWaitFlagStateUntilTimeout().
#define __HAL_I2SEXT_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Checks if the specified I2SExt interrupt source is enabled or disabled.
__HANDLE__ | specifies the I2S Handle. This parameter can be I2S where x: 1, 2, or 3 to select the I2S peripheral. |
__INTERRUPT__ | specifies the I2S interrupt source to check. This parameter can be one of the following values:
|
The | new state of __IT__ (TRUE or FALSE). |
Definition at line 77 of file stm32f4xx_hal_i2s_ex.h.
#define I2SxEXT | ( | __INSTANCE__ | ) | ((__INSTANCE__) == (SPI2)? (SPI_TypeDef *)(I2S2ext_BASE): (SPI_TypeDef *)(I2S3ext_BASE)) |
Definition at line 46 of file stm32f4xx_hal_i2s_ex.h.
Referenced by HAL_I2S_DMAPause(), HAL_I2S_DMAResume(), HAL_I2S_DMAStop(), HAL_I2S_Init(), HAL_I2SEx_FullDuplex_IRQHandler(), HAL_I2SEx_TransmitReceive(), HAL_I2SEx_TransmitReceive_DMA(), HAL_I2SEx_TransmitReceive_IT(), I2SEx_RxISR_I2SExt(), I2SEx_TxISR_I2SExt(), I2SEx_TxRxDMACplt(), and I2SEx_TxRxDMAError().