pub struct CLOCKS { /* private fields */ }Expand description
CLOCKS
Implementations§
Source§impl CLOCKS
impl CLOCKS
Sourcepub const PTR: *const RegisterBlock = {0x40010000 as *const rp235x_hal::rp235x_pac::clocks::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40010000 as *const rp235x_hal::rp235x_pac::clocks::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> CLOCKS
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>§
Sourcepub fn clk_gpout0_ctrl(&self) -> &Reg<CLK_GPOUT0_CTRL_SPEC>
pub fn clk_gpout0_ctrl(&self) -> &Reg<CLK_GPOUT0_CTRL_SPEC>
0x00 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_gpout0_div(&self) -> &Reg<CLK_GPOUT0_DIV_SPEC>
pub fn clk_gpout0_div(&self) -> &Reg<CLK_GPOUT0_DIV_SPEC>
0x04 -
Sourcepub fn clk_gpout0_selected(&self) -> &Reg<CLK_GPOUT0_SELECTED_SPEC>
pub fn clk_gpout0_selected(&self) -> &Reg<CLK_GPOUT0_SELECTED_SPEC>
0x08 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_gpout1_ctrl(&self) -> &Reg<CLK_GPOUT1_CTRL_SPEC>
pub fn clk_gpout1_ctrl(&self) -> &Reg<CLK_GPOUT1_CTRL_SPEC>
0x0c - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_gpout1_div(&self) -> &Reg<CLK_GPOUT1_DIV_SPEC>
pub fn clk_gpout1_div(&self) -> &Reg<CLK_GPOUT1_DIV_SPEC>
0x10 -
Sourcepub fn clk_gpout1_selected(&self) -> &Reg<CLK_GPOUT1_SELECTED_SPEC>
pub fn clk_gpout1_selected(&self) -> &Reg<CLK_GPOUT1_SELECTED_SPEC>
0x14 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_gpout2_ctrl(&self) -> &Reg<CLK_GPOUT2_CTRL_SPEC>
pub fn clk_gpout2_ctrl(&self) -> &Reg<CLK_GPOUT2_CTRL_SPEC>
0x18 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_gpout2_div(&self) -> &Reg<CLK_GPOUT2_DIV_SPEC>
pub fn clk_gpout2_div(&self) -> &Reg<CLK_GPOUT2_DIV_SPEC>
0x1c -
Sourcepub fn clk_gpout2_selected(&self) -> &Reg<CLK_GPOUT2_SELECTED_SPEC>
pub fn clk_gpout2_selected(&self) -> &Reg<CLK_GPOUT2_SELECTED_SPEC>
0x20 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_gpout3_ctrl(&self) -> &Reg<CLK_GPOUT3_CTRL_SPEC>
pub fn clk_gpout3_ctrl(&self) -> &Reg<CLK_GPOUT3_CTRL_SPEC>
0x24 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_gpout3_div(&self) -> &Reg<CLK_GPOUT3_DIV_SPEC>
pub fn clk_gpout3_div(&self) -> &Reg<CLK_GPOUT3_DIV_SPEC>
0x28 -
Sourcepub fn clk_gpout3_selected(&self) -> &Reg<CLK_GPOUT3_SELECTED_SPEC>
pub fn clk_gpout3_selected(&self) -> &Reg<CLK_GPOUT3_SELECTED_SPEC>
0x2c - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_ref_ctrl(&self) -> &Reg<CLK_REF_CTRL_SPEC>
pub fn clk_ref_ctrl(&self) -> &Reg<CLK_REF_CTRL_SPEC>
0x30 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_ref_div(&self) -> &Reg<CLK_REF_DIV_SPEC>
pub fn clk_ref_div(&self) -> &Reg<CLK_REF_DIV_SPEC>
0x34 -
Sourcepub fn clk_ref_selected(&self) -> &Reg<CLK_REF_SELECTED_SPEC>
pub fn clk_ref_selected(&self) -> &Reg<CLK_REF_SELECTED_SPEC>
0x38 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_sys_ctrl(&self) -> &Reg<CLK_SYS_CTRL_SPEC>
pub fn clk_sys_ctrl(&self) -> &Reg<CLK_SYS_CTRL_SPEC>
0x3c - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_sys_div(&self) -> &Reg<CLK_SYS_DIV_SPEC>
pub fn clk_sys_div(&self) -> &Reg<CLK_SYS_DIV_SPEC>
0x40 -
Sourcepub fn clk_sys_selected(&self) -> &Reg<CLK_SYS_SELECTED_SPEC>
pub fn clk_sys_selected(&self) -> &Reg<CLK_SYS_SELECTED_SPEC>
0x44 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_peri_ctrl(&self) -> &Reg<CLK_PERI_CTRL_SPEC>
pub fn clk_peri_ctrl(&self) -> &Reg<CLK_PERI_CTRL_SPEC>
0x48 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_peri_div(&self) -> &Reg<CLK_PERI_DIV_SPEC>
pub fn clk_peri_div(&self) -> &Reg<CLK_PERI_DIV_SPEC>
0x4c -
Sourcepub fn clk_peri_selected(&self) -> &Reg<CLK_PERI_SELECTED_SPEC>
pub fn clk_peri_selected(&self) -> &Reg<CLK_PERI_SELECTED_SPEC>
0x50 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_hstx_ctrl(&self) -> &Reg<CLK_HSTX_CTRL_SPEC>
pub fn clk_hstx_ctrl(&self) -> &Reg<CLK_HSTX_CTRL_SPEC>
0x54 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_hstx_div(&self) -> &Reg<CLK_HSTX_DIV_SPEC>
pub fn clk_hstx_div(&self) -> &Reg<CLK_HSTX_DIV_SPEC>
0x58 -
Sourcepub fn clk_hstx_selected(&self) -> &Reg<CLK_HSTX_SELECTED_SPEC>
pub fn clk_hstx_selected(&self) -> &Reg<CLK_HSTX_SELECTED_SPEC>
0x5c - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_usb_ctrl(&self) -> &Reg<CLK_USB_CTRL_SPEC>
pub fn clk_usb_ctrl(&self) -> &Reg<CLK_USB_CTRL_SPEC>
0x60 - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_usb_div(&self) -> &Reg<CLK_USB_DIV_SPEC>
pub fn clk_usb_div(&self) -> &Reg<CLK_USB_DIV_SPEC>
0x64 -
Sourcepub fn clk_usb_selected(&self) -> &Reg<CLK_USB_SELECTED_SPEC>
pub fn clk_usb_selected(&self) -> &Reg<CLK_USB_SELECTED_SPEC>
0x68 - Indicates which src is currently selected (one-hot)
Sourcepub fn clk_adc_ctrl(&self) -> &Reg<CLK_ADC_CTRL_SPEC>
pub fn clk_adc_ctrl(&self) -> &Reg<CLK_ADC_CTRL_SPEC>
0x6c - Clock control, can be changed on-the-fly (except for auxsrc)
Sourcepub fn clk_adc_div(&self) -> &Reg<CLK_ADC_DIV_SPEC>
pub fn clk_adc_div(&self) -> &Reg<CLK_ADC_DIV_SPEC>
0x70 -
Sourcepub fn clk_adc_selected(&self) -> &Reg<CLK_ADC_SELECTED_SPEC>
pub fn clk_adc_selected(&self) -> &Reg<CLK_ADC_SELECTED_SPEC>
0x74 - Indicates which src is currently selected (one-hot)
Sourcepub fn dftclk_xosc_ctrl(&self) -> &Reg<DFTCLK_XOSC_CTRL_SPEC>
pub fn dftclk_xosc_ctrl(&self) -> &Reg<DFTCLK_XOSC_CTRL_SPEC>
0x78 -
Sourcepub fn dftclk_rosc_ctrl(&self) -> &Reg<DFTCLK_ROSC_CTRL_SPEC>
pub fn dftclk_rosc_ctrl(&self) -> &Reg<DFTCLK_ROSC_CTRL_SPEC>
0x7c -
Sourcepub fn dftclk_lposc_ctrl(&self) -> &Reg<DFTCLK_LPOSC_CTRL_SPEC>
pub fn dftclk_lposc_ctrl(&self) -> &Reg<DFTCLK_LPOSC_CTRL_SPEC>
0x80 -
Sourcepub fn clk_sys_resus_ctrl(&self) -> &Reg<CLK_SYS_RESUS_CTRL_SPEC>
pub fn clk_sys_resus_ctrl(&self) -> &Reg<CLK_SYS_RESUS_CTRL_SPEC>
0x84 -
Sourcepub fn clk_sys_resus_status(&self) -> &Reg<CLK_SYS_RESUS_STATUS_SPEC>
pub fn clk_sys_resus_status(&self) -> &Reg<CLK_SYS_RESUS_STATUS_SPEC>
0x88 -
Sourcepub fn fc0_ref_khz(&self) -> &Reg<FC0_REF_KHZ_SPEC>
pub fn fc0_ref_khz(&self) -> &Reg<FC0_REF_KHZ_SPEC>
0x8c - Reference clock frequency in kHz
Sourcepub fn fc0_min_khz(&self) -> &Reg<FC0_MIN_KHZ_SPEC>
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
Sourcepub fn fc0_max_khz(&self) -> &Reg<FC0_MAX_KHZ_SPEC>
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
Sourcepub fn fc0_delay(&self) -> &Reg<FC0_DELAY_SPEC>
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
Sourcepub fn fc0_interval(&self) -> &Reg<FC0_INTERVAL_SPEC>
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
Sourcepub fn fc0_src(&self) -> &Reg<FC0_SRC_SPEC>
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
Sourcepub fn fc0_status(&self) -> &Reg<FC0_STATUS_SPEC>
pub fn fc0_status(&self) -> &Reg<FC0_STATUS_SPEC>
0xa4 - Frequency counter status
Sourcepub fn fc0_result(&self) -> &Reg<FC0_RESULT_SPEC>
pub fn fc0_result(&self) -> &Reg<FC0_RESULT_SPEC>
0xa8 - Result of frequency measurement, only valid when status_done=1
Sourcepub fn wake_en0(&self) -> &Reg<WAKE_EN0_SPEC>
pub fn wake_en0(&self) -> &Reg<WAKE_EN0_SPEC>
0xac - enable clock in wake mode
Sourcepub fn wake_en1(&self) -> &Reg<WAKE_EN1_SPEC>
pub fn wake_en1(&self) -> &Reg<WAKE_EN1_SPEC>
0xb0 - enable clock in wake mode
Sourcepub fn sleep_en0(&self) -> &Reg<SLEEP_EN0_SPEC>
pub fn sleep_en0(&self) -> &Reg<SLEEP_EN0_SPEC>
0xb4 - enable clock in sleep mode
Sourcepub fn sleep_en1(&self) -> &Reg<SLEEP_EN1_SPEC>
pub fn sleep_en1(&self) -> &Reg<SLEEP_EN1_SPEC>
0xb8 - enable clock in sleep mode
Sourcepub fn enabled0(&self) -> &Reg<ENABLED0_SPEC>
pub fn enabled0(&self) -> &Reg<ENABLED0_SPEC>
0xbc - indicates the state of the clock enable
Sourcepub fn enabled1(&self) -> &Reg<ENABLED1_SPEC>
pub fn enabled1(&self) -> &Reg<ENABLED1_SPEC>
0xc0 - indicates the state of the clock enable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CLOCKS
impl RefUnwindSafe for CLOCKS
impl !Sync for CLOCKS
impl Unpin for CLOCKS
impl UnwindSafe for CLOCKS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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