gr55xx_ll_cgc.h File Reference

Header file containing functions prototypes of CGC LL library. More...

#include "gr55xx.h"

Go to the source code of this file.

Macros

#define LL_CGC_WFI_SECU_HCLK   MCU_SUB_WFI_SECU_HCLK
 
#define LL_CGC_WFI_HTB_HCLK   MCU_SUB_WFI_HTB_HCLK
 
#define LL_CGC_WFI_ROM_HCLK   MCU_SUB_WFI_ROM_HCLK
 
#define LL_CGC_WFI_SNSADC_HCLK   MCU_SUB_WFI_SNSADC_HCLK
 
#define LL_CGC_WFI_GPIO_HCLK   MCU_SUB_WFI_GPIO_HCLK
 
#define LL_CGC_WFI_BLE_BRG_HCLK   MCU_SUB_WFI_BLE_BRG_HCLK
 
#define LL_CGC_WFI_APB_SUB_HCLK   MCU_SUB_WFI_APB_SUB_HCLK
 
#define LL_CGC_WFI_SERIAL_HCLK   MCU_SUB_WFI_SERIAL_HCLK
 
#define LL_CGC_WFI_ALL_HCLK0   ((uint32_t)0x000007FFU)
 
#define LL_CGC_WFI_AON_MCUSUB_HCLK   MCU_SUB_WFI_AON_MCUSUB_HCLK
 
#define LL_CGC_WFI_XF_XQSPI_HCLK   MCU_SUB_WFI_XF_XQSPI_HCLK
 
#define LL_CGC_WFI_SRAM_HCLK   MCU_SUB_WFI_SRAM_HCLK
 
#define LL_CGC_WFI_ALL_HCLK1   ((uint32_t)0x00000007U)
 
#define LL_CGC_WFI_SECU_DIV4_PCLK   MCU_SUB_WFI_SECU_DIV4_PCLK
 
#define LL_CGC_WFI_XQSPI_DIV4_PCLK   MCU_SUB_WFI_XQSPI_DIV4_PCLK
 
#define LL_CGC_WFI_ALL_HCLK2   ((uint32_t)0x05000000U)
 
#define LL_CGC_FRC_SECU_HCLK   MCU_SUB_FORCE_SECU_HCLK
 
#define LL_CGC_FRC_HTB_HCLK   MCU_SUB_FORCE_HTB_HCLK
 
#define LL_CGC_FRC_ROM_HCLK   MCU_SUB_FORCE_ROM_HCLK
 
#define LL_CGC_FRC_SNSADC_HCLK   MCU_SUB_FORCE_SNSADC_HCLK
 
#define LL_CGC_FRC_GPIO_HCLK   MCU_SUB_FORCE_GPIO_HCLK
 
#define LL_CGC_FRC_BLE_BRG_HCLK   MCU_SUB_FORCE_BLE_BRG_HCLK
 
#define LL_CGC_FRC_APB_SUB_HCLK   MCU_SUB_FORCE_APB_SUB_HCLK
 
#define LL_CGC_FRC_SERIAL_HCLK   MCU_SUB_FORCE_SERIAL_HCLK
 
#define LL_CGC_FRC_ALL_HCLK0   ((uint32_t)0x00000777U)
 
#define LL_CGC_FRC_AON_MCUSUB_HCLK   MCU_SUB_FORCE_AON_MCUSUB_HCLK
 
#define LL_CGC_FRC_XF_XQSPI_HCLK   MCU_SUB_FORCE_XF_XQSPI_HCLK
 
#define LL_CGC_FRC_SRAM_HCLK   MCU_SUB_FORCE_SRAM_HCLK
 
#define LL_CGC_FRC_ALL_HCLK1   ((uint32_t)0x00070000U)
 
#define LL_CGC_FRC_UART0_PCLK   MCU_SUB_FORCE_UART0_PCLK
 
#define LL_CGC_FRC_UART1_PCLK   MCU_SUB_FORCE_UART1_PCLK
 
#define LL_CGC_FRC_UART2_PCLK   MCU_SUB_FORCE_UART2_PCLK
 
#define LL_CGC_FRC_UART3_PCLK   MCU_SUB_FORCE_UART3_PCLK
 
#define LL_CGC_FRC_I2C0_PCLK   MCU_SUB_FORCE_I2C0_PCLK
 
#define LL_CGC_FRC_I2C1_PCLK   MCU_SUB_FORCE_I2C1_PCLK
 
#define LL_CGC_FRC_I2C2_PCLK   MCU_SUB_FORCE_I2C2_PCLK
 
#define LL_CGC_FRC_I2C3_PCLK   MCU_SUB_FORCE_I2C3_PCLK
 
#define LL_CGC_FRC_QSPI0_PCLK   MCU_SUB_FORCE_QSPI0_PCLK
 
#define LL_CGC_FRC_QSPI1_PCLK   MCU_SUB_FORCE_QSPI1_PCLK
 
#define LL_CGC_FRC_QSPI2_PCLK   MCU_SUB_FORCE_QSPI2_PCLK
 
