Skip to main content

ClockTree

Struct ClockTree 

Source
pub struct ClockTree { /* private fields */ }
Available on crate feature unstable only.
Expand description

Represents the device’s clock tree.

Implementations§

Source§

impl ClockTree

Source

pub fn with<R>(f: impl FnOnce(&mut ClockTree) -> R) -> R

Locks the clock tree for exclusive access.

Source

pub fn xtal_clk(&self) -> Option<XtalClkConfig>

Returns the current configuration of the XTAL_CLK clock tree node

Source

pub fn pll_clk(&self) -> Option<PllClkConfig>

Returns the current configuration of the PLL_CLK clock tree node

Source

pub fn apll_clk(&self) -> Option<ApllClkConfig>

Returns the current configuration of the APLL_CLK clock tree node

Source

pub fn cpu_pll_div_in(&self) -> Option<CpuPllDivInConfig>

Returns the current configuration of the CPU_PLL_DIV_IN clock tree node

Source

pub fn cpu_pll_div(&self) -> Option<CpuPllDivConfig>

Returns the current configuration of the CPU_PLL_DIV clock tree node

Source

pub fn syscon_pre_div_in(&self) -> Option<SysconPreDivInConfig>

Returns the current configuration of the SYSCON_PRE_DIV_IN clock tree node

Source

pub fn syscon_pre_div(&self) -> Option<SysconPreDivConfig>

Returns the current configuration of the SYSCON_PRE_DIV clock tree node

Source

pub fn apb_clk(&self) -> Option<ApbClkConfig>

Returns the current configuration of the APB_CLK clock tree node

Source

pub fn ref_tick(&self) -> Option<RefTickConfig>

Returns the current configuration of the REF_TICK clock tree node

Source

pub fn ref_tick_xtal(&self) -> Option<RefTickXtalConfig>

Returns the current configuration of the REF_TICK_XTAL clock tree node

Source

pub fn ref_tick_fosc(&self) -> Option<RefTickFoscConfig>

Returns the current configuration of the REF_TICK_FOSC clock tree node

Source

pub fn ref_tick_apll(&self) -> Option<RefTickApllConfig>

Returns the current configuration of the REF_TICK_APLL clock tree node

Source

pub fn ref_tick_pll(&self) -> Option<RefTickPllConfig>

Returns the current configuration of the REF_TICK_PLL clock tree node

Source

pub fn cpu_clk(&self) -> Option<CpuClkConfig>

Returns the current configuration of the CPU_CLK clock tree node

Source

pub fn rtc_slow_clk(&self) -> Option<RtcSlowClkConfig>

Returns the current configuration of the RTC_SLOW_CLK clock tree node

Source

pub fn rtc_fast_clk(&self) -> Option<RtcFastClkConfig>

Returns the current configuration of the RTC_FAST_CLK clock tree node

Source

pub fn timg_calibration_clock(&self) -> Option<TimgCalibrationClockConfig>

Returns the current configuration of the TIMG_CALIBRATION_CLOCK clock tree node

Source

pub fn mcpwm0_function_clock(&self) -> Option<McpwmFunctionClockConfig>

Returns the current configuration of the MCPWM0_FUNCTION_CLOCK clock tree node

Source

pub fn mcpwm1_function_clock(&self) -> Option<McpwmFunctionClockConfig>

Returns the current configuration of the MCPWM1_FUNCTION_CLOCK clock tree node

Source

pub fn uart0_function_clock(&self) -> Option<UartFunctionClockConfig>

Returns the current configuration of the UART0_FUNCTION_CLOCK clock tree node

Source

pub fn uart0_mem_clock(&self) -> Option<UartMemClockConfig>

Returns the current configuration of the UART0_MEM_CLOCK clock tree node

Source

pub fn uart0_baud_rate_generator(&self) -> Option<UartBaudRateGeneratorConfig>

Returns the current configuration of the UART0_BAUD_RATE_GENERATOR clock tree node

Source

pub fn uart1_function_clock(&self) -> Option<UartFunctionClockConfig>

Returns the current configuration of the UART1_FUNCTION_CLOCK clock tree node

Source

pub fn uart1_mem_clock(&self) -> Option<UartMemClockConfig>

Returns the current configuration of the UART1_MEM_CLOCK clock tree node

Source

pub fn uart1_baud_rate_generator(&self) -> Option<UartBaudRateGeneratorConfig>

Returns the current configuration of the UART1_BAUD_RATE_GENERATOR clock tree node

Source

pub fn uart2_function_clock(&self) -> Option<UartFunctionClockConfig>

Returns the current configuration of the UART2_FUNCTION_CLOCK clock tree node

Source

pub fn uart2_mem_clock(&self) -> Option<UartMemClockConfig>

Returns the current configuration of the UART2_MEM_CLOCK clock tree node

Source

pub fn uart2_baud_rate_generator(&self) -> Option<UartBaudRateGeneratorConfig>

Returns the current configuration of the UART2_BAUD_RATE_GENERATOR clock tree node

Auto Trait Implementations§

§

impl Freeze for ClockTree

§

impl RefUnwindSafe for ClockTree

§

impl Send for ClockTree

§

impl Sync for ClockTree

§

impl Unpin for ClockTree

§

impl UnsafeUnpin for ClockTree

§

impl UnwindSafe for ClockTree

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.