iLLD_TC27xD  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_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 IfxScu_CCUCON0_CLKSEL IfxScuCcu_getSourceSelection (void)
 Returns the clock source selection. 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_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_EXTERN 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_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...
 
IFX_EXTERN float32 IfxScuCcu_setSriFrequency (float32 sriFreq)
 API to set SRI frequency (with SRI divider) This API configure Sri 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 196 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 214 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 232 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 273 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 1065 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 304 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 327 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 350 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 391 of file IfxScuCcu.c.

IFX_EXTERN 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 416 of file IfxScuCcu.c.

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

IFX_EXTERN 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 422 of file IfxScuCcu.c.

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 1077 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 1087 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 444 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 472 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 491 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 519 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 538 of file IfxScuCcu.c.

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

IFX_INLINE IfxScu_CCUCON0_CLKSEL IfxScuCcu_getSourceSelection ( void  )

Returns the clock source selection.

Returns
Clock source selection

Definition at line 1096 of file IfxScuCcu.h.

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 600 of file IfxScuCcu.c.

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

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 1102 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 1055 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 1136 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 1149 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 1162 of file IfxScuCcu.c.

IFX_EXTERN float32 IfxScuCcu_setSriFrequency ( float32  sriFreq)

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

Parameters
sriFreqSri frequency (fSRI) in Hz
Returns
Actual Sri frequency (fSRI) in Hz

Definition at line 1207 of file IfxScuCcu.c.