Struct PCR

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

PCR Peripheral

Implementations§

Source§

impl PCR

Source

pub const PTR: *const RegisterBlock = {0x60096000 as *const pcr::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 uart(&self, n: usize) -> &UART

0x00..0x18 - Cluster UART%s, containing UART?_CONF, UART?_SCLK_CONF, UART?_PD_CTRL

Source

pub fn uart_iter(&self) -> impl Iterator<Item = &UART>

Iterator for array of: 0x00..0x18 - Cluster UART%s, containing UART?_CONF, UART?_SCLK_CONF, UART?_PD_CTRL

Source

pub fn mspi_conf(&self) -> &MSPI_CONF

0x18 - MSPI configuration register

Source

pub fn mspi_clk_conf(&self) -> &MSPI_CLK_CONF

0x1c - MSPI_CLK configuration register

Source

pub fn i2c0_conf(&self) -> &I2C0_CONF

0x20 - I2C configuration register

Source

pub fn i2c0_sclk_conf(&self) -> &I2C0_SCLK_CONF

0x24 - I2C_SCLK configuration register

Source

pub fn i2c1_conf(&self) -> &I2C1_CONF

0x28 - I2C configuration register

Source

pub fn i2c1_sclk_conf(&self) -> &I2C1_SCLK_CONF

0x2c - I2C_SCLK configuration register

Source

pub fn uhci_conf(&self) -> &UHCI_CONF

0x30 - UHCI configuration register

Source

pub fn rmt_conf(&self) -> &RMT_CONF

0x34 - RMT configuration register

Source

pub fn rmt_sclk_conf(&self) -> &RMT_SCLK_CONF

0x38 - RMT_SCLK configuration register

Source

pub fn ledc_conf(&self) -> &LEDC_CONF

0x3c - LEDC configuration register

Source

pub fn ledc_sclk_conf(&self) -> &LEDC_SCLK_CONF

0x40 - LEDC_SCLK configuration register

Source

pub fn timergroup0_conf(&self) -> &TIMERGROUP0_CONF

0x44 - TIMERGROUP0 configuration register

Source

pub fn timergroup0_timer_clk_conf(&self) -> &TIMERGROUP0_TIMER_CLK_CONF

0x48 - TIMERGROUP0_TIMER_CLK configuration register

Source

pub fn timergroup0_wdt_clk_conf(&self) -> &TIMERGROUP0_WDT_CLK_CONF

0x4c - TIMERGROUP0_WDT_CLK configuration register

Source

pub fn timergroup1_conf(&self) -> &TIMERGROUP1_CONF

0x50 - TIMERGROUP1 configuration register

Source

pub fn timergroup1_timer_clk_conf(&self) -> &TIMERGROUP1_TIMER_CLK_CONF

0x54 - TIMERGROUP1_TIMER_CLK configuration register

Source

pub fn timergroup1_wdt_clk_conf(&self) -> &TIMERGROUP1_WDT_CLK_CONF

0x58 - TIMERGROUP1_WDT_CLK configuration register

Source

pub fn systimer_conf(&self) -> &SYSTIMER_CONF

0x5c - SYSTIMER configuration register

Source

pub fn systimer_func_clk_conf(&self) -> &SYSTIMER_FUNC_CLK_CONF

0x60 - SYSTIMER_FUNC_CLK configuration register

Source

pub fn twai0_conf(&self) -> &TWAI0_CONF

0x64 - TWAI0 configuration register

Source

pub fn twai0_func_clk_conf(&self) -> &TWAI0_FUNC_CLK_CONF

0x68 - TWAI0_FUNC_CLK configuration register

Source

pub fn i2s_conf(&self) -> &I2S_CONF

0x6c - I2S configuration register

Source

pub fn i2s_tx_clkm_conf(&self) -> &I2S_TX_CLKM_CONF

0x70 - I2S_TX_CLKM configuration register

Source

pub fn i2s_tx_clkm_div_conf(&self) -> &I2S_TX_CLKM_DIV_CONF

0x74 - I2S_TX_CLKM_DIV configuration register

Source

pub fn i2s_rx_clkm_conf(&self) -> &I2S_RX_CLKM_CONF

0x78 - I2S_RX_CLKM configuration register

Source

pub fn i2s_rx_clkm_div_conf(&self) -> &I2S_RX_CLKM_DIV_CONF

0x7c - I2S_RX_CLKM_DIV configuration register

Source

pub fn saradc_conf(&self) -> &SARADC_CONF

0x80 - SARADC configuration register

Source

pub fn saradc_clkm_conf(&self) -> &SARADC_CLKM_CONF

0x84 - SARADC_CLKM configuration register

Source

pub fn tsens_clk_conf(&self) -> &TSENS_CLK_CONF

0x88 - TSENS_CLK configuration register

Source

pub fn usb_device_conf(&self) -> &USB_DEVICE_CONF

0x8c - USB_DEVICE configuration register

Source

pub fn intmtx_conf(&self) -> &INTMTX_CONF

0x90 - INTMTX configuration register

Source

pub fn pcnt_conf(&self) -> &PCNT_CONF

0x94 - PCNT configuration register

Source

pub fn etm_conf(&self) -> &ETM_CONF

0x98 - ETM configuration register

Source

pub fn pwm_conf(&self) -> &PWM_CONF

0x9c - PWM configuration register

Source

pub fn pwm_clk_conf(&self) -> &PWM_CLK_CONF

0xa0 - PWM_CLK configuration register

Source

pub fn parl_io_conf(&self) -> &PARL_IO_CONF

0xa4 - PARL_IO configuration register

Source

pub fn parl_clk_rx_conf(&self) -> &PARL_CLK_RX_CONF

0xa8 - PARL_CLK_RX configuration register

Source

pub fn parl_clk_tx_conf(&self) -> &PARL_CLK_TX_CONF

0xac - PARL_CLK_TX configuration register

Source

pub fn pvt_monitor_conf(&self) -> &PVT_MONITOR_CONF

0xb0 - PVT_MONITOR configuration register

Source

pub fn pvt_monitor_func_clk_conf(&self) -> &PVT_MONITOR_FUNC_CLK_CONF

0xb4 - PVT_MONITOR function clock configuration register

Source

pub fn gdma_conf(&self) -> &GDMA_CONF

0xb8 - GDMA configuration register

Source

pub fn spi2_conf(&self) -> &SPI2_CONF

0xbc - SPI2 configuration register

Source

pub fn spi2_clkm_conf(&self) -> &SPI2_CLKM_CONF

0xc0 - SPI2_CLKM configuration register

Source

pub fn aes_conf(&self) -> &AES_CONF

0xc4 - AES configuration register

Source

pub fn sha_conf(&self) -> &SHA_CONF

0xc8 - SHA configuration register

Source

pub fn rsa_conf(&self) -> &RSA_CONF

0xcc - RSA configuration register

Source

pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL

0xd0 - RSA power control register

Source

pub fn ecc_conf(&self) -> &ECC_CONF

0xd4 - ECC configuration register

Source

pub fn ecc_pd_ctrl(&self) -> &ECC_PD_CTRL

0xd8 - ECC power control register

Source

pub fn ds_conf(&self) -> &DS_CONF

0xdc - DS configuration register

Source

pub fn hmac_conf(&self) -> &HMAC_CONF

0xe0 - HMAC configuration register

Source

pub fn ecdsa_conf(&self) -> &ECDSA_CONF

0xe4 - ECDSA configuration register

Source

pub fn iomux_conf(&self) -> &IOMUX_CONF

0xe8 - IOMUX configuration register

Source

pub fn iomux_clk_conf(&self) -> &IOMUX_CLK_CONF

0xec - IOMUX_CLK configuration register

Source

pub fn mem_monitor_conf(&self) -> &MEM_MONITOR_CONF

0xf0 - MEM_MONITOR configuration register

Source

pub fn regdma_conf(&self) -> &REGDMA_CONF

0xf4 - REGDMA configuration register

Source

pub fn trace_conf(&self) -> &TRACE_CONF

0xf8 - TRACE configuration register

Source

pub fn assist_conf(&self) -> &ASSIST_CONF

0xfc - ASSIST configuration register

Source

pub fn cache_conf(&self) -> &CACHE_CONF

0x100 - CACHE configuration register

Source

pub fn modem_conf(&self) -> &MODEM_CONF

0x104 - MODEM_APB configuration register

Source

pub fn timeout_conf(&self) -> &TIMEOUT_CONF

0x108 - TIMEOUT configuration register

Source

pub fn sysclk_conf(&self) -> &SYSCLK_CONF

0x10c - SYSCLK configuration register

Source

pub fn cpu_waiti_conf(&self) -> &CPU_WAITI_CONF

0x110 - CPU_WAITI configuration register

Source

pub fn cpu_freq_conf(&self) -> &CPU_FREQ_CONF

0x114 - CPU_FREQ configuration register

Source

pub fn ahb_freq_conf(&self) -> &AHB_FREQ_CONF

0x118 - AHB_FREQ configuration register

Source

pub fn apb_freq_conf(&self) -> &APB_FREQ_CONF

0x11c - APB_FREQ configuration register

Source

pub fn sysclk_freq_query_0(&self) -> &SYSCLK_FREQ_QUERY_0

0x120 - SYSCLK frequency query 0 register

Source

pub fn pll_div_clk_en(&self) -> &PLL_DIV_CLK_EN

0x124 - SPLL DIV clock-gating configuration register

Source

pub fn ctrl_clk_out_en(&self) -> &CTRL_CLK_OUT_EN

0x128 - CLK_OUT_EN configuration register

Source

pub fn ctrl_tick_conf(&self) -> &CTRL_TICK_CONF

0x12c - TICK configuration register

Source

pub fn ctrl_32k_conf(&self) -> &CTRL_32K_CONF

0x130 - 32KHz clock configuration register

Source

pub fn sram_power_conf_0(&self) -> &SRAM_POWER_CONF_0

0x134 - HP SRAM/ROM configuration register

Source

pub fn sram_power_conf_1(&self) -> &SRAM_POWER_CONF_1

0x138 - HP SRAM/ROM configuration register

Source

pub fn sec_conf(&self) -> &SEC_CONF

0x13c - xxxx

Source

pub fn adc_inv_phase_conf(&self) -> &ADC_INV_PHASE_CONF

0x140 - xxxx

Source

pub fn sdm_inv_phase_conf(&self) -> &SDM_INV_PHASE_CONF

0x144 - xxxx

Source

pub fn bus_clk_update(&self) -> &BUS_CLK_UPDATE

0x148 - xxxx

Source

pub fn sar_clk_div(&self) -> &SAR_CLK_DIV

0x14c - xxxx

Source

pub fn pwdet_sar_clk_conf(&self) -> &PWDET_SAR_CLK_CONF

0x150 - xxxx

Source

pub fn reset_event_bypass(&self) -> &RESET_EVENT_BYPASS

0xff0 - reset event bypass backdoor configuration register

Source

pub fn fpga_debug(&self) -> &FPGA_DEBUG

0xff4 - fpga debug register

Source

pub fn clock_gate(&self) -> &CLOCK_GATE

0xff8 - PCR clock gating configure register

Source

pub fn date(&self) -> &DATE

0xffc - Date register.

Trait Implementations§

Source§

impl Debug for PCR

Source§

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

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

impl Deref for PCR

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for PCR

Auto Trait Implementations§

§

impl Freeze for PCR

§

impl RefUnwindSafe for PCR

§

impl !Sync for PCR

§

impl Unpin for PCR

§

impl UnwindSafe for PCR

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.