Clkctl0

Struct Clkctl0 

Source
pub struct Clkctl0 { /* private fields */ }
Expand description

clock ccontroller 0

Implementations§

Source§

impl Clkctl0

Source

pub const PTR: *const RegisterBlock = {0x40001000 as *const clkctl0::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn pscctl0(&self) -> &Pscctl0

0x10 - clock control register 0

Source

pub fn pscctl1(&self) -> &Pscctl1

0x14 - clock control register 1

Source

pub fn pscctl2(&self) -> &Pscctl2

0x18 - clock control register 2

Source

pub fn pscctl0_set(&self) -> &Pscctl0Set

0x40 - clock set register 0

Source

pub fn pscctl1_set(&self) -> &Pscctl1Set

0x44 - clock set register 1

Source

pub fn pscctl2_set(&self) -> &Pscctl2Set

0x48 - clock set register 2

Source

pub fn pscctl0_clr(&self) -> &Pscctl0Clr

0x70 - clock clear register 0

Source

pub fn pscctl1_clr(&self) -> &Pscctl1Clr

0x74 - clock clear register 1

Source

pub fn pscctl2_clr(&self) -> &Pscctl2Clr

0x78 - clock clear register 2

Source

pub fn ffroctl0(&self) -> &Ffroctl0

0x100 - FFRO control 0

Source

pub fn ffroctl1(&self) -> &Ffroctl1

0x104 - FFRO control 1

Source

pub fn sysoscctl0(&self) -> &Sysoscctl0

0x160 - system oscillator control 0

Source

pub fn sysoscbypass(&self) -> &Sysoscbypass

0x168 - system oscillator bypass

Source

pub fn lposcctl0(&self) -> &Lposcctl0

0x190 - low power oscillator control 0

Source

pub fn osc32khzctl0(&self) -> &Osc32khzctl0

0x1c0 - 32k oscillator control0

Source

pub fn syspll0clksel(&self) -> &Syspll0clksel

0x200 - system pll0 clock selection

Source

pub fn syspll0ctl0(&self) -> &Syspll0ctl0

0x204 - system pll0 control0

Source

pub fn syspll0locktimediv2(&self) -> &Syspll0locktimediv2

0x20c - system pll0 lock time

Source

pub fn syspll0num(&self) -> &Syspll0num

0x210 - system pll0 number

Source

pub fn syspll0denom(&self) -> &Syspll0denom

0x214 - system pll0 denom

Source

pub fn syspll0pfd(&self) -> &Syspll0pfd

0x218 - sys pll0 PFD

Source

pub fn mainpllclkdiv(&self) -> &Mainpllclkdiv

0x240 - main pll clk divider

Source

pub fn dsppllclkdiv(&self) -> &Dsppllclkdiv

0x244 - dsp pll clk divider

Source

pub fn aux0pllclkdiv(&self) -> &Aux0pllclkdiv

0x248 - aux0 pll clk divider

Source

pub fn aux1pllclkdiv(&self) -> &Aux1pllclkdiv

0x24c - aux1 pll clk divider

Source

pub fn syscpuahbclkdiv(&self) -> &Syscpuahbclkdiv

0x400 - system cpu AHB clock divider

Source

pub fn mainclksela(&self) -> &Mainclksela

0x430 - main clock selection A

Source

pub fn mainclkselb(&self) -> &Mainclkselb

0x434 - main clock selection B

Source

pub fn pfcdiv(&self, n: usize) -> &Pfcdiv

0x500..0x508 - PFC divider register N

Source

pub fn pfcdiv_iter(&self) -> impl Iterator<Item = &Pfcdiv>

Iterator for array of: 0x500..0x508 - PFC divider register N

Source

pub fn flexspifclksel(&self) -> &Flexspifclksel

0x620 - FlexSPI FCLK selection

Source

pub fn flexspifclkdiv(&self) -> &Flexspifclkdiv

0x624 - FlexSPI FCLK divider

Source

pub fn sctfclksel(&self) -> &Sctfclksel

0x640 - SCT FCLK selection

Source

pub fn sctfclkdiv(&self) -> &Sctfclkdiv

0x644 - SCT fclk divider

Source

pub fn usbhsfclksel(&self) -> &Usbhsfclksel

0x660 - USBHS Fclk selection

Source

pub fn usbhsfclkdiv(&self) -> &Usbhsfclkdiv

0x664 - USBHS Fclk divider

Source

pub fn sdio0fclksel(&self) -> &Sdio0fclksel

0x680 - SDIO0 FCLK selection

Source

pub fn sdio0fclkdiv(&self) -> &Sdio0fclkdiv

0x684 - SDIO0 FCLK divider

Source

pub fn sdio1fclksel(&self) -> &Sdio1fclksel

0x690 - SDIO1 FCLK selection

Source

pub fn sdio1fclkdiv(&self) -> &Sdio1fclkdiv

0x694 - SDIO1 FCLK divider

Source

pub fn adc0fclksel0(&self) -> &Adc0fclksel0

0x6d0 - ADC0 fclk selection 0

Source

pub fn adc0fclksel1(&self) -> &Adc0fclksel1

0x6d4 - ADC0 fclk selection 1

Source

pub fn adc0fclkdiv(&self) -> &Adc0fclkdiv

0x6d8 - ADC0 fclk divider

Source

pub fn utickfclksel(&self) -> &Utickfclksel

0x700 - UTICK fclk selection

Source

pub fn wdt0fclksel(&self) -> &Wdt0fclksel

0x720 - wdt clock selection

Source

pub fn wakeclk32khzsel(&self) -> &Wakeclk32khzsel

0x730 - 32k wake clock selection

Source

pub fn wakeclk32khzdiv(&self) -> &Wakeclk32khzdiv

0x734 - 32k wake clock divider

Source

pub fn systickfclksel(&self) -> &Systickfclksel

0x760 - system tick fclk selection

Source

pub fn systickfclkdiv(&self) -> &Systickfclkdiv

0x764 - system tick fclk divider

Trait Implementations§

Source§

impl Debug for Clkctl0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Clkctl0

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for Clkctl0

Auto Trait Implementations§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.