#define LL_CGC_FRC_SPI_M_PCLK   MCU_SUB_FORCE_SPI_M_PCLK
 
#define LL_CGC_FRC_SPI_S_PCLK   MCU_SUB_FORCE_SPI_S_PCLK
 
#define LL_CGC_FRC_I2S_PCLK   MCU_SUB_FORCE_I2S_PCLK
 
#define LL_CGC_FRC_I2S_S_PCLK   MCU_SUB_FORCE_I2S_S_PCLK
 
#define LL_CGC_FRC_DSPI_PCLK   MCU_SUB_FORCE_DSPI_PCLK
 
#define LL_CGC_FRC_PDM_PCLK   MCU_SUB_FORCE_PDM_PCLK
 
#define LL_CGC_FRC_PWM_0_PCLK   MCU_SUB_FORCE_PWM_0_PCLK
 
#define LL_CGC_FRC_PWM_1_PCLK   MCU_SUB_FORCE_PWM_1_PCLK
 
#define LL_CGC_FRC_VTTBL_PCLK   MCU_SUB_FORCE_VTTBL_PCLK
 
#define LL_CGC_FRC_SECU_DIV4_PCLK   MCU_SUB_FORCE_SECU_DIV4_PCLK
 
#define LL_CGC_FRC_XQSPI_DIV4_PCLK   MCU_SUB_FORCE_XQSPI_DIV4_PCLK
 
#define LL_CGC_FRC_SERIALS_HCLK2   ((uint32_t)0x705E03CFUL)
 
#define LL_CGC_FRC_ALL_HCLK2   ((uint32_t)0x7A7FC3CFUL)
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_AHB2APB_EN   MCU_SUB_PERIPH_CG_LP_AHB2APB_ASYNC_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_AHB2APB_SYNC_EN   MCU_SUB_PERIPH_CG_LP_AHB2APB_SYNC_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_QSPIM_EN   MCU_SUB_PERIPH_CG_LP_EN_QSPIM_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_AHB_BUS_LP_EN   MCU_SUB_PERIPH_CG_LP_EN_AHB_BUS_LP_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2C_LP_SCLK_EN   MCU_SUB_PERIPH_CG_LP_EN_I2C_LP_SCLK_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_SPIS_LP_SCLK_EN   MCU_SUB_PERIPH_CG_LP_EN_SPIS_LP_SCLK_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_SPIM_LP_SCLK_EN   MCU_SUB_PERIPH_CG_LP_EN_SPIM_LP_SCLK_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2S_LP_EN   MCU_SUB_PERIPH_CG_LP_EN_I2S_LP_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_LP_PCLK_EN   MCU_SUB_PERIPH_CG_LP_EN_UART_LP_PCLK_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_LP_SCLK_EN   MCU_SUB_PERIPH_CG_LP_EN_UART_LP_SCLK_EN
 
#define LL_CGC_MCU_PERIPH_CG_LP   ((uint32_t)0x00000F3FUL)
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_0_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_UART0
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_1_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_UART1
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_2_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_UART2
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_UART_3_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_UART3
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2S_M_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2SM
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2S_S_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2SS
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_SPI_M_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_SPIM
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_SPI_S_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_SPIS
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_PWM_0_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_PWM0
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_PWM_1_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_PWM1
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_QSPIM_0_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_QSPIM0
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_QSPIM_1_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_QSPIM1
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_QSPIM_2_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_QSPIM2
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_DSPI_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_DSPI
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_PDM_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_PDM
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2C_0_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2C0
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2C_1_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2C1
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2C_2_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2C2
 
#define LL_CGC_MCU_PERIPH_CG_LP_EN_I2C_3_SLP_OFF   MCU_SUB_PERIPH_CLK_SLP_OFF_I2C3
 
#define LL_CGC_MCU_PERIPH_SERIALS_SLP_OFF   ((uint32_t)0x007C3F0FUL)
 
#define LL_CGC_MCU_PERIPH_SERIALS_SLP_ALL   ((uint32_t)0x007FFF0FUL)
 
#define LL_CGC_MCU_FRC_AES_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_AES_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_AES_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_AES_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_HMAC_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_HMAC_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_HMAC_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_HMAC_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_PKC_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_PKC_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_PKC_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_PKC_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_PRESENT_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_PRESENT_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_PRESENT_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_PRESENT_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_RAMKEY_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_RAMKEY_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_RAMKEY_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_RAMKEY_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_RNG_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_RNG_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_RNG_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_RNG_HCLK_SLP_OFF
 
#define LL_CGC_MCU_FRC_EFUSE_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_EFUSE_HCLK_FORCE_OFF
 
#define LL_CGC_MCU_SLP_EFUSE_HCLK_OFF_EN   MCU_SUB_SECU_CLK_CTRL_EFUSE_HCLK_SLP_OFF
 
#define LL_CGC_MCU_SECU_FRC_OFF_HCLK   ((uint32_t)0x00001555U)
 
