iLLD_TC27xC  1.0
Clock Control Operative Functions
Collaboration diagram for Clock Control Operative Functions:

Functions

IFX_INLINE float32 IfxScuCcu_getEvrFrequency (void)
 API to get EVR Oscillator frequency. This API returns the constant which is specific to the ScuCcu of the controller. More...
 
IFX_INLINE float32 IfxScuCcu_getOsc0Frequency (void)
 API to get Oscillator 0 frequency. This API returns the fOsc0 frequency based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_INLINE float32 IfxScuCcu_getOscFrequency (void)
 API to get Oscillator 0 frequency. This API returns the fOsc0 frequency based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_INLINE float32 IfxScuCcu_getPll2ErayFrequency (void)
 API to get actual PLL2 (K3 Divider for ADC clock) frequency This API returns the PLL2ERAY frequency based on the K3 divider value in PLLERAYCON and the VCO frequency. This frequency is one of the configurable inputs to ADC clock. More...
 
IFX_INLINE float32 IfxScuCcu_getPll2Frequency (void)
 API to get actual PLL2 (K3 Divider for ADC clock) frequency This API returns the PLL2 frequency based on the K3 divider value in PLLCON and the VCO frequency. This frequency is one of the configurable inputs to ADC clock. More...
 
IFX_INLINE float32 IfxScuCcu_getStmFrequency (void)
 API to get STM divider frequency. This API returns the based on the divider value in CCUCON register and fSOURCE. More...
 
IFX_EXTERN float32 IfxScuCcu_getBaud1Frequency (void)
 API to get BAUD1 divider frequency. This API returns the based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getBaud2Frequency (void)
 API to get BAUD2 divider frequency. This API returns the Baud2 frequency based on the divider value in CCUCON register and the fMAX. More...
 
IFX_EXTERN float32 IfxScuCcu_getBbbFrequency (void)
 API to get BBB divider frequency. This API returns the BBBDivider frequency based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getCpuFrequency (const IfxCpu_ResourceCpu cpu)
 This API returns the Cpu frequency based on the divider value in CCUCON register and fSource frequency. More...
 
IFX_EXTERN float32 IfxScuCcu_getFsi2Frequency (void)
 API to get FSI2 divider frequency in Hz. This API returns the fFSI2 frequency based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getFsiFrequency (void)
 API to get FSI divider frequency in Hz. This API returns the fFSI based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getMaxFrequency (void)
 API to get FMAX divider frequency. This API returns the fMax frequency based on the divider value in CCUCON register and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getModuleFrequency (void)
 get source frequency fSOURCE. This API returns the source frequency based on the configurations with CCUCON register configuration. More...
 
IFX_EXTERN float32 IfxScuCcu_getPllErayFrequency (void)
 API to get actual PLL (Eray) frequency. This API returns the based on the divider values in CCUCON, PLLCON registers and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getPllErayVcoFrequency (void)
 API to get actual ERAY PLL Voltage Controlled Oscillator frequency. This API returns the based on the divider values in PLLERAYCON registers and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getPllFrequency (void)
 API to get actual PLL output frequency. This API returns the based on the divider values in CCUCON, PLLCON registers and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getPllVcoFrequency (void)
 API to get actual PLL Voltage Controlled Oscillator frequency. This API returns the based on the divider values in PLLCON registers and the input oscillator. More...
 
IFX_EXTERN float32 IfxScuCcu_getSourceFrequency (void)
 get source frequency fSOURCE. This API returns the source frequency based on the configurations with CCUCON register configuration. More...
 
IFX_EXTERN float32 IfxScuCcu_getSpbFrequency (void)
 API to get SPB divider frequency. This API returns the based on fSOURCE and also on Low power divider mode and/or SPBDIV divider value in CCUCON registers. More...
 
IFX_EXTERN float32 IfxScuCcu_getSriFrequency (void)
 API to get SRI divider frequency. This API returns the Sri frequency based on the divider values in CCUCON registers and fSOURCE. More...
 
