CLOCKS

Struct CLOCKS 

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

CLOCKS

Implementations§

Source§

impl CLOCKS

Source

pub const PTR: *const RegisterBlock = {0x40010000 as *const rp235x_hal::rp235x_pac::clocks::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() -> CLOCKS

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 clk_gpout0_ctrl(&self) -> &Reg<CLK_GPOUT0_CTRL_SPEC>

0x00 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_gpout0_div(&self) -> &Reg<CLK_GPOUT0_DIV_SPEC>

0x04 -

Source

pub fn clk_gpout0_selected(&self) -> &Reg<CLK_GPOUT0_SELECTED_SPEC>

0x08 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_gpout1_ctrl(&self) -> &Reg<CLK_GPOUT1_CTRL_SPEC>

0x0c - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_gpout1_div(&self) -> &Reg<CLK_GPOUT1_DIV_SPEC>

0x10 -

Source

pub fn clk_gpout1_selected(&self) -> &Reg<CLK_GPOUT1_SELECTED_SPEC>

0x14 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_gpout2_ctrl(&self) -> &Reg<CLK_GPOUT2_CTRL_SPEC>

0x18 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_gpout2_div(&self) -> &Reg<CLK_GPOUT2_DIV_SPEC>

0x1c -

Source

pub fn clk_gpout2_selected(&self) -> &Reg<CLK_GPOUT2_SELECTED_SPEC>

0x20 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_gpout3_ctrl(&self) -> &Reg<CLK_GPOUT3_CTRL_SPEC>

0x24 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_gpout3_div(&self) -> &Reg<CLK_GPOUT3_DIV_SPEC>

0x28 -

Source

pub fn clk_gpout3_selected(&self) -> &Reg<CLK_GPOUT3_SELECTED_SPEC>

0x2c - Indicates which src is currently selected (one-hot)

Source

pub fn clk_ref_ctrl(&self) -> &Reg<CLK_REF_CTRL_SPEC>

0x30 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_ref_div(&self) -> &Reg<CLK_REF_DIV_SPEC>

0x34 -

Source

pub fn clk_ref_selected(&self) -> &Reg<CLK_REF_SELECTED_SPEC>

0x38 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_sys_ctrl(&self) -> &Reg<CLK_SYS_CTRL_SPEC>

0x3c - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_sys_div(&self) -> &Reg<CLK_SYS_DIV_SPEC>

0x40 -

Source

pub fn clk_sys_selected(&self) -> &Reg<CLK_SYS_SELECTED_SPEC>

0x44 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_peri_ctrl(&self) -> &Reg<CLK_PERI_CTRL_SPEC>

0x48 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_peri_div(&self) -> &Reg<CLK_PERI_DIV_SPEC>

0x4c -

Source

pub fn clk_peri_selected(&self) -> &Reg<CLK_PERI_SELECTED_SPEC>

0x50 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_hstx_ctrl(&self) -> &Reg<CLK_HSTX_CTRL_SPEC>

0x54 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_hstx_div(&self) -> &Reg<CLK_HSTX_DIV_SPEC>

0x58 -

Source

pub fn clk_hstx_selected(&self) -> &Reg<CLK_HSTX_SELECTED_SPEC>

0x5c - Indicates which src is currently selected (one-hot)

Source

pub fn clk_usb_ctrl(&self) -> &Reg<CLK_USB_CTRL_SPEC>

0x60 - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_usb_div(&self) -> &Reg<CLK_USB_DIV_SPEC>

0x64 -

Source

pub fn clk_usb_selected(&self) -> &Reg<CLK_USB_SELECTED_SPEC>

0x68 - Indicates which src is currently selected (one-hot)

Source

pub fn clk_adc_ctrl(&self) -> &Reg<CLK_ADC_CTRL_SPEC>

0x6c - Clock control, can be changed on-the-fly (except for auxsrc)

Source

pub fn clk_adc_div(&self) -> &Reg<CLK_ADC_DIV_SPEC>

0x70 -

Source

pub fn clk_adc_selected(&self) -> &Reg<CLK_ADC_SELECTED_SPEC>

0x74 - Indicates which src is currently selected (one-hot)

Source

pub fn dftclk_xosc_ctrl(&self) -> &Reg<DFTCLK_XOSC_CTRL_SPEC>

0x78 -

Source

pub fn dftclk_rosc_ctrl(&self) -> &Reg<DFTCLK_ROSC_CTRL_SPEC>

0x7c -

Source

pub fn dftclk_lposc_ctrl(&self) -> &Reg<DFTCLK_LPOSC_CTRL_SPEC>

0x80 -

Source

pub fn clk_sys_resus_ctrl(&self) -> &Reg<CLK_SYS_RESUS_CTRL_SPEC>

0x84 -

Source

pub fn clk_sys_resus_status(&self) -> &Reg<CLK_SYS_RESUS_STATUS_SPEC>

0x88 -

Source

pub fn fc0_ref_khz(&self) -> &Reg<FC0_REF_KHZ_SPEC>

0x8c - Reference clock frequency in kHz

Source

pub fn fc0_min_khz(&self) -> &Reg<FC0_MIN_KHZ_SPEC>

0x90 - Minimum pass frequency in kHz. This is optional. Set to 0 if you are not using the pass/fail flags

Source

pub fn fc0_max_khz(&self) -> &Reg<FC0_MAX_KHZ_SPEC>

0x94 - Maximum pass frequency in kHz. This is optional. Set to 0x1ffffff if you are not using the pass/fail flags

Source

pub fn fc0_delay(&self) -> &Reg<FC0_DELAY_SPEC>

0x98 - Delays the start of frequency counting to allow the mux to settle Delay is measured in multiples of the reference clock period

Source

pub fn fc0_interval(&self) -> &Reg<FC0_INTERVAL_SPEC>

0x9c - The test interval is 0.98us * 2interval, but let’s call it 1us * 2interval The default gives a test interval of 250us

Source

pub fn fc0_src(&self) -> &Reg<FC0_SRC_SPEC>

0xa0 - Clock sent to frequency counter, set to 0 when not required Writing to this register initiates the frequency count

Source

pub fn fc0_status(&self) -> &Reg<FC0_STATUS_SPEC>

0xa4 - Frequency counter status

Source

pub fn fc0_result(&self) -> &Reg<FC0_RESULT_SPEC>

0xa8 - Result of frequency measurement, only valid when status_done=1

Source

pub fn wake_en0(&self) -> &Reg<WAKE_EN0_SPEC>

0xac - enable clock in wake mode

Source

pub fn wake_en1(&self) -> &Reg<WAKE_EN1_SPEC>

0xb0 - enable clock in wake mode

Source

pub fn sleep_en0(&self) -> &Reg<SLEEP_EN0_SPEC>

0xb4 - enable clock in sleep mode

Source

pub fn sleep_en1(&self) -> &Reg<SLEEP_EN1_SPEC>

0xb8 - enable clock in sleep mode

Source

pub fn enabled0(&self) -> &Reg<ENABLED0_SPEC>

0xbc - indicates the state of the clock enable

Source

pub fn enabled1(&self) -> &Reg<ENABLED1_SPEC>

0xc0 - indicates the state of the clock enable

Source

pub fn intr(&self) -> &Reg<INTR_SPEC>

0xc4 - Raw Interrupts

Source

pub fn inte(&self) -> &Reg<INTE_SPEC>

0xc8 - Interrupt Enable

Source

pub fn intf(&self) -> &Reg<INTF_SPEC>

0xcc - Interrupt Force

Source

pub fn ints(&self) -> &Reg<INTS_SPEC>

0xd0 - Interrupt status after masking & forcing

Trait Implementations§

Source§

impl Debug for CLOCKS

Source§

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

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

impl Deref for CLOCKS

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<CLOCKS as Deref>::Target

Dereferences the value.
Source§

impl Send for CLOCKS

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<Choices> CoproductSubsetter<CNil, HNil> for Choices

Source§

type Remainder = Choices

Source§

fn subset( self, ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

Source§

fn lift_into(self) -> U

Performs the indexed conversion.
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<Source> Sculptor<HNil, HNil> for Source

Source§

type Remainder = Source

Source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.