#define LL_CGC_MCU_SECU_FRC_OFF_WFI_HCLK   ((uint32_t)0x00002AAAU)
 
#define LL_CGC_MCU_SECU_FRC_OFF_ALL
 
#define LL_CGC_MCU_MISC_CLK_DEFAULT   ((uint32_t)0x00000038U)
 
#define LL_CGC_MCU_MISC_CLK   ((uint32_t)0x0000003CU)
 
#define LL_CGC_MCU_MISC_DMA_CLK   ((uint32_t)0x00000038U)
 
#define LL_CGC_MCU_SUBSYS_DEFAULT_WFI_CLK0
 
#define LL_CGC_MCU_SUBSYS_DEFAULT_WFI_CLK1
 
#define LL_CGC_MCU_SUBSYS_DEFAULT_CLK0
 
#define LL_CGC_MCU_PERIPH_CG_DEFAULT
 
#define LL_CGC_MCU_PERIPH_SLP_CG_DEFAULT
 
#define CGC_CLOCK_ENABLE   (1)
 
#define CGC_CLOCK_DISABLE   (0)
 
#define BIT_BAND(addr, bitnum)   (((addr) & 0xF0000000) + 0x2000000 + (((addr) & 0xFFFFF) << 5) + ((bitnum) << 2))
 
#define MEMORY_ADDR(addr)   (*((volatile uint32_t *)(addr)))
 
#define BIT_SEGMENT_VALUE(addr, bitnum)   MEMORY_ADDR(BIT_BAND(addr, bitnum))
 

Functions

__STATIC_INLINE void ll_cgc_set_wfi_off_hclk_0 (uint32_t clk_mask)
 Some peripherals automatic turn off clock during WFI. (Include: Security/HTB/PWM/ ROM/SNSADC/GPIO/BLE_BRG/APB_SUB/SERIAL) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_wfi_off_hclk_0 (void)
 Return to clock blocks that is turned off during WFI.(Include: Security/SIM/HTB/PWM/ ROM/SNSADC/GPIO/DMA/BLE_BRG/APB_SUB/SERIAL/I2S) More...
 
__STATIC_INLINE void ll_cgc_set_wfi_off_hclk_1 (uint32_t clk_mask)
 Some peripherals automatic turn off clock during WFI. (Include: AON_MCUSUB/XF_XQSPI/SRAM) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_wfi_off_hclk_1 (void)
 Return to clock blocks that is turned off during WFI.(Include: AON_MCUSUB/XF_XQSPI/SRAM) More...
 
__STATIC_INLINE void ll_cgc_set_wfi_off_hclk_2 (uint32_t clk_mask)
 Some peripherals automatic turn off clock during WFI. (Include: SECU_DIV4/XQSPI_DIV4) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_wfi_off_hclk_2 (void)
 Return to clock blocks that is turned off during WFI.(Include: AON_MCUSUB/XF_XQSPI/SRAM) More...
 
__STATIC_INLINE void ll_cgc_set_wfi_off_hclk_3 (uint32_t clk_mask)
 Some peripherals automatic turn off clock during WFI. (Include: UART/DSPI.I2C/QSPI.etc) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_wfi_off_hclk_3 (void)
 Return to clock blocks that is turned off during WFI.(Include: UART/DSPI.I2C/QSPI.etc) More...
 
__STATIC_INLINE void ll_cgc_set_wfi_off_hclk_4 (uint32_t clk_mask)
 Some peripherals automatic turn off clock during WFI. (Include: AES/HMAC/PKC/RNG.etc) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_wfi_off_hclk_4 (void)
 Return to clock blocks that is turned off during WFI.(Include: AES/HMAC/PKC/RNG.etc) More...
 
__STATIC_INLINE void ll_cgc_set_force_off_hclk_0 (uint32_t clk_mask)
 Some peripherals force turn off clock. (Include: Security/SIM/HTB/PWM/ROM/SNSADC/GPIO/ DMA/BLE_BRG/APB_SUB/SERIAL/I2S) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_force_off_hclk_0 (void)
 Return to clock blocks that was forcibly closed.(Include: Security/SIM/HTB/ ROM/SNSADC/GPIO/DMA/BLE_BRG/APB_SUB/SERIAL/I2S) More...
 
__STATIC_INLINE void ll_cgc_set_force_off_hclk_1 (uint32_t clk_mask)
 Some peripherals force turn off clock. (Include: AON_MCUSUB/XF_XQSPI/SRAM) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_force_off_hclk_1 (void)
 Return to clock blocks that was forcibly closed.(Include: AON_MCUSUB/XF_XQSPI/SRAM) More...
 
