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