IFX_EXTERN float32 IfxScuCcu_setCpuFrequency (IfxCpu_ResourceCpu cpu, float32 cpuFreq)
 API to set CPU frequency (with CPU divider) This API configure CPU divider values in CCUCON registers. The actual frequency is always depends on the feasibility with the divider value. More...
 
IFX_EXTERN float32 IfxScuCcu_setPll2ErayFrequency (float32 pll2ErayFreq)
 API to configure PLL2ERAY (K3 Divider for ADC clock) for desired frequency. This API configure K3 divider value in CCUCON. The actual frequency always depends on the feasibility with the divider value. More...
 
IFX_EXTERN float32 IfxScuCcu_setPll2Frequency (float32 pll2Freq)
 API to configure PLL2 (K3 Divider for ADC clock) for desired frequency. This API configure K3 divider value in CCUCON. The actual frequency always depends on the feasibility with the divider value. More...
 
IFX_EXTERN float32 IfxScuCcu_setSpbFrequency (float32 spbFreq)
 API to set SPB frequency (with SPB divider) This API configure SPB divider values in CCUCON registers. The actual frequency always depends on the feasibility with the divider value. More...
 

Detailed Description

Function Documentation

IFX_EXTERN float32 IfxScuCcu_getBaud1Frequency ( void  )

API to get BAUD1 divider frequency. This API returns the based on the divider value in CCUCON register and the input oscillator.

Returns
Baud1 frequency in Hz

Definition at line 88 of file IfxScuCcu.c.

Referenced by IfxAsclin_getFaFrequency(), IfxI2c_getBaudrate(), and IfxI2c_setBaudrate().

IFX_EXTERN float32 IfxScuCcu_getBaud2Frequency ( void  )

API to get BAUD2 divider frequency. This API returns the Baud2 frequency based on the divider value in CCUCON register and the fMAX.

Returns
Baud2 frequency in Hz

Definition at line 106 of file IfxScuCcu.c.

Referenced by IfxAsclin_getFaFrequency().

IFX_EXTERN float32 IfxScuCcu_getBbbFrequency ( void  )

API to get BBB divider frequency. This API returns the BBBDivider frequency based on the divider value in CCUCON register and the input oscillator.

Returns
BBB frequency (fBBB) in Hz

Definition at line 124 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_getCpuFrequency ( const IfxCpu_ResourceCpu  cpu)

This API returns the Cpu frequency based on the divider value in CCUCON register and fSource frequency.

Parameters
cpuCPU number for which effective fCPU is sought
Returns
Cpu[x] frequency in Hz, where x is cpu number passed as parameter

Definition at line 165 of file IfxScuCcu.c.

IFX_INLINE float32 IfxScuCcu_getEvrFrequency ( void  )

API to get EVR Oscillator frequency. This API returns the constant which is specific to the ScuCcu of the controller.

Returns
EVR Oscillator frequency (fBACK or fEVR) in Hz.

Definition at line 399 of file IfxScuCcu.h.

Referenced by IfxScuCcu_getSourceFrequency().

IFX_EXTERN float32 IfxScuCcu_getFsi2Frequency ( void  )

API to get FSI2 divider frequency in Hz. This API returns the fFSI2 frequency based on the divider value in CCUCON register and the input oscillator.

Returns
FSI2 frequency (fFSI2) in Hz.

Definition at line 195 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_getFsiFrequency ( void  )

API to get FSI divider frequency in Hz. This API returns the fFSI based on the divider value in CCUCON register and the input oscillator.

Returns
FSI frequency (fFSI) in Hz.

Definition at line 218 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_getMaxFrequency ( void  )

API to get FMAX divider frequency. This API returns the fMax frequency based on the divider value in CCUCON register and the input oscillator.

Returns
Max frequency (fMAX) in Hz.

