Skip to main content

Module ll

Module ll 

Source
Available on crate feature unstable only.
Expand description

§Low-level clock control

This module provides experimental low-level clock control functionality. These functions can render the device temporarily unusable. Use with caution.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Structs§

ApllClkConfig
The target frequency of the APLL_CLK clock source. Depends on PLL_CLK.
ClockConfig
Clock tree configuration.
ClockTree
Represents the device’s clock tree.
CpuPllDivConfig
Configures the CPU_PLL_DIV clock node.
I2cFunctionClockConfig
Configures the I2C0_FUNCTION_CLOCK clock node.
I2sMclkConfig
Configures the I2S0_MCLK clock node.
RefTickCk8mConfig
Configures the REF_TICK_CK8M clock node.
RefTickXtalConfig
Configures the REF_TICK_XTAL clock node.
SystemPreDivConfig
Configures the SYSTEM_PRE_DIV clock node.
UartBaudRateGeneratorConfig
Configures the UART0_BAUD_RATE_GENERATOR clock node.
UartFunctionClockConfig
Configures the UART0_FUNCTION_CLOCK clock node.

Enums§

ApbClkConfig
The list of clock signals that the APB_CLK multiplexer can output.
ClockSource
The clock sources of the device.
CpuClkConfig
The list of clock signals that the CPU_CLK multiplexer can output.
CpuClock
Clock configuration options.
CpuPllDivDivisor
CpuPllDivInConfig
The list of clock signals that the CPU_PLL_DIV_IN multiplexer can output.
I2cFunctionClockSclk
I2cInstance
I2sInstance
I2sMclkSclk
PllClkConfig
Selects the output frequency of PLL_CLK. Depends on XTAL_CLK.
RefTickConfig
The list of clock signals that the REF_TICK multiplexer can output.
RmtInstance
RmtSclkConfig
The list of clock signals that the RMT_SCLK multiplexer can output.
RtcFastClkConfig
The list of clock signals that the RTC_FAST_CLK multiplexer can output.
RtcSlowClkConfig
The list of clock signals that the RTC_SLOW_CLK multiplexer can output.
SdmInstance
SpiFunctionClockConfig
The list of clock signals that the SPI2_FUNCTION_CLOCK multiplexer can output.
SpiInstance
SystemPreDivInConfig
The list of clock signals that the SYSTEM_PRE_DIV_IN multiplexer can output.
TimgCalibrationClockConfig
The list of clock signals that the TIMG_CALIBRATION_CLOCK multiplexer can output.
TimgFunctionClockConfig
The list of clock signals that the TIMG0_FUNCTION_CLOCK multiplexer can output.
TimgInstance
UartFunctionClockSclk
UartInstance
UartMemClkConfig
The list of clock signals that the UART_MEM_CLK multiplexer can output.
XtalClkConfig
Selects the output frequency of XTAL_CLK.

Functions§

