rp-pac

Crates

2.0.0

Versions

default

Flavors

Struct Clocks

Source
pub struct Clocks(pub *mut u8);

Tuple Fields§

§0: *mut u8

Implementations§

Source§

impl Clocks

Source

pub fn clk_gpout0_ctrl(self) -> Reg<ClkGpout0ctrl, RW>

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

Source

pub fn clk_gpout0_div(self) -> Reg<ClkGpout0div, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_gpout0_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_gpout1_ctrl(self) -> Reg<ClkGpout1ctrl, RW>

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

Source

pub fn clk_gpout1_div(self) -> Reg<ClkGpout1div, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_gpout1_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_gpout2_ctrl(self) -> Reg<ClkGpout2ctrl, RW>

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

Source

pub fn clk_gpout2_div(self) -> Reg<ClkGpout2div, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_gpout2_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_gpout3_ctrl(self) -> Reg<ClkGpout3ctrl, RW>

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

Source

pub fn clk_gpout3_div(self) -> Reg<ClkGpout3div, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_gpout3_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_ref_ctrl(self) -> Reg<ClkRefCtrl, RW>

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

Source

pub fn clk_ref_div(self) -> Reg<ClkRefDiv, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_ref_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.

Source

pub fn clk_sys_ctrl(self) -> Reg<ClkSysCtrl, RW>

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

Source

pub fn clk_sys_div(self) -> Reg<ClkSysDiv, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_sys_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.

Source

pub fn clk_peri_ctrl(self) -> Reg<ClkPeriCtrl, RW>

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

Source

pub fn clk_peri_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_usb_ctrl(self) -> Reg<ClkUsbCtrl, RW>

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

Source

pub fn clk_usb_div(self) -> Reg<ClkUsbDiv, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_usb_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_adc_ctrl(self) -> Reg<ClkAdcCtrl, RW>

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

Source

pub fn clk_adc_div(self) -> Reg<ClkAdcDiv, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_adc_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_rtc_ctrl(self) -> Reg<ClkRtcCtrl, RW>

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

Source

pub fn clk_rtc_div(self) -> Reg<ClkRtcDiv, RW>

Clock divisor, can be changed on-the-fly

Source

pub fn clk_rtc_selected(self) -> Reg<u32, R>

Indicates which SRC is currently selected by the glitchless mux (one-hot). This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.

Source

pub fn clk_sys_resus_ctrl(self) -> Reg<ClkSysResusCtrl, RW>

Source

pub fn clk_sys_resus_status(self) -> Reg<ClkSysResusStatus, RW>

Source

pub fn fc0_ref_khz(self) -> Reg<Fc0refKhz, RW>

Reference clock frequency in kHz

Source

pub fn fc0_min_khz(self) -> Reg<Fc0minKhz, RW>

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

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

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

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

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

Frequency counter status

Source

pub fn fc0_result(self) -> Reg<Fc0result, RW>

Result of frequency measurement, only valid when status_done=1

Source

pub fn wake_en0(self) -> Reg<WakeEn0, RW>

enable clock in wake mode

Source

pub fn wake_en1(self) -> Reg<WakeEn1, RW>

enable clock in wake mode

Source

pub fn sleep_en0(self) -> Reg<SleepEn0, RW>

enable clock in sleep mode

Source

pub fn sleep_en1(self) -> Reg<SleepEn1, RW>

enable clock in sleep mode

Source

pub fn enabled0(self) -> Reg<Enabled0, RW>

indicates the state of the clock enable

Source

pub fn enabled1(self) -> Reg<Enabled1, RW>

indicates the state of the clock enable

Source

pub fn intr(self) -> Reg<Int, RW>

Raw Interrupts

Source

pub fn inte(self) -> Reg<Int, RW>

Interrupt Enable

Source

pub fn intf(self) -> Reg<Int, RW>

Interrupt Force

Source

pub fn ints(self) -> Reg<Int, RW>

Interrupt status after masking & forcing

Trait Implementations§

Source§

impl Clone for Clocks

Source§

fn clone(&self) -> Clocks

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Clocks

Source§

fn eq(&self, other: &Clocks) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Clocks

Source§

impl Eq for Clocks

Source§

impl Send for Clocks

Source§

impl StructuralPartialEq for Clocks

Source§

impl Sync 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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, 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.