Definition at line 241 of file IfxScuCcu.c.

Referenced by IfxQspi_calcRealBaudrate(), IfxQspi_calculateTimeQuantumLength(), IfxQspi_getModuleFrequency(), IfxScuCcu_getBaud1Frequency(), and IfxScuCcu_getBaud2Frequency().

IFX_EXTERN float32 IfxScuCcu_getModuleFrequency ( void  )

get source frequency fSOURCE. This API returns the source frequency based on the configurations with CCUCON register configuration.

Returns
Module frequency in Hz

Definition at line 282 of file IfxScuCcu.c.

IFX_INLINE float32 IfxScuCcu_getOsc0Frequency ( void  )

API to get Oscillator 0 frequency. This API returns the fOsc0 frequency based on the divider value in CCUCON register and the input oscillator.

Returns
Osc0 frequency (fOSC0) in Hz.

Definition at line 405 of file IfxScuCcu.h.

Referenced by IfxAsclin_getFaFrequency(), IfxDsadc_getModulatorInputClockFreq(), and IfxMultican_Can_getConfig().

IFX_INLINE float32 IfxScuCcu_getOscFrequency ( void  )

API to get Oscillator 0 frequency. This API returns the fOsc0 frequency based on the divider value in CCUCON register and the input oscillator.

Returns
Osc frequency (fOSC) in Hz.

Definition at line 411 of file IfxScuCcu.h.

Referenced by IfxScuCcu_getPllErayFrequency(), IfxScuCcu_getPllErayVcoFrequency(), IfxScuCcu_getPllFrequency(), and IfxScuCcu_getPllVcoFrequency().

IFX_INLINE float32 IfxScuCcu_getPll2ErayFrequency ( void  )

API to get actual PLL2 (K3 Divider for ADC clock) frequency This API returns the PLL2ERAY frequency based on the K3 divider value in PLLERAYCON and the VCO frequency. This frequency is one of the configurable inputs to ADC clock.

Returns
PLL2ERAY (K3 Divider for ADC clock) frequency in Hz

Definition at line 433 of file IfxScuCcu.h.

Referenced by IfxScuCcu_setPll2ErayFrequency().

IFX_INLINE float32 IfxScuCcu_getPll2Frequency ( void  )

API to get actual PLL2 (K3 Divider for ADC clock) frequency This API returns the PLL2 frequency based on the K3 divider value in PLLCON and the VCO frequency. This frequency is one of the configurable inputs to ADC clock.

Returns
PLL2 (K3 Divider for ADC clock) frequency in Hz

Definition at line 443 of file IfxScuCcu.h.

Referenced by IfxScuCcu_setPll2Frequency().

IFX_EXTERN float32 IfxScuCcu_getPllErayFrequency ( void  )

API to get actual PLL (Eray) frequency. This API returns the based on the divider values in CCUCON, PLLCON registers and the input oscillator.

Returns
frequency of Pll Eray (fPLLERAY) in Hz

Definition at line 307 of file IfxScuCcu.c.

Referenced by IfxAsclin_getFaFrequency(), IfxDsadc_getModulatorInputClockFreq(), and IfxMultican_Can_getConfig().

IFX_EXTERN float32 IfxScuCcu_getPllErayVcoFrequency ( void  )

API to get actual ERAY PLL Voltage Controlled Oscillator frequency. This API returns the based on the divider values in PLLERAYCON registers and the input oscillator.

Returns
Pll (Eray) VCO frequency

Definition at line 335 of file IfxScuCcu.c.

Referenced by IfxScuCcu_getPll2ErayFrequency(), and IfxScuCcu_setPll2ErayFrequency().

IFX_EXTERN float32 IfxScuCcu_getPllFrequency ( void  )

API to get actual PLL output frequency. This API returns the based on the divider values in CCUCON, PLLCON registers and the input oscillator.

Returns
Pll (fPLL) frequency in Hz