__STATIC_INLINE void ll_cgc_set_force_off_hclk_2 (uint32_t clk_mask)
 Some peripherals force turn off clock. (Include: UART0_HCLK/UART1_HCLK/UART2_HCLK/UART3_HCLK/UART4_HCLK/UART5_HCLK/ I2C0_HCLK/I2C1_HCLK/SPIM_HCLK/SPIS_HCLK/QSPI0_HCLK/QSPI1_HCLK/I2S_HCLK/SECU_DIV4_PCLK/XQSPI_DIV4_PCLK/PWM0/PWM1) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_force_off_hclk_2 (void)
 Return to clock blocks that was forcibly closed.(Include: UART0_HCLK/UART1_HCLK/UART2_HCLK/UART3_HCLK/UART4_HCLK/UART5_HCLK/ I2C0_HCLK/I2C1_HCLK/SPIM_HCLK/SPIS_HCLK/QSPI0_HCLK/QSPI1_HCLK/I2S_HCLK/SECU_DIV4_PCLK/XQSPI_DIV4_PCLK/PWM0/PWM1) More...
 
__STATIC_INLINE void ll_cgc_set_force_off_hclk_3 (uint32_t clk_mask)
 Some peripherals automatic turn off clock. (Include: AES/HMAC/PKC/RNG.etc) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_force_off_hclk_3 (void)
 Return to clock blocks that is turned off.(Include: AES/HMAC/PKC/RNG.etc) More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_secu_hclk (void)
 Enable security blocks(including AES, PKC, Present, HMAC) automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_secu_hclk (void)
 Disable security blocks(including AES, PKC, Present, HMAC) automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_secu_hclk (void)
 Indicate whether the security blocks(including AES, PKC, Present, HMAC) automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_htb_hclk (void)
 Enable Hopping Table automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_htb_hclk (void)
 Disable Hopping Table automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_htb_hclk (void)
 Indicate whether the Hopping Table automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_rom_hclk (void)
 Enable ROM automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_rom_hclk (void)
 Disable ROM automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_rom_hclk (void)
 Indicate whether the ROM automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_snsadc_hclk (void)
 Enable SNSADC automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_snsadc_hclk (void)
 Disable SNSADC automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_snsadc_hclk (void)
 Indicate whether the SNSADC automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_gpio_hclk (void)
 Enable GPIO automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_gpio_hclk (void)
 Disable GPIO automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_gpio_hclk (void)
 Indicate whether the GPIO automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_dma_hclk (void)
 Enable DMA automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_dma_hclk (void)
 Disable DMA automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_dma_hclk (void)
 Indicate whether the DMA automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_ble_brg_hclk (void)
 Enable BLE Bridge automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_ble_brg_hclk (void)
 Disable BLE Bridge automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_ble_brg_hclk (void)
 Indicate whether the BLE Bridge automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_apb_sub_hclk (void)
 Enable APB Subsystem automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_apb_sub_hclk (void)
 Disable APB Subsystem automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_apb_sub_hclk (void)
 Indicate whether the APB Subsystem automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_serial_hclk (void)
 Enable serial blocks(including I2C, UART, QSPI, I2S, SPI) automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_serial_hclk (void)
 Disable serial blocks(including I2C, UART, QSPI, I2S, SPI) automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_serial_hclk (void)
 Indicate whether the serial blocks(including I2C, UART, QSPI, I2S, SPI) automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_aon_mcusub_hclk (void)
 Enable AON_MUCSUB automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_aon_mcusub_hclk (void)
 Disable AON_MUCSUB automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_aon_mcusub_hclk (void)
 Indicate whether the AON_MUCSUB automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_xqspi_hclk (void)
 Enable XQSPI automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_xqspi_hclk (void)
 Disable XQSPI automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_xqspi_hclk (void)
 Indicate whether the XQSPI automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_sram_hclk (void)
 Enable SRAM automatic turn off clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_sram_hclk (void)
 Disable SRAM automatic turn off clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_sram_hclk (void)
 Indicate whether the SRAM automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_secu_div4_hclk (void)
 Enable security blocks automatic turn off div4 clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_secu_div4_hclk (void)
 Disable security blocks automatic turn off div4 clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_secu_div4_hclk (void)
 Indicate whether the security blocks automatic turn off div4 clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_xqspi_div4_hclk (void)
 Enable XQSPI automatic turn off div4 clock during WFI. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_xqspi_div4_hclk (void)
 Disable XQSPI automatic turn off div4 clock during WFI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_xqspi_div4_hclk (void)
 Indicate whether the XQSPI automatic turn off div4 clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_secu_hclk (void)
 Enabling force to turn off the clock for security blocks(including AES, PKC, Present, HMAC). More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_secu_hclk (void)
 Disabling force to turn off the clock for security blocks(including AES, PKC, Present, HMAC). More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_secu_hclk (void)
 Indicate whether the clock for security blocks(including AES, PKC, Present, HMAC) is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_htb_hclk (void)
 Enabling force to turn off the clock for Hopping Table. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_htb_hclk (void)
 Disabling force to turn off the clock for Hopping Table. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_htb_hclk (void)
 Indicate whether the clock for Hopping Table is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_rom_hclk (void)
 Enabling force to turn off the clock for ROM. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_rom_hclk (void)
 Disabling force to turn off the clock for ROM. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_rom_hclk (void)
 Indicate whether the clock for ROM is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_snsadc_hclk (void)
 Enabling force to turn off the clock for SNSADC. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_snsadc_hclk (void)
 Disabling force to turn off the clock for SNSADC. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_snsadc_hclk (void)
 Indicate whether the clock for SNSADC is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_gpio_hclk (void)
 Enabling force to turn off the clock for GPIO. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_gpio_hclk (void)
 Disabling force to turn off the clock for GPIO. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_gpio_hclk (void)
 Indicate whether the clock for GPIO is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_ble_brg_hclk (void)
 Enabling force to turn off the clock for BLE Bridge. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_ble_brg_hclk (void)
 Disabling force to turn off the clock for BLE Bridge. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_ble_brg_hclk (void)
 Indicate whether the clock for BLE Bridge is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_apb_sub_hclk (void)
 Enabling force to turn off the clock for APB Subsystem. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_apb_sub_hclk (void)
 Disabling force to turn off the clock for APB Subsystem. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_apb_sub_hclk (void)
 Indicate whether the clock for APB Subsystem is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_serial_hclk (void)
 Enabling force to turn off the clock for serial blocks(including I2C, UART, QSPI, I2S, SPI). More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_serial_hclk (void)
 Disabling force to turn off the clock for serial blocks(including I2C, UART, QSPI, I2S, SPI). More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_serial_hclk (void)
 Indicate whether the clock for serial blocks(including I2C, UART, QSPI, I2S, SPI) is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_aon_mcusub_hclk (void)
 Enabling force to turn off the clock for AON_MUCSUB. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_aon_mcusub_hclk (void)
 Disabling force to turn off the clock for AON_MUCSUB. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_aon_mcusub_hclk (void)
 Indicate whether the clock for AON_MUCSUB is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_xqspi_hclk (void)
 Enabling force to turn off the clock for XQSPI. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_xqspi_hclk (void)
 Disabling force to turn off the clock for XQSPI. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_xqspi_hclk (void)
 Indicate whether the clock for XQSPI is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_sram_hclk (void)
 Enabling force to turn off the clock for SRAM. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_sram_hclk (void)
 Disabling force to turn off the clock for SRAM. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_sram_hclk (void)
 Indicate whether the clock for SRAM is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_uart0_hclk (void)
 Enabling force to turn off the clock for UART0. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_uart0_hclk (void)
 Disabling force to turn off the clock for UART0. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_uart0_hclk (void)
 Indicate whether the clock for UART0 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_uart1_hclk (void)
 Enabling force to turn off the clock for UART1. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_uart1_hclk (void)
 Disabling force to turn off the clock for UART1. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_uart1_hclk (void)
 Indicate whether the clock for UART1 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_uart2_hclk (void)
 Enabling force to turn off the clock for UART2. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_uart2_hclk (void)
 Disabling force to turn off the clock for UART2. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_uart2_hclk (void)
 Indicate whether the clock for UART2 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_uart3_hclk (void)
 Enabling force to turn off the clock for UART3. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_uart3_hclk (void)
 Disabling force to turn off the clock for UART3. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_uart3_hclk (void)
 Indicate whether the clock for UART3 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2c0_hclk (void)
 Enabling force to turn off the clock for I2C0. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2c0_hclk (void)
 Disabling force to turn off the clock for I2C0. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2c0_hclk (void)
 Indicate whether the clock for I2C0 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2c1_hclk (void)
 Enabling force to turn off the clock for I2C1. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2c1_hclk (void)
 Disabling force to turn off the clock for I2C1. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2c1_hclk (void)
 Indicate whether the clock for I2C1 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2c2_hclk (void)
 Enabling force to turn off the clock for I2C2. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2c2_hclk (void)
 Disabling force to turn off the clock for I2C2. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2c2_hclk (void)
 Indicate whether the clock for I2C2 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2c3_hclk (void)
 Enabling force to turn off the clock for I2C3. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2c3_hclk (void)
 Disabling force to turn off the clock for I2C3. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2c3_hclk (void)
 Indicate whether the clock for I2C3 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_spim_hclk (void)
 Enabling force to turn off the clock for SPIM. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_spim_hclk (void)
 Disabling force to turn off the clock for SPIM. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_spim_hclk (void)
 Indicate whether the clock for SPIM is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_spis_hclk (void)
 Enabling force to turn off the clock for SPIS. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_spis_hclk (void)
 Disabling force to turn off the clock for SPIS. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_spis_hclk (void)
 Indicate whether the clock for SPIS is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_qspi0_hclk (void)
 Enabling force to turn off the clock for QSPI0. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_qspi0_hclk (void)
 Disabling force to turn off the clock for QSPI0. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_qspi0_hclk (void)
 Indicate whether the clock for QSPI0 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_qspi1_hclk (void)
 Enabling force to turn off the clock for QSPI1. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_qspi1_hclk (void)
 Disabling force to turn off the clock for QSPI1. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_qspi1_hclk (void)
 Indicate whether the clock for QSPI1 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_qspi2_hclk (void)
 Enabling force to turn off the clock for QSPI2. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_qspi2_hclk (void)
 Disabling force to turn off the clock for QSPI2. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_qspi2_hclk (void)
 Indicate whether the clock for QSPI2 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2s_m_hclk (void)
 Enabling force to turn off the clock for I2S master. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2s_m_hclk (void)
 Disabling force to turn off the clock for I2S master. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2s_m_hclk (void)
 Indicate whether the clock for I2S master is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_i2s_s_p_hclk (void)
 Enabling force to turn off the clock for I2S slave. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_i2s_s_p_hclk (void)
 Disabling force to turn off the clock for I2S slave. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_i2s_s_p_hclk (void)
 Indicate whether the clock for I2S slave is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_dspi_hclk (void)
 Enabling force to turn off the clock for DSPI slave. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_dspi_hclk (void)
 Disabling force to turn off the clock for DSPI slave. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_dspi_hclk (void)
 Indicate whether the clock for DSPI is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_pdm_hclk (void)
 Enabling force to turn off the clock for PDM slave. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_pdm_hclk (void)
 Disabling force to turn off the clock for PDM slave. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_pdm_hclk (void)
 Indicate whether the clock for PDM is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_secu_div4_pclk (void)
 Enabling force to turn off the div4 clock for security blocks. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_secu_div4_pclk (void)
 Disabling force to turn off the div4 clock for security blocks. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_secu_div4_pclk (void)
 Indicate whether the div4 clock for security blocks is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_xf_xqspi_div4_pclk (void)
 Enabling force to turn off the div4 clock for xf qspi blocks. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_xf_xqspi_div4_pclk (void)
 Disabling force to turn off the div4 clock for xf qspi blocks. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_xf_xqspi_div4_pclk (void)
 Indicate whether the div4 clock for xf qspi blocks is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_pwm0_hclk (void)
 Enabling force to turn off the clock for PWM0. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_pwm0_hclk (void)
 Disabling force to turn off the clock for PWM0. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_pwm0_hclk (void)
 Indicate whether the clock for PWM0 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_pwm1_hclk (void)
 Enabling force to turn off the clock for PWM1. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_pwm1_hclk (void)
 Disabling force to turn off the clock for PWM1. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_pwm1_hclk (void)
 Indicate whether the clock for PWM1 is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_vttbl_hclk (void)
 Enabling force to turn off the clock for VTTBL. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_vttbl_hclk (void)
 Disabling force to turn off the clock for VTTBL. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_vttbl_hclk (void)
 Indicate whether the clock for VTTBL is forced to close. More...
 
