STM32L443xx HAL User Manual
Defines
APB2 Peripheral Clock Enabled or Disabled Status
RCC Exported Macros

Check whether the APB2 peripheral clock is enabled or not. More...

Defines

#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) != 0U)
#define __HAL_RCC_FIREWALL_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_FWEN) != 0U)
#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) != 0U)
#define __HAL_RCC_TIM1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) != 0U)
#define __HAL_RCC_SPI1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) != 0U)
#define __HAL_RCC_USART1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) != 0U)
#define __HAL_RCC_TIM15_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) != 0U)
#define __HAL_RCC_TIM16_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) != 0U)
#define __HAL_RCC_SAI1_IS_CLK_ENABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) != 0U)
#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) == 0U)
#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) == 0U)
#define __HAL_RCC_TIM1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) == 0U)
#define __HAL_RCC_SPI1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) == 0U)
#define __HAL_RCC_USART1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) == 0U)
#define __HAL_RCC_TIM15_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) == 0U)
#define __HAL_RCC_TIM16_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) == 0U)
#define __HAL_RCC_SAI1_IS_CLK_DISABLED()   (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) == 0U)

Detailed Description

Check whether the APB2 peripheral clock is enabled or not.

Note:
After reset, the peripheral clock (used for registers read/write access) is disabled and the application software has to enable this clock before using it.

Define Documentation

#define __HAL_RCC_FIREWALL_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_FWEN) != 0U)

Definition at line 2099 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SAI1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) == 0U)

Definition at line 2169 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SAI1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN) != 0U)

Definition at line 2124 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) == 0U)

Definition at line 2147 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDMMC1EN) != 0U)

Definition at line 2102 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) == 0U)

Definition at line 2152 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SPI1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN) != 0U)

Definition at line 2107 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) == 0U)

Definition at line 2144 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) != 0U)

Definition at line 2097 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM15_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) == 0U)

Definition at line 2160 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM15_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN) != 0U)

Definition at line 2115 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM16_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) == 0U)

Definition at line 2162 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM16_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN) != 0U)

Definition at line 2117 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) == 0U)

Definition at line 2150 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_TIM1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN) != 0U)

Definition at line 2105 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART1_IS_CLK_DISABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) == 0U)

Definition at line 2158 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_USART1_IS_CLK_ENABLED ( )    (READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN) != 0U)

Definition at line 2113 of file stm32l4xx_hal_rcc.h.