MTB CAT1 Peripheral driver library

General Description

Functions

void Cy_SysClk_ClkMemSetDivider (uint8_t divider)
 Sets the clock divider for the Mem clock. More...
 
uint8_t Cy_SysClk_ClkMemGetDivider (void)
 Reports the divider value for the Mem clock. More...
 
uint32_t Cy_SysClk_ClkMemGetFrequency (void)
 Reports the frequency of the Mem clock. More...
 

Function Documentation

◆ Cy_SysClk_ClkMemSetDivider()

void Cy_SysClk_ClkMemSetDivider ( uint8_t  divider)

Sets the clock divider for the Mem clock.

The source of this clock is clkHf[0].

Parameters
dividerDivider value between 0 and 255. Causes integer division of (divider value + 1), or division by 1 to 256.
Note
Call SystemCoreClockUpdate after this function calling.
This API is available for only CAT1C devices.

◆ Cy_SysClk_ClkMemGetDivider()

uint8_t Cy_SysClk_ClkMemGetDivider ( void  )

Reports the divider value for the Mem clock.

Returns
The divider value. The integer division done is by (divider value + 1), or division by 1 to 256.
Note
This API is available for only CAT1C devices.

◆ Cy_SysClk_ClkMemGetFrequency()

uint32_t Cy_SysClk_ClkMemGetFrequency ( void  )

Reports the frequency of the Mem clock.

Returns
The frequency, in Hz.
Note
This API is available for only CAT1C devices.