__STATIC_INLINE void ll_cgc_set_mcu_periph_low_power (uint32_t clk_mask)
 Some peripherals has low power feature. (Include: UART/I2S/SPIM/SPIS/I2C/AHB BUS) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_mcu_periph_low_power (void)
 Return to clock blocks that has low power feature. (Include: UART/I2S/SPIM/SPIS/I2C/AHB BUS) More...
 
__STATIC_INLINE void ll_cgc_enable_uart_sclk_low_power (void)
 Enable uart sclk low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_uart_sclk_low_power (void)
 Disable uart sclk low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart_sclk_low_power (void)
 Indicate whether the uart sclk low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_uart_pclk_low_power (void)
 Enable uart pclk low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_uart_pclk_low_power (void)
 Disable uart pclk low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart_pclk_low_power (void)
 Indicate whether the uart pclk low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2s_low_power (void)
 Enable i2s low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_i2s_low_power (void)
 Disable i2s low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2s_low_power (void)
 Indicate whether the i2s low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_spim_sclk_low_power (void)
 Enable spim sclk low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_spim_sclk_low_power (void)
 Disable spim sclk low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_spim_sclk_low_power (void)
 Indicate whether the spim sclk low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_spis_sclk_low_power (void)
 Enable spis sclk low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_spis_sclk_low_power (void)
 Disable spis sclk low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_spis_sclk_low_power (void)
 Indicate whether the spis sclk low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2c_sclk_low_power (void)
 Enable i2c sclk low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_i2c_sclk_low_power (void)
 Disable i2c sclk low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2c_sclk_low_power (void)
 Indicate whether the i2c sclk low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_ahb_bus_low_power (void)
 Enable ahb bus low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_ahb_bus_low_power (void)
 Disable ahb bus low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_ahb_bus_low_power (void)
 Indicate whether the ahb bus low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_qspim_low_power (void)
 Enable QSPIM low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_qspim_low_power (void)
 Disable QSPIM low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_qspim_low_power (void)
 Indicate whether the QSPIM low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_ahb2apb_sync_bus_low_power (void)
 Enable AHB2APB bus low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_ahb2apb_sync_bus_low_power (void)
 Disable AHB2APB bus low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_ahb2apb_sync_bus_low_power (void)
 Indicate whether the AHB2APB bus low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_ahb2apb_async_bus_low_power (void)
 Enable ahb bus low-power feature. More...
 
