Struct esp32c6::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 uart0_conf(&self) -> &UART0_CONF

0x00 - UART0 configuration register

source

pub fn uart0_sclk_conf(&self) -> &UART0_SCLK_CONF

0x04 - UART0_SCLK configuration register

source

pub fn uart0_pd_ctrl(&self) -> &UART0_PD_CTRL

0x08 - UART0 power control register

source

pub fn uart1_conf(&self) -> &UART1_CONF

0x0c - UART1 configuration register

source

pub fn uart1_sclk_conf(&self) -> &UART1_SCLK_CONF

0x10 - UART1_SCLK configuration register

source

pub fn uart1_pd_ctrl(&self) -> &UART1_PD_CTRL

0x14 - UART1 power control register

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 i2c_sclk_conf(&self) -> &I2C_SCLK_CONF

0x24 - I2C_SCLK configuration register

source

pub fn uhci_conf(&self) -> &UHCI_CONF

0x28 - UHCI configuration register

source

pub fn rmt_conf(&self) -> &RMT_CONF

0x2c - RMT configuration register

source

pub fn rmt_sclk_conf(&self) -> &RMT_SCLK_CONF

0x30 - RMT_SCLK configuration register

source

pub fn ledc_conf(&self) -> &LEDC_CONF

0x34 - LEDC configuration register

source

pub fn ledc_sclk_conf(&self) -> &LEDC_SCLK_CONF

0x38 - LEDC_SCLK configuration register

source

pub fn timergroup0_conf(&self) -> &TIMERGROUP0_CONF

0x3c - TIMERGROUP0 configuration register

source

pub fn timergroup0_timer_clk_conf(&self) -> &TIMERGROUP0_TIMER_CLK_CONF

0x40 - TIMERGROUP0_TIMER_CLK configuration register

source

pub fn timergroup0_wdt_clk_conf(&self) -> &TIMERGROUP0_WDT_CLK_CONF

0x44 - TIMERGROUP0_WDT_CLK configuration register

source

pub fn timergroup1_conf(&self) -> &TIMERGROUP1_CONF

0x48 - TIMERGROUP1 configuration register

source

pub fn timergroup1_timer_clk_conf(&self) -> &TIMERGROUP1_TIMER_CLK_CONF

0x4c - TIMERGROUP1_TIMER_CLK configuration register

source

pub fn timergroup1_wdt_clk_conf(&self) -> &TIMERGROUP1_WDT_CLK_CONF

0x50 - TIMERGROUP1_WDT_CLK configuration register

source

pub fn systimer_conf(&self) -> &SYSTIMER_CONF

0x54 - SYSTIMER configuration register

source

pub fn systimer_func_clk_conf(&self) -> &SYSTIMER_FUNC_CLK_CONF

0x58 - SYSTIMER_FUNC_CLK configuration register

source

pub fn twai0_conf(&self) -> &TWAI0_CONF

0x5c - TWAI0 configuration register

source

pub fn twai0_func_clk_conf(&self) -> &TWAI0_FUNC_CLK_CONF

0x60 - TWAI0_FUNC_CLK configuration register

source

pub fn twai1_conf(&self) -> &TWAI1_CONF

0x64 - TWAI1 configuration register

source

pub fn twai1_func_clk_conf(&self) -> &TWAI1_FUNC_CLK_CONF

0x68 - TWAI1_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 sdio_slave_conf(&self) -> &SDIO_SLAVE_CONF

0xb0 - SDIO_SLAVE configuration register

source

pub fn pvt_monitor_conf(&self) -> &PVT_MONITOR_CONF

0xb4 - PVT_MONITOR configuration register

source

pub fn pvt_monitor_func_clk_conf(&self) -> &PVT_MONITOR_FUNC_CLK_CONF

0xb8 - PVT_MONITOR function clock configuration register

source

pub fn gdma_conf(&self) -> &GDMA_CONF

0xbc - GDMA configuration register

source

pub fn spi2_conf(&self) -> &SPI2_CONF

0xc0 - SPI2 configuration register

source

pub fn spi2_clkm_conf(&self) -> &SPI2_CLKM_CONF

0xc4 - SPI2_CLKM configuration register

source

pub fn aes_conf(&self) -> &AES_CONF

0xc8 - AES configuration register

source

pub fn sha_conf(&self) -> &SHA_CONF

0xcc - SHA configuration register

source

pub fn rsa_conf(&self) -> &RSA_CONF

0xd0 - RSA configuration register

source

pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL

0xd4 - RSA power control register

source

pub fn ecc_conf(&self) -> &ECC_CONF

0xd8 - ECC configuration register

source

pub fn ecc_pd_ctrl(&self) -> &ECC_PD_CTRL

0xdc - ECC power control register

source

pub fn ds_conf(&self) -> &DS_CONF

0xe0 - DS configuration register

source

pub fn hmac_conf(&self) -> &HMAC_CONF

0xe4 - HMAC 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 retention_conf(&self) -> &RETENTION_CONF

0xf8 - retention configuration register

source

pub fn trace_conf(&self) -> &TRACE_CONF

0xfc - TRACE configuration register

source

pub fn assist_conf(&self) -> &ASSIST_CONF

0x100 - ASSIST configuration register

source

pub fn cache_conf(&self) -> &CACHE_CONF

0x104 - CACHE configuration register

source

pub fn modem_apb_conf(&self) -> &MODEM_APB_CONF

0x108 - MODEM_APB configuration register

source

pub fn timeout_conf(&self) -> &TIMEOUT_CONF

0x10c - TIMEOUT configuration register

source

pub fn sysclk_conf(&self) -> &SYSCLK_CONF

0x110 - SYSCLK configuration register

source

pub fn cpu_waiti_conf(&self) -> &CPU_WAITI_CONF

0x114 - CPU_WAITI configuration register

source

pub fn cpu_freq_conf(&self) -> &CPU_FREQ_CONF

0x118 - CPU_FREQ configuration register

source

pub fn ahb_freq_conf(&self) -> &AHB_FREQ_CONF

0x11c - AHB_FREQ configuration register

source

pub fn apb_freq_conf(&self) -> &APB_FREQ_CONF

0x120 - APB_FREQ configuration register

source

pub fn sysclk_freq_query_0(&self) -> &SYSCLK_FREQ_QUERY_0

0x124 - SYSCLK frequency query 0 register

source

pub fn pll_div_clk_en(&self) -> &PLL_DIV_CLK_EN

0x128 - SPLL DIV clock-gating configuration register

source

pub fn ctrl_clk_out_en(&self) -> &CTRL_CLK_OUT_EN

0x12c - CLK_OUT_EN configuration register

source

pub fn ctrl_tick_conf(&self) -> &CTRL_TICK_CONF

0x130 - TICK configuration register

source

pub fn ctrl_32k_conf(&self) -> &CTRL_32K_CONF

0x134 - 32KHz clock configuration register

source

pub fn sram_power_conf(&self) -> &SRAM_POWER_CONF

0x138 - HP SRAM/ROM configuration register

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

§

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.