Struct imxrt10xx::ccm::Ccm

source ·
pub struct Ccm { /* private fields */ }

Implementations§

source§

impl Ccm

source

pub const fn new() -> Ccm

source

pub fn set_low_power_mode(&self)

source

pub fn is_enabled_iomuxc_snvs_clock(&self) -> bool

source

pub fn enable_iomuxc_snvs_clock(&self)

source

pub fn disable_iomuxc_snvs_clock(&self)

source

pub fn is_enabled_iomuxc_clock(&self) -> bool

Iomuxc clock

source

pub fn enable_iomuxc_clock(&self)

source

pub fn disable_iomuxc_clock(&self)

source

pub fn is_enabled_gpio1_clock(&self) -> bool

GPIO1 clock

source

pub fn enable_gpio1_clock(&self)

source

pub fn disable_gpio1_clock(&self)

source

pub fn is_enabled_gpio2_clock(&self) -> bool

GPIO2 clock

source

pub fn enable_gpio2_clock(&self)

source

pub fn disable_gpio2_clock(&self)

source

pub fn is_enabled_gpio3_clock(&self) -> bool

GPIO3 clock

source

pub fn enable_gpio3_clock(&self)

source

pub fn disable_gpio3_clock(&self)

source

pub fn is_enabled_gpio4_clock(&self) -> bool

GPIO4 clock

source

pub fn enable_gpio4_clock(&self)

source

pub fn disable_gpio4_clock(&self)

source

pub fn is_enabled_gpio5_clock(&self) -> bool

GPIO5 clock

source

pub fn enable_gpio5_clock(&self)

source

pub fn disable_gpio5_clock(&self)

source

pub fn is_enabled_gpt1_clock(&self) -> bool

source

pub fn enable_gpt1_clock(&self)

source

pub fn disable_gpt1_clock(&self)

source

pub fn is_enabled_gpt2_clock(&self) -> bool

source

pub fn enable_gpt2_clock(&self)

source

pub fn disable_gpt2_clock(&self)

source

pub fn is_enabled_lpi2c1_clock(&self) -> bool

source

pub fn enable_lpi2c1_clock(&self)

source

pub fn disable_lpi2c1_clock(&self)

source

pub fn is_enabled_lpuart1_clock(&self) -> bool

source

pub fn enable_lpuart1_clock(&self)

source

pub fn disable_lpuart1_clock(&self)

source

pub fn is_enabled_lpuart2_clock(&self) -> bool

source

pub fn enable_lpuart2_clock(&self)

source

pub fn disable_lpuart2_clock(&self)

source

pub fn is_enabled_uart_clock_mux(&self) -> bool

source

pub fn set_uart_clock_sel(&self, selection: UartClockSelection)

Set the UART clock selection

Should only be called when all UART clock gates are disabled

source

pub fn uart_clock_sel(&self) -> UartClockSelection

Returns the UART clock selection

source

pub fn set_uart_clock_podf(&self, divider: u32)

Set the UART clock divider

divider is a value bound by [1, 2^6].

source

pub fn uart_clock_podf(&self) -> u32

Returns the UART clock divider

The return is a value bound by [1, 2^6].

source

pub fn perclk_sel(&self) -> PerclkClockSel

Returns the selection for the periodic clock

source

pub fn set_perclk_sel(&self, sel: PerclkClockSel)

Set the periodic clock selection

source

pub fn set_perclk_divider(&self, divider: u8)

Set the periodic clock selection and divider

This should only be called when all associated clock gates are disabled.

divider will be clamped between 1 and 64.

source

pub fn perclk_divider(&self) -> u8

Returns the periodic clock divider, guaranteed to be non-zero

source

pub fn set_arm_divider(&self, divider: u32)

Set the ARM clock root divider

The ARM clock divider is just after the PLL1 output.

Clamps divider between [1, 8].

source

pub fn arm_divider(&self) -> u32

Returns the ARM clock root divider

source

pub fn set_peripheral_clock2_divider(&self, divider: u32)

Set the PERIPH_CLK2 divider

Clamps divider between [1, 8].

source

pub fn peripheral_clock2_divider(&self) -> u32

Returns the PERIPH_CLK2 divider

source

pub fn set_ahb_divider(&self, divider: u32)

Set the AHB clock divider

Clamps divider between [1, 8].

source

pub fn ahb_divider(&self) -> u32

Returns the AHB clock divider

source

pub fn set_ipg_divider(&self, divider: u32)

Sets the IPG clock divider

Clamps divider between [1, 4].

source

pub fn set_peripheral_clock_selection( &self, selection: PeripheralClockSelection )

Set the peripheral clock selection

source

pub fn peripheral_clock_selection(&self) -> PeripheralClockSelection

Returns the peripheral clock selection

source

pub fn set_pre_peripheral_clock_selection( &self, selection: PrePeripheralClockSelection )

Set the pre-peripheral clock selection

source

pub fn pre_peripheral_clock_selection(&self) -> PrePeripheralClockSelection

Returns the pre-peripheral clock selection

source

pub fn set_peripheral_clock2_selection( &self, selection: PeripheralClock2Selection )

Set the peripheral clock 2 selection

source

pub fn peripheral_clock2_selection(&self) -> PeripheralClock2Selection

Returns the selection for peripheral clock 2

source

pub fn enable_dcdc_clock(&self)

Enable the DCDC clock gate

source

pub fn disable_dcdc_clock(&self)

Disable the DCDC clock gate

source

pub fn is_enabled_dcdc_clock(&self) -> bool

Indicates if the DCDC clock gate is enaled

source

pub fn enable_dma_clock(&self)

Enable the DMA clock gate

source

pub fn disable_dma_clock(&self)

Disable the DMA clock gate

source

pub fn is_enabled_dma_clock(&self) -> bool

Indicates if the DMA clock gate is enabled

Auto Trait Implementations§

§

impl Freeze for Ccm

§

impl !RefUnwindSafe for Ccm

§

impl !Send for Ccm

§

impl !Sync for Ccm

§

impl Unpin for Ccm

§

impl !UnwindSafe for Ccm

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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> SizedTypeProperties for T

source§

#[doc(hidden)] const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
source§

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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.
source§

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

Performs the conversion.