__STATIC_INLINE void ll_cgc_disable_ahb2apb_async_bus_low_power (void)
 Disable ahb bus low-power feature. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_ahb2apb_async_bus_low_power (void)
 Indicate whether the ahb bus low-power is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_uart0_slp_wfi (void)
 Enable turn UART0 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_uart0_slp_wfi (void)
 Disable turn UART0 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart0_slp_wfi (void)
 Indicate whether turn UART0 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_uart1_slp_wfi (void)
 Enable turn UART1 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_uart1_slp_wfi (void)
 Disable turn UART1 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart1_slp_wfi (void)
 Indicate whether turn UART1 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_uart2_slp_wfi (void)
 Enable turn UART2 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_uart2_slp_wfi (void)
 Disable turn UART2 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart2_slp_wfi (void)
 Indicate whether turn UART2 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_uart3_slp_wfi (void)
 Enable turn UART3 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_uart3_slp_wfi (void)
 Disable turn UART3 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_uart3_slp_wfi (void)
 Indicate whether turn UART3 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2c0_slp_wfi (void)
 Enable turn I2C0 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2c0_slp_wfi (void)
 Disable turn I2C0 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2c0_slp_wfi (void)
 Indicate whether turn I2C0 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2c1_slp_wfi (void)
 Enable turn I2C1 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2c1_slp_wfi (void)
 Disable turn I2C1 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2c1_slp_wfi (void)
 Indicate whether turn I2C1 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2c2_slp_wfi (void)
 Enable turn I2C2 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2c2_slp_wfi (void)
 Disable turn I2C2 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2c2_slp_wfi (void)
 Indicate whether turn I2C2 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2c3_slp_wfi (void)
 Enable turn I2C3 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2c3_slp_wfi (void)
 Disable turn I2C3 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2c3_slp_wfi (void)
 Indicate whether turn I2C3 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2s_m_slp_wfi (void)
 Enable turn I2S_M off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2s_m_slp_wfi (void)
 Disable turn I2S_M off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2s_m_slp_wfi (void)
 Indicate whether turn I2S_M off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_i2s_s_slp_wfi (void)
 Enable turn I2S_S off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_i2s_s_slp_wfi (void)
 Disable turn I2S_S off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_i2s_s_slp_wfi (void)
 Indicate whether turn I2S_S off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_spi_m_slp_wfi (void)
 Enable turn SPI_M off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_spi_m_slp_wfi (void)
 Disable turn SPI_M off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_spi_m_slp_wfi (void)
 Indicate whether turn SPI_M off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_spi_s_slp_wfi (void)
 Enable turn SPI_S off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_spi_s_slp_wfi (void)
 Disable turn SPI_S off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_spi_s_slp_wfi (void)
 Indicate whether turn SPI_S off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_pwm0_slp_wfi (void)
 Enable turn pwm0 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_pwm0_slp_wfi (void)
 Disable turn pwm0 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_pwm0_slp_wfi (void)
 Indicate whether turn pwm0 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_pwm1_slp_wfi (void)
 Enable turn pwm1 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_pwm1_slp_wfi (void)
 Disable turn pwm1 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_pwm1_slp_wfi (void)
 Indicate whether turn pwm1 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_qspim0_slp_wfi (void)
 Enable turn QSPIM0 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_qspim0_slp_wfi (void)
 Disable turn QSPIM0 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_qspim0_slp_wfi (void)
 Indicate whether turn QSPIM0 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_qspim1_slp_wfi (void)
 Enable turn QSPIM1 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_qspim1_slp_wfi (void)
 Disable turn QSPIM1 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_qspim1_slp_wfi (void)
 Indicate whether turn QSPIM1 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_qspim2_slp_wfi (void)
 Enable turn QSPIM2 off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_qspim2_slp_wfi (void)
 Disable turn QSPIM2 off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_qspim2_slp_wfi (void)
 Indicate whether turn QSPIM2 off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_dspi_slp_wfi (void)
 Enable turn DSPI off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_dspi_slp_wfi (void)
 Disable turn DSPI off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_dspi_slp_wfi (void)
 Indicate whether turn DSPI off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_pdm_slp_wfi (void)
 Enable turn PDM off during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_pdm_slp_wfi (void)
 Disable turn PDM off during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_pdm_slp_wfi (void)
 Indicate whether turn PDM off during WFI/WFE is enabled. More...
 
