Choco OS  V.0.16.9.0
Join to the chocolate world
(SAI PLL) Module for configuration of the SAI PLL

Module for configuration of the PLL SAI for STM32F7 family. More...

Enumerations

Functions

oC_ErrorCode_t oC_SaiPll_Configure (oC_SaiPll_OutputLine_t OutputLine, oC_Frequency_t Frequency, oC_Frequency_t PermissibleDifference, oC_Frequency_t *outRealFrequency)
 Configures SAI PLL. More...
 

Detailed Description

Enumeration Type Documentation

The type is for storing SAI PLL output line (look to the STM32F7 documentation for a CLOCK TREE)

Enumerator
oC_SaiPll_OutputLine_LTDC 

Output of the PLL connected to the LTDC module (LTDC Clock)

oC_SaiPll_OutputLine_PLL48CLK 

Output of the PLL connected to the PLL48CLK.

oC_SaiPll_OutputLine_SAICLK 

Output of the PLL connected to the SAI.

oC_SaiPll_OutputLine_NumberOfElements 

Number of main elements (maximum index) in the type.

All lines that has number smaller than this value can be configured separately

oC_SaiPll_OutputLine_IndexMask 

This is the mask to get index of the line from the type.

oC_SaiPll_OutputLine_SAI1CLK 

Additional definition for SAI1 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI2

oC_SaiPll_OutputLine_SAI2CLK 

Additional definition for SAI2 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI1

oC_SaiPll_OutputLine_LTDC 

Output of the PLL connected to the LTDC module (LTDC Clock)

oC_SaiPll_OutputLine_PLL48CLK 

Output of the PLL connected to the PLL48CLK.

oC_SaiPll_OutputLine_SAICLK 

Output of the PLL connected to the SAI.

oC_SaiPll_OutputLine_NumberOfElements 

Number of main elements (maximum index) in the type.

All lines that has number smaller than this value can be configured separately

oC_SaiPll_OutputLine_IndexMask 

This is the mask to get index of the line from the type.

oC_SaiPll_OutputLine_SAI1CLK 

Additional definition for SAI1 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI2

oC_SaiPll_OutputLine_SAI2CLK 

Additional definition for SAI2 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI1

Definition at line 55 of file oc_saipll.h.

The type is for storing SAI PLL output line (look to the STM32F7 documentation for a CLOCK TREE)

Enumerator
oC_SaiPll_OutputLine_LTDC 

Output of the PLL connected to the LTDC module (LTDC Clock)

oC_SaiPll_OutputLine_PLL48CLK 

Output of the PLL connected to the PLL48CLK.

oC_SaiPll_OutputLine_SAICLK 

Output of the PLL connected to the SAI.

oC_SaiPll_OutputLine_NumberOfElements 

Number of main elements (maximum index) in the type.

All lines that has number smaller than this value can be configured separately

oC_SaiPll_OutputLine_IndexMask 

This is the mask to get index of the line from the type.

oC_SaiPll_OutputLine_SAI1CLK 

Additional definition for SAI1 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI2

oC_SaiPll_OutputLine_SAI2CLK 

Additional definition for SAI2 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI1

oC_SaiPll_OutputLine_LTDC 

Output of the PLL connected to the LTDC module (LTDC Clock)

oC_SaiPll_OutputLine_PLL48CLK 

Output of the PLL connected to the PLL48CLK.

oC_SaiPll_OutputLine_SAICLK 

Output of the PLL connected to the SAI.

oC_SaiPll_OutputLine_NumberOfElements 

Number of main elements (maximum index) in the type.

All lines that has number smaller than this value can be configured separately

oC_SaiPll_OutputLine_IndexMask 

This is the mask to get index of the line from the type.

oC_SaiPll_OutputLine_SAI1CLK 

Additional definition for SAI1 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI2

oC_SaiPll_OutputLine_SAI2CLK 

Additional definition for SAI2 CLK line.

It has the same index as SAICLK, because it cannot be configured to the different frequency than SAI1

Definition at line 55 of file oc_saipll.h.

Function Documentation

oC_ErrorCode_t oC_SaiPll_Configure ( oC_SaiPll_OutputLine_t  OutputLine,
oC_Frequency_t  Frequency,
oC_Frequency_t  PermissibleDifference,
oC_Frequency_t outRealFrequency 
)

The function configures and reconfigures PLLSAI. It tries to keep old setting if some of output line is already used.

Parameters
OutputLineType of the output line that you want to configure (other lines will not be changed)
FrequencyWanted frequency to configure
PermissibleDifferenceMaximum difference between real frequency and wanted frequency
outRealFrequencyOutput frequency that has been configured
Returns
code of error or oC_ErrorCode_None if success

Definition at line 201 of file oc_saipll.c.