Definition at line 354 of file IfxScuCcu.c.

Referenced by IfxScuCcu_getSourceFrequency().

IFX_EXTERN float32 IfxScuCcu_getPllVcoFrequency ( void  )

API to get actual PLL Voltage Controlled Oscillator frequency. This API returns the based on the divider values in PLLCON registers and the input oscillator.

Returns
Pll VCO frequency

Definition at line 382 of file IfxScuCcu.c.

Referenced by IfxScuCcu_getPll2Frequency(), and IfxScuCcu_setPll2Frequency().

IFX_EXTERN float32 IfxScuCcu_getSourceFrequency ( void  )

get source frequency fSOURCE. This API returns the source frequency based on the configurations with CCUCON register configuration.

Returns
Effective fSOURCE in Hz

Definition at line 401 of file IfxScuCcu.c.

Referenced by IfxScuCcu_getBbbFrequency(), IfxScuCcu_getGtmFrequency(), IfxScuCcu_getMaxFrequency(), IfxScuCcu_getSpbFrequency(), IfxScuCcu_getSriFrequency(), IfxScuCcu_getStmFrequency(), IfxScuCcu_setGtmFrequency(), and IfxScuCcu_setSpbFrequency().

IFX_EXTERN float32 IfxScuCcu_getSriFrequency ( void  )

API to get SRI divider frequency. This API returns the Sri frequency based on the divider values in CCUCON registers and fSOURCE.

Returns
Sri frequency (fSRI) in Hz

Definition at line 463 of file IfxScuCcu.c.

Referenced by IfxScuCcu_getCpuFrequency(), IfxScuCcu_getFsi2Frequency(), IfxScuCcu_getFsiFrequency(), and IfxScuCcu_setCpuFrequency().

IFX_INLINE float32 IfxScuCcu_getStmFrequency ( void  )

API to get STM divider frequency. This API returns the based on the divider value in CCUCON register and fSOURCE.

Returns
STM frequency (fSTM) in Hz

Definition at line 453 of file IfxScuCcu.h.

Referenced by IfxStm_getFrequency().

IFX_EXTERN float32 IfxScuCcu_setCpuFrequency ( IfxCpu_ResourceCpu  cpu,
float32  cpuFreq 
)

API to set CPU frequency (with CPU divider) This API configure CPU divider values in CCUCON registers. The actual frequency is always depends on the feasibility with the divider value.

Parameters
cpuCPU number for which fCPU to be configured
cpuFreqDesired CPU frequency in Hz
Returns
Actual CPU[x] frequency in Hz, where x is the cpu number passed as parameter

Definition at line 907 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_setPll2ErayFrequency ( float32  pll2ErayFreq)

API to configure PLL2ERAY (K3 Divider for ADC clock) for desired frequency. This API configure K3 divider value in CCUCON. The actual frequency always depends on the feasibility with the divider value.

Parameters
pll2ErayFreqPLL2ERAY (K3 Divider for ADC clock) frequency in Hz
Returns
Actual PLL2 (K3 Divider for ADC clock) frequency in Hz

Definition at line 956 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_setPll2Frequency ( float32  pll2Freq)

API to configure PLL2 (K3 Divider for ADC clock) for desired frequency. This API configure K3 divider value in CCUCON. The actual frequency always depends on the feasibility with the divider value.

Parameters
pll2FreqPLL2 (K3 Divider for ADC clock) frequency in Hz
Returns
Actual PLL2 (K3 Divider for ADC clock) frequency in Hz

Definition at line 969 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_setSpbFrequency ( float32  spbFreq)

API to set SPB frequency (with SPB divider) This API configure SPB divider values in CCUCON registers. The actual frequency always depends on the feasibility with the divider value.

Parameters
spbFreqDesired SPB frequency in Hz
Returns
Actual SPB frequency in Hz

Definition at line 982 of file IfxScuCcu.c.