__STATIC_INLINE void ll_cgc_set_force_off_hclk_secu (uint32_t clk_mask)
 Individual block's clock control inside security system which was forced to turn off (Include: AES/HMAC/PKC/PRESENT/RAMKAY/RNG/EFUSE) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_force_off_secu (void)
 Return to clock blocks that was forcibly closed inside security system.(Include: AES/HMAC/PKC/PRESENT/RAMKAY/RNG/EFUSE) More...
 
__STATIC_INLINE void ll_cgc_set_slp_off_hclk_secu (uint32_t clk_mask)
 Some security blocks automatic turn off clock during WFI/WFE. (Include: AES/HMAC/PKC/PRESENT/RAMKAY/RNG/EFUSE) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_slp_off_secu (void)
 Return to security clock blocks that is turned off during WFI/WFE.(Include: AES/HMAC/PKC/PRESENT/RAMKAY/RNG/EFUSE) More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_aes_hclk (void)
 Enabling force to turn off the clock for AES. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_aes_hclk (void)
 Disabling force to turn off the clock for AES. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_aes_hclk (void)
 Indicate whether the clock for AES is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_hmac_hclk (void)
 Enabling force to turn off the clock for HMAC. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_hmac_hclk (void)
 Disabling force to turn off the clock for HMAC. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_hmac_hclk (void)
 Indicate whether the clock for HMAC is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_pkc_hclk (void)
 Enabling force to turn off the clock for PKC. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_pkc_hclk (void)
 Disabling force to turn off the clock for PKC. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_pkc_hclk (void)
 Indicate whether the clock for PKC is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_present_hclk (void)
 Enabling force to turn off the clock for PRESENT. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_present_hclk (void)
 Disabling force to turn off the clock for PRESENT. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_present_hclk (void)
 Indicate whether the clock for PRESENT is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_ramkey_hclk (void)
 Enabling force to turn off the clock for RAMKEY. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_ramkey_hclk (void)
 Disabling force to turn off the clock for RAMKEY. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_ramkey_hclk (void)
 Indicate whether the clock for RAMKEY is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_rng_hclk (void)
 Enabling force to turn off the clock for RNG. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_rng_hclk (void)
 Disabling force to turn off the clock for RNG. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_rng_hclk (void)
 Indicate whether the clock for RNG is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_efuse_hclk (void)
 Enabling force to turn off the clock for EFUSE. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_efuse_hclk (void)
 Disabling force to turn off the clock for EFUSE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_efuse_hclk (void)
 Indicate whether the clock for EFUSE is forced to close. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_aes_hclk (void)
 Enable AES automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_aes_hclk (void)
 Disable AES automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_aes_hclk (void)
 Indicate whether the AES automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_hmac_hclk (void)
 Enable HMAC automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_hmac_hclk (void)
 Disable HMAC automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_hmac_hclk (void)
 Indicate whether the HMAC automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_pkc_hclk (void)
 Enable PKC automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_pkc_hclk (void)
 Disable PKC automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_pkc_hclk (void)
 Indicate whether the PKC automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_present_hclk (void)
 Enable PRESENT automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_present_hclk (void)
 Disable PRESENT automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_present_hclk (void)
 Indicate whether the PRESENT automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_ramkey_hclk (void)
 Enable RAMKEY automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_ramkey_hclk (void)
 Disable RAMKEY automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_ramkey_hclk (void)
 Indicate whether the RAMKEY automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_rng_hclk (void)
 Enable RNG automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_rng_hclk (void)
 Disable RNG automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_rng_hclk (void)
 Indicate whether the RNG automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_wfi_off_efuse_hclk (void)
 Enable EFUSE automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE void ll_cgc_disable_wfi_off_efuse_hclk (void)
 Disable EFUSE automatic turn off clock during WFI/WFE. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_wfi_off_efuse_hclk (void)
 Indicate whether the EFUSE automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_set_misc_clk (uint32_t clk_mask)
 Some MISC_CLK blocks turn off clock. (Include: GPADC/XQSPI/DMA0/DMA1/DMA2) More...
 
