![]() |
S32 SDK
|
Go to the source code of this file.
Data Structures | |
struct | sim_clock_out_config_t |
SIM ClockOut configuration. Implements sim_clock_out_config_t_Class. More... | |
struct | sim_lpo_clock_config_t |
SIM LPO Clocks configuration. Implements sim_lpo_clock_config_t_Class. More... | |
struct | sim_tclk_config_t |
SIM Platform Gate Clock configuration. Implements sim_tclk_config_t_Class. More... | |
struct | sim_plat_gate_config_t |
SIM Platform Gate Clock configuration. Implements sim_plat_gate_config_t_Class. More... | |
struct | sim_qspi_ref_clk_gating_t |
SIM QSPI reference clock gating. Implements sim_qspi_ref_clk_gating_t_Class. More... | |
struct | sim_trace_clock_config_t |
SIM Debug Trace clock configuration. Implements sim_trace_clock_config_t_Class. More... | |
struct | sim_clock_config_t |
SIM configure structure. Implements sim_clock_config_t_Class. More... | |
struct | scg_system_clock_config_t |
SCG system clock configuration. Implements scg_system_clock_config_t_Class. More... | |
struct | scg_sosc_config_t |
SCG system OSC configuration. Implements scg_sosc_config_t_Class. More... | |
struct | scg_sirc_config_t |
SCG slow IRC clock configuration. Implements scg_sirc_config_t_Class. More... | |
struct | scg_firc_config_t |
SCG fast IRC clock configuration. Implements scg_firc_config_t_Class. More... | |
struct | scg_spll_config_t |
SCG system PLL configuration. Implements scg_spll_config_t_Class. More... | |
struct | scg_rtc_config_t |
SCG RTC configuration. Implements scg_rtc_config_t_Class. More... | |
struct | scg_clock_mode_config_t |
SCG Clock Mode Configuration structure. Implements scg_clock_mode_config_t_Class. More... | |
struct | scg_clockout_config_t |
SCG ClockOut Configuration structure. Implements scg_clockout_config_t_Class. More... | |
struct | scg_config_t |
SCG configure structure. Implements scg_config_t_Class. More... | |
struct | peripheral_clock_config_t |
PCC peripheral instance clock configuration. Implements peripheral_clock_config_t_Class. More... | |
struct | pcc_config_t |
PCC configuration. Implements pcc_config_t_Class. More... | |
struct | pmc_lpo_clock_config_t |
PMC LPO configuration. More... | |
struct | pmc_config_t |
PMC configure structure. More... | |
struct | periph_clk_config_t |
peripheral instance clock configuration. Implements periph_clk_config_t_Class More... | |
struct | sys_clk_config_t |
system clock configuration. Implements sys_clk_config_t_Class More... | |
struct | sirc_config_t |
SCG slow IRC clock configuration. Implements sirc_config_t_Class. More... | |
struct | firc_config_t |
SCG fast IRC clock configuration. Implements scg_firc_config_t_Class. More... | |
struct | sosc_config_t |
SCG system OSC configuration. Implements scg_sosc_config_t_Class. More... | |
struct | spll_config_t |
Macros | |
#define | NUMBER_OF_TCLK_INPUTS 3U |
Functions | |
status_t | CLOCK_SYS_SetScgConfiguration (const scg_config_t *scgConfig) |
Configures SCG module. More... | |
void | CLOCK_SYS_SetPccConfiguration (const pcc_config_t *peripheralClockConfig) |
Configures PCC module. More... | |
void | CLOCK_SYS_SetSimConfiguration (const sim_clock_config_t *simClockConfig) |
Configures SIM module. More... | |
void | CLOCK_SYS_SetPmcConfiguration (const pmc_config_t *pmcConfig) |
Configures PMC module. More... | |
void | CLOCK_DRV_EnablePeripheralClock (clock_names_t clockName, const periph_clk_config_t *periphClkConfig) |
Enables peripheral clock. More... | |
void | CLOCK_DRV_DisablePeripheralClock (clock_names_t clockName) |
Disables peripheral clock. More... | |
status_t | CLOCK_DRV_SetSystemClock (const pwr_modes_t *mode, const sys_clk_config_t *sysClkConfig) |
Configures the system clocks. More... | |
status_t | CLOCK_DRV_SetSirc (bool enable, const sirc_config_t *sircConfig) |
This function enables or disables SIRC clock source. More... | |
status_t | CLOCK_DRV_SetFirc (bool enable, const firc_config_t *fircConfig) |
This function enables or disables FIRC clock source. More... | |
status_t | CLOCK_DRV_SetSosc (bool enable, const sosc_config_t *soscConfig) |
This function enables or disables SOSC clock source. More... | |
status_t | CLOCK_DRV_SetSpll (bool enable, const spll_config_t *spllConfig) |
This function enables or disables SPLL clock source. More... | |
status_t | CLOCK_DRV_SetLpo (bool enable) |
This function enables or disables LPO clock source. More... | |
Variables | |
const uint8_t | peripheralFeaturesList [CLOCK_NAME_COUNT] |
Peripheral features list Constant array storing the mappings between clock names of the peripherals and feature lists. More... | |
uint32_t | g_TClkFreq [NUMBER_OF_TCLK_INPUTS] |
uint32_t | g_xtal0ClkFreq |
uint32_t | g_RtcClkInFreq |
enum firc_range_t |
SCG fast IRC clock frequency range. Implements firc_range_t_Class.
Definition at line 728 of file clock_S32K1xx.h.
enum periph_clk_src_t |
Peripheral clock source value Implements periph_clk_src_t_Class.
Enumerator | |
---|---|
DISABLE_CLK | |
SIRC_CLK_SRC | |
FIRC_CLK_SRC | |
SOSC_CLK_SRC | |
SPLL_CLK_SRC |
Definition at line 616 of file clock_S32K1xx.h.
enum periph_div_t |
Peripheral divider value Implements periph_div_t_Class.
Enumerator | |
---|---|
DO_NOT_DIVIDE | |
DIV_BY_TWO | |
DIV_BY_THREE | |
DIV_BY_FOUR | |
DIV_BY_FIVE | |
DIV_BY_SIX | |
DIV_BY_SEVEN | |
DIV_BY_EIGTH |
Definition at line 601 of file clock_S32K1xx.h.
enum periph_mul_t |
Peripheral multiplier value Implements periph_mul_t_Class.
Enumerator | |
---|---|
DO_NOT_MULTIPLY | |
MUL_BY_TWO |
Definition at line 592 of file clock_S32K1xx.h.
PCC divider value select Implements peripheral_clock_divider_t_Class.
Enumerator | |
---|---|
DIVIDE_BY_ONE | |
DIVIDE_BY_TWO | |
DIVIDE_BY_THREE | |
DIVIDE_BY_FOUR | |
DIVIDE_BY_FIVE | |
DIVIDE_BY_SIX | |
DIVIDE_BY_SEVEN | |
DIVIDE_BY_EIGTH |
Definition at line 532 of file clock_S32K1xx.h.
PCC fractional value select Implements peripheral_clock_frac_t_Class.
Enumerator | |
---|---|
MULTIPLY_BY_ONE | |
MULTIPLY_BY_TWO |
Definition at line 523 of file clock_S32K1xx.h.
PCC clock source select Implements peripheral_clock_source_t_Class.
Enumerator | |
---|---|
CLK_SRC_OFF | |
CLK_SRC_SOSC | |
CLK_SRC_SIRC | |
CLK_SRC_FIRC | |
CLK_SRC_SPLL |
Definition at line 511 of file clock_S32K1xx.h.
enum pwr_modes_t |
Power mode. Implements pwr_modes_t_Class.
Enumerator | |
---|---|
NO_MODE | |
RUN_MODE | |
VLPR_MODE | |
HSRUN_MODE | |
STOP_MODE | |
VLPS_MODE | |
ALL_MODES |
Definition at line 690 of file clock_S32K1xx.h.
SCG asynchronous clock divider value.
Definition at line 287 of file clock_S32K1xx.h.
enum scg_clockout_src_t |
SCG ClockOut type. Implements scg_clockout_src_t_Class.
Enumerator | |
---|---|
SCG_CLOCKOUT_SRC_SCG_SLOW |
SCG SLOW. |
SCG_CLOCKOUT_SRC_SOSC |
System OSC. |
SCG_CLOCKOUT_SRC_SIRC |
Slow IRC. |
SCG_CLOCKOUT_SRC_FIRC |
Fast IRC. |
SCG_CLOCKOUT_SRC_SPLL |
System PLL. |
Definition at line 273 of file clock_S32K1xx.h.
enum scg_firc_range_t |
SCG fast IRC clock frequency range. Implements scg_firc_range_t_Class.
Definition at line 400 of file clock_S32K1xx.h.
enum scg_sirc_range_t |
SCG slow IRC clock frequency range. Implements scg_sirc_range_t_Class.
Enumerator | |
---|---|
SCG_SIRC_RANGE_LOW |
Slow IRC low range clock (2 MHz). |
SCG_SIRC_RANGE_HIGH |
Slow IRC high range clock (8 MHz). |
Definition at line 372 of file clock_S32K1xx.h.
enum scg_sosc_ext_ref_t |
SCG OSC external reference clock select. Implements scg_sosc_ext_ref_t_Class.
Enumerator | |
---|---|
SCG_SOSC_REF_EXT | |
SCG_SOSC_REF_OSC |
Definition at line 336 of file clock_S32K1xx.h.
enum scg_sosc_gain_t |
SCG OSC high gain oscillator select. Implements scg_sosc_gain_t_Class.
Enumerator | |
---|---|
SCG_SOSC_GAIN_LOW | |
SCG_SOSC_GAIN_HIGH |
Definition at line 326 of file clock_S32K1xx.h.
SCG system OSC monitor mode. Implements scg_sosc_monitor_mode_t_Class.
Enumerator | |
---|---|
SCG_SOSC_MONITOR_DISABLE |
Monitor disable. |
SCG_SOSC_MONITOR_INT |
Interrupt when system OSC error detected. |
SCG_SOSC_MONITOR_RESET |
Reset when system OSC error detected. |
Definition at line 304 of file clock_S32K1xx.h.
enum scg_sosc_range_t |
SCG OSC frequency range select Implements scg_sosc_range_t_Class.
Definition at line 315 of file clock_S32K1xx.h.
SCG system PLL monitor mode. Implements scg_spll_monitor_mode_t_Class.
Enumerator | |
---|---|
SCG_SPLL_MONITOR_DISABLE |
Monitor disable. |
SCG_SPLL_MONITOR_INT |
Interrupt when system PLL error detected. |
SCG_SPLL_MONITOR_RESET |
Reset when system PLL error detected. |
Definition at line 431 of file clock_S32K1xx.h.
enum sirc_range_t |
Slow IRC clock frequency range. Implements sirc_range_t_Class.
Enumerator | |
---|---|
SIRC_RANGE_LOW |
Slow IRC low range clock (2 MHz). |
SIRC_RANGE_HIGH |
Slow IRC high range clock (8 MHz). |
SIRC_RANGES_MAX |
The total number of options. |
Definition at line 706 of file clock_S32K1xx.h.
enum sosc_range_t |
OSC frequency range select Implements sosc_range_t_Class.
Definition at line 753 of file clock_S32K1xx.h.
enum sosc_ref_t |
OSC reference clock select (internal oscillator is bypassed or not) Implements sosc_ext_ref_t_Class.
Enumerator | |
---|---|
SOSC_EXT_REF | |
SOSC_INT_OSC | |
SOSC_REFS_MAX |
The total number of options |
Definition at line 765 of file clock_S32K1xx.h.
enum spll_clock_div_t |
SPLL clock divider value. Implements spll_clock_div_t_Class.
Definition at line 790 of file clock_S32K1xx.h.
enum spll_clock_mul_t |
SPLL clock multiplier value. Implements spll_clock_mul_t_Class.
Definition at line 806 of file clock_S32K1xx.h.
enum sys_clk_div_t |
system clock divider value. Implements sys_clk_div_t_Class
Definition at line 653 of file clock_S32K1xx.h.
enum sys_clk_src_t |
system clock source. Implements sys_clk_src_t_Class
Enumerator | |
---|---|
SYS_CLK_SIRC |
Slow IRC. |
SYS_CLK_FIRC |
Fast IRC. |
SYS_CLK_SOSC |
System OSC. |
SYS_CLK_SPLL |
System PLL. |
Definition at line 641 of file clock_S32K1xx.h.
void CLOCK_DRV_DisablePeripheralClock | ( | clock_names_t | clockName | ) |
Disables peripheral clock.
This function disables a peripheral clock.
[in] | clockName | Clock name of the configured peripheral clock |
Definition at line 2124 of file clock_S32K1xx.c.
void CLOCK_DRV_EnablePeripheralClock | ( | clock_names_t | clockName, |
const periph_clk_config_t * | periphClkConfig | ||
) |
Enables peripheral clock.
This function enables a peripheral clock according to the configuration. If no configuration is provided (periphClkConfig is null), then a default one is used
[in] | clockName | Clock name of the configured peripheral clock |
[in] | periphClkConfig | Pointer to the configuration structure. |
Definition at line 2045 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetFirc | ( | bool | enable, |
const firc_config_t * | fircConfig | ||
) |
This function enables or disables FIRC clock source.
When FIRC is enabled, the clock source is configured based on the provided configuration. All values from the previous configuration of FIRC clock are overwritten. If no configuration is provided, then a default one is used. When FIRC is disabled, no configuration is required.
[in] | enable | Enables or disables the clock source. |
[in] | fircConfig | Pointer to the configuration structure, this parameter is unused when FIRC is disabled and is optional when FIRC is enabled. |
Definition at line 2372 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetLpo | ( | bool | enable | ) |
This function enables or disables LPO clock source.
[in] | enabled | Enable command. |
Definition at line 2627 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetSirc | ( | bool | enable, |
const sirc_config_t * | sircConfig | ||
) |
This function enables or disables SIRC clock source.
When SIRC is enabled, the clock source is configured based on the provided configuration. All values from the previous configuration of SIRC clock are overwritten. If no configuration is provided, then a default one is used. When SIRC is disabled, no configuration is required.
[in] | enable | Enables or disables the clock source. |
[in] | sircConfig | Pointer to the configuration structure, this parameter is unused when SIRC is disabled and is optional when SIRC is enabled. |
Definition at line 2286 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetSosc | ( | bool | enable, |
const sosc_config_t * | soscConfig | ||
) |
This function enables or disables SOSC clock source.
When SOSC is enabled, the clock source is configured based on the provided configuration. All values from the previous configuration of SOSC clock are overwritten. If no configuration is provided, then a default one is used. When SOSC is disabled, no configuration is required.
[in] | enable | Enables or disables the clock source. |
[in] | soscConfig | Pointer to the configuration structure, this parameter is unused when SOSC is disabled and is optional when SOSC is enabled. |
Definition at line 2459 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetSpll | ( | bool | enable, |
const spll_config_t * | spllConfig | ||
) |
This function enables or disables SPLL clock source.
When SPLL is enabled, the clock source is configured based on the provided configuration. All values from the previous configuration of SPLL clock are overwritten. If no configuration is provided, then a default one is used. When SPLL is disabled, no configuration is required.
[in] | enable | Enables or disables the clock source. |
[in] | spllConfig | Pointer to the configuration structure, this parameter is unused when SPLL is disabled and is optional when SPLL is enabled. |
Definition at line 2551 of file clock_S32K1xx.c.
status_t CLOCK_DRV_SetSystemClock | ( | const pwr_modes_t * | mode, |
const sys_clk_config_t * | sysClkConfig | ||
) |
Configures the system clocks.
This function configures the system clocks (core, bus and flash clocks) in the specified power mode. If no power mode is specified (null parameter) then it is the current power mode.
[in] | mode | Pointer to power mode for which the configured system clocks apply |
[in] | sysClkConfig | Pointer to the system clocks configuration structure. |
Definition at line 2171 of file clock_S32K1xx.c.
void CLOCK_SYS_SetPccConfiguration | ( | const pcc_config_t * | peripheralClockConfig | ) |
Configures PCC module.
This function configures the PCC module according to the configuration.
[in] | peripheralClockConfig | Pointer to the configuration structure. |
Definition at line 334 of file clock_S32K1xx.c.
void CLOCK_SYS_SetPmcConfiguration | ( | const pmc_config_t * | pmcConfig | ) |
Configures PMC module.
This function configures the PMC module according to the configuration.
[in] | pmcConfig | Pointer to the configuration structure. |
Definition at line 430 of file clock_S32K1xx.c.
status_t CLOCK_SYS_SetScgConfiguration | ( | const scg_config_t * | scgConfig | ) |
Configures SCG module.
This function configures the SCG module according to the configuration.
[in] | scgConfig | Pointer to the configuration structure. |
Definition at line 274 of file clock_S32K1xx.c.
void CLOCK_SYS_SetSimConfiguration | ( | const sim_clock_config_t * | simClockConfig | ) |
Configures SIM module.
This function configures the SIM module according to the configuration.
[in] | simClockConfig | Pointer to the configuration structure. |
Definition at line 365 of file clock_S32K1xx.c.