CAT2 Peripheral Driver Library

Enumerations

enum  cy_en_sysclk_pll_src_t {
  CY_SYSCLK_PLL_SRC_ECO = 0U,
  CY_SYSCLK_PLL_SRC_EXTREF = 1U,
  CY_SYSCLK_PLL_SRC_IMO = CY_SYSCLK_PLL_SRC_IMO_NUM
}
 The PLL input clock source selection. More...
 
enum  cy_en_sysclk_pll_bypass_t {
  CY_SYSCLK_PLL_BYP_AUTO = 0U,
  CY_SYSCLK_PLL_BYP_ECO = 2U,
  CY_SYSCLK_PLL_BYP_PLL = 3U
}
 PLL bypass mode. More...
 

Detailed Description

Enumeration Type Documentation

◆ cy_en_sysclk_pll_src_t

The PLL input clock source selection.

Used with functions Cy_SysClk_PllSetSource and Cy_SysClk_PllGetSource.

Enumerator
CY_SYSCLK_PLL_SRC_ECO 

PLL runs from ECO.

CY_SYSCLK_PLL_SRC_EXTREF 

PLL runs from the external reference.

It is not the same as CY_SYSCLK_CLKHF_IN_EXTCLK. It may be the same GPIO pin but with different HSIOM connection, usually commented with 'exco.pll_ref_in'. Note the clock source may be absent on some devices.

CY_SYSCLK_PLL_SRC_IMO 

PLL runs from IMO.

◆ cy_en_sysclk_pll_bypass_t

PLL bypass mode.

See register CLK_PLL_CONFIG, bits BYPASS_SEL.

Enumerator
CY_SYSCLK_PLL_BYP_AUTO 

ECO when PLL is not locked, and PLL output when locked.

Not valid if ECO is disabled.

CY_SYSCLK_PLL_BYP_ECO 

ECO regardless of PLL lock/enable status.

Not valid if ECO is disabled.

CY_SYSCLK_PLL_BYP_PLL 

PLL Output regardless of lock status.

In case of ECO is enabled - this option can be dangerous, because PLL output may be unstable, so the CY_SYSCLK_PLL_BYP_AUTO is preferable; In case of ECO is disabled - this is the only valid PLL bypass option.