apb_clk_80m_frequency
apb_clk_80m_root_source
Returns the clock source that APB_CLK_80M currently runs on.
apb_clk_80m_source_frequency
apb_clk_config
apb_clk_config_frequency
apb_clk_cpu_div2_frequency
apb_clk_cpu_div2_root_source
Returns the clock source that APB_CLK_CPU_DIV2 currently runs on.
apb_clk_cpu_div2_source_frequency
apb_clk_frequency
apb_clk_root_source
Returns the clock source that APB_CLK currently runs on.
apb_clk_source_frequency
apll_clk_config
apll_clk_config_frequency
apll_clk_frequency
apll_clk_root_source
Returns the clock source that APLL_CLK currently runs on.
apll_clk_source_frequency
configure_apb_clk
configure_apll_clk
configure_cpu_clk
configure_cpu_pll_div
configure_cpu_pll_div_in
configure_pll_clk
configure_ref_tick
configure_ref_tick_ck8m
configure_ref_tick_xtal
configure_rtc_fast_clk
configure_rtc_slow_clk
configure_system_pre_div
configure_system_pre_div_in
configure_timg_calibration_clock
configure_xtal_clk
cpu_clk_config
cpu_clk_config_frequency
cpu_clk_frequency
cpu_clk_root_source
Returns the clock source that CPU_CLK currently runs on.
cpu_pll_div_config
cpu_pll_div_config_frequency
cpu_pll_div_frequency
cpu_pll_div_in_config
cpu_pll_div_in_config_frequency
cpu_pll_div_in_frequency
cpu_pll_div_in_root_source
Returns the clock source that CPU_PLL_DIV_IN currently runs on.
cpu_pll_div_in_source_frequency
cpu_pll_div_root_source
Returns the clock source that CPU_PLL_DIV currently runs on.
cpu_pll_div_source_frequency
pll_clk_config
pll_clk_config_frequency
pll_clk_frequency
pll_clk_root_source
Returns the clock source that PLL_CLK currently runs on.
pll_clk_source_frequency
pll_f160m_clk_frequency
pll_f160m_clk_root_source
Returns the clock source that PLL_F160M_CLK currently runs on.
pll_f160m_clk_source_frequency
rc_fast_clk_frequency
rc_fast_clk_nominal_frequency
rc_fast_clk_root_source
Returns the clock source that RC_FAST_CLK currently runs on.
rc_fast_div_clk_frequency
rc_fast_div_clk_root_source
Returns the clock source that RC_FAST_DIV_CLK currently runs on.
rc_fast_div_clk_source_frequency
rc_slow_clk_frequency
rc_slow_clk_nominal_frequency
rc_slow_clk_root_source
Returns the clock source that RC_SLOW_CLK currently runs on.
ref_tick_ck8m_config
ref_tick_ck8m_config_frequency
ref_tick_ck8m_frequency
ref_tick_ck8m_root_source
Returns the clock source that REF_TICK_CK8M currently runs on.
ref_tick_ck8m_source_frequency
ref_tick_config
ref_tick_config_frequency
ref_tick_frequency
ref_tick_root_source
Returns the clock source that REF_TICK currently runs on.
ref_tick_source_frequency
ref_tick_xtal_config
ref_tick_xtal_config_frequency
ref_tick_xtal_frequency
ref_tick_xtal_root_source
Returns the clock source that REF_TICK_XTAL currently runs on.
ref_tick_xtal_source_frequency
release_apb_clk
release_apb_clk_80m
release_apb_clk_cpu_div2
release_apll_clk
release_cpu_pll_div
release_cpu_pll_div_in
release_pll_clk
release_pll_f160m_clk
release_rc_fast_clk
release_rc_fast_div_clk
release_rc_slow_clk
release_ref_tick
release_ref_tick_ck8m
release_ref_tick_xtal
release_rtc_fast_clk
release_rtc_slow_clk
release_system_pre_div
release_system_pre_div_in
release_timg_calibration_clock
release_uart_mem_clk
release_xtal_div_clk
request_apb_clk
request_apb_clk_80m
request_apb_clk_cpu_div2
request_apll_clk
request_cpu_pll_div
request_cpu_pll_div_in
request_pll_clk
request_pll_f160m_clk
request_rc_fast_clk
request_rc_fast_div_clk
request_rc_slow_clk
request_ref_tick
request_ref_tick_ck8m
request_ref_tick_xtal
request_rtc_fast_clk
request_rtc_slow_clk
request_system_pre_div
request_system_pre_div_in
request_timg_calibration_clock
request_uart_mem_clk
request_xtal_div_clk
rtc_fast_clk_config
rtc_fast_clk_config_frequency
rtc_fast_clk_frequency
rtc_fast_clk_root_source
Returns the clock source that RTC_FAST_CLK currently runs on.
rtc_fast_clk_source_frequency
rtc_slow_clk_config
rtc_slow_clk_config_frequency
rtc_slow_clk_frequency
rtc_slow_clk_root_source
Returns the clock source that RTC_SLOW_CLK currently runs on.
rtc_slow_clk_source_frequency
set_rc_fast_clk_frequency
set_rc_slow_clk_frequency
system_pre_div_config
system_pre_div_config_frequency
system_pre_div_frequency
system_pre_div_in_config
system_pre_div_in_config_frequency
system_pre_div_in_frequency
system_pre_div_in_root_source
Returns the clock source that SYSTEM_PRE_DIV_IN currently runs on.
system_pre_div_in_source_frequency
system_pre_div_root_source
Returns the clock source that SYSTEM_PRE_DIV currently runs on.
system_pre_div_source_frequency
timg_calibration_clock_config
timg_calibration_clock_config_frequency
timg_calibration_clock_frequency
timg_calibration_clock_root_source
Returns the clock source that TIMG_CALIBRATION_CLOCK currently runs on.
timg_calibration_clock_source_frequency
uart_mem_clk_frequency
uart_mem_clk_root_source
Returns the clock source that UART_MEM_CLK currently runs on.
uart_mem_clk_source_frequency
xtal_clk_config
xtal_clk_config_frequency
xtal_clk_frequency
xtal_clk_root_source
Returns the clock source that XTAL_CLK currently runs on.
xtal_div_clk_frequency
xtal_div_clk_root_source
Returns the clock source that XTAL_DIV_CLK currently runs on.
xtal_div_clk_source_frequency