MTB CAT1 Peripheral driver library

General Description

Functions

void Cy_SysClk_ClkPumpSetSource (cy_en_clkpump_in_sources_t source)
 Sets the source for the pump clock (clk_pump). More...
 
cy_en_clkpump_in_sources_t Cy_SysClk_ClkPumpGetSource (void)
 Reports the source for the pump clock (clk_pump). More...
 
void Cy_SysClk_ClkPumpSetDivider (cy_en_clkpump_divide_t divider)
 Sets the divider of the pump clock (clk_pump). More...
 
cy_en_clkpump_divide_t Cy_SysClk_ClkPumpGetDivider (void)
 Reports the divider value for the pump clock (clk_pump). More...
 
void Cy_SysClk_ClkPumpEnable (void)
 Enables the pump clock (clk_pump). More...
 
bool Cy_SysClk_ClkPumpIsEnabled (void)
 Reports the Enabled/Disabled status of the ClkPump. More...
 
void Cy_SysClk_ClkPumpDisable (void)
 Disables the pump clock (clk_pump). More...
 
uint32_t Cy_SysClk_ClkPumpGetFrequency (void)
 Reports the frequency of the pump clock (clk_pump). More...
 

Function Documentation

◆ Cy_SysClk_ClkPumpSetSource()

void Cy_SysClk_ClkPumpSetSource ( cy_en_clkpump_in_sources_t  source)

Sets the source for the pump clock (clk_pump).

The pump clock can be used for the analog pumps in the CTBm block.

Parameters
sourcecy_en_clkpump_in_sources_t
Note
Do not change the source while the pump clock is enabled.
Function Usage
/* Scenario: The pump clock source needs to be updated to path 0 clock. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpGetSource()

cy_en_clkpump_in_sources_t Cy_SysClk_ClkPumpGetSource ( void  )

Reports the source for the pump clock (clk_pump).

Returns
cy_en_clkpump_in_sources_t
Function Usage
/* Scenario: The pump clock source needs to be updated to path 0 clock. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpSetDivider()

void Cy_SysClk_ClkPumpSetDivider ( cy_en_clkpump_divide_t  divider)

Sets the divider of the pump clock (clk_pump).

Parameters
dividercy_en_clkpump_divide_t
Note
Do not change the divider value while the pump clock is enabled.
Function Usage
/* Scenario: The pump clock divider needs to be updated to 4. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpGetDivider()

cy_en_clkpump_divide_t Cy_SysClk_ClkPumpGetDivider ( void  )

Reports the divider value for the pump clock (clk_pump).

Returns
cy_en_clkpump_divide_t
Function Usage
/* Scenario: The pump clock divider needs to be updated to 4. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpEnable()

void Cy_SysClk_ClkPumpEnable ( void  )

Enables the pump clock (clk_pump).

The pump clock can be used for the analog pumps in the CTBm block.

Function Usage
/* Scenario: The Pump clock must be sourced from the Path 2 clock. The
frequency of the pump clock must be 1/16 of Path 2 clock. */
/* Use the pump clock as the source for CTB(m) blocks. */
/* In case if there is a need to get the pump clock frequency */
uint32_t pumpClkFreq = Cy_SysClk_ClkPumpGetFrequency();
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpIsEnabled()

bool Cy_SysClk_ClkPumpIsEnabled ( void  )

Reports the Enabled/Disabled status of the ClkPump.

Returns
Boolean status of ClkPump: true - Enabled, false - Disabled.
Function Usage
/* Scenario: Pump clock is no longer required and needs to be disabled.
All peripherals clocked using this source are disabled. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpDisable()

void Cy_SysClk_ClkPumpDisable ( void  )

Disables the pump clock (clk_pump).

Function Usage
/* Scenario: Pump clock is no longer required and needs to be disabled.
All peripherals clocked using this source are disabled. */
{
}
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.

◆ Cy_SysClk_ClkPumpGetFrequency()

uint32_t Cy_SysClk_ClkPumpGetFrequency ( void  )

Reports the frequency of the pump clock (clk_pump).

Note
If the the pump clock is not enabled - a zero frequency is reported.
Function Usage
/* Scenario: The Pump clock must be sourced from the Path 2 clock. The
frequency of the pump clock must be 1/16 of Path 2 clock. */
/* Use the pump clock as the source for CTB(m) blocks. */
/* In case if there is a need to get the pump clock frequency */
uint32_t pumpClkFreq = Cy_SysClk_ClkPumpGetFrequency();
Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.