__STATIC_INLINE uint32_t ll_cgc_get_misc_clk (void)
 Return to MISC_CLK clock blocks that is turned off.(Include: GPADC/XQSPI/DMA0/DMA1/DMA2) More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_xqspi_sck (void)
 Enable XQSPI SCK CLK turn off. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_xqspi_sck (void)
 Disable XQSPI SCK CLK turn off. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_xqspi_sck (void)
 Indicate whether the XQSPI SCK CLK automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_dma0_hclk (void)
 Enable DMA0 turn off. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_dma0_hclk (void)
 Disable DMA0 turn off. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_dma0_hclk (void)
 Indicate whether the DMA0 automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_dma1_hclk (void)
 Enable DMA1 turn off. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_dma1_hclk (void)
 Disable DMA1 turn off. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_dma1_hclk (void)
 Indicate whether the DMA1 automatic turn off clock is enabled. More...
 
__STATIC_INLINE void ll_cgc_enable_force_off_dma2_hclk (void)
 Enable DMA2 turn off. More...
 
__STATIC_INLINE void ll_cgc_disable_force_off_dma2_hclk (void)
 Disable DMA2 turn off. More...
 
__STATIC_INLINE uint32_t ll_cgc_is_enabled_force_off_dma2_hclk (void)
 Indicate whether the DMA2 automatic turn off clock is enabled. More...
 

Detailed Description

Header file containing functions prototypes of CGC LL library.

Author
BLE Driver Team
Attention
#####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file gr55xx_ll_cgc.h.