pub struct PCR { /* private fields */ }
Expand description
PCR Peripheral
Implementations§
source§impl PCR
impl PCR
sourcepub const PTR: *const RegisterBlock = {0x60096000 as *const pcr::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60096000 as *const pcr::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() -> Self
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>§
sourcepub fn uart0_conf(&self) -> &UART0_CONF
pub fn uart0_conf(&self) -> &UART0_CONF
0x00 - UART0 configuration register
sourcepub fn uart0_sclk_conf(&self) -> &UART0_SCLK_CONF
pub fn uart0_sclk_conf(&self) -> &UART0_SCLK_CONF
0x04 - UART0_SCLK configuration register
sourcepub fn uart0_pd_ctrl(&self) -> &UART0_PD_CTRL
pub fn uart0_pd_ctrl(&self) -> &UART0_PD_CTRL
0x08 - UART0 power control register
sourcepub fn uart1_conf(&self) -> &UART1_CONF
pub fn uart1_conf(&self) -> &UART1_CONF
0x0c - UART1 configuration register
sourcepub fn uart1_sclk_conf(&self) -> &UART1_SCLK_CONF
pub fn uart1_sclk_conf(&self) -> &UART1_SCLK_CONF
0x10 - UART1_SCLK configuration register
sourcepub fn uart1_pd_ctrl(&self) -> &UART1_PD_CTRL
pub fn uart1_pd_ctrl(&self) -> &UART1_PD_CTRL
0x14 - UART1 power control register
sourcepub fn mspi_clk_conf(&self) -> &MSPI_CLK_CONF
pub fn mspi_clk_conf(&self) -> &MSPI_CLK_CONF
0x1c - MSPI_CLK configuration register
sourcepub fn i2c_sclk_conf(&self) -> &I2C_SCLK_CONF
pub fn i2c_sclk_conf(&self) -> &I2C_SCLK_CONF
0x24 - I2C_SCLK configuration register
sourcepub fn rmt_sclk_conf(&self) -> &RMT_SCLK_CONF
pub fn rmt_sclk_conf(&self) -> &RMT_SCLK_CONF
0x30 - RMT_SCLK configuration register
sourcepub fn ledc_sclk_conf(&self) -> &LEDC_SCLK_CONF
pub fn ledc_sclk_conf(&self) -> &LEDC_SCLK_CONF
0x38 - LEDC_SCLK configuration register
sourcepub fn timergroup0_conf(&self) -> &TIMERGROUP0_CONF
pub fn timergroup0_conf(&self) -> &TIMERGROUP0_CONF
0x3c - TIMERGROUP0 configuration register
sourcepub fn timergroup0_timer_clk_conf(&self) -> &TIMERGROUP0_TIMER_CLK_CONF
pub fn timergroup0_timer_clk_conf(&self) -> &TIMERGROUP0_TIMER_CLK_CONF
0x40 - TIMERGROUP0_TIMER_CLK configuration register
sourcepub fn timergroup0_wdt_clk_conf(&self) -> &TIMERGROUP0_WDT_CLK_CONF
pub fn timergroup0_wdt_clk_conf(&self) -> &TIMERGROUP0_WDT_CLK_CONF
0x44 - TIMERGROUP0_WDT_CLK configuration register
sourcepub fn timergroup1_conf(&self) -> &TIMERGROUP1_CONF
pub fn timergroup1_conf(&self) -> &TIMERGROUP1_CONF
0x48 - TIMERGROUP1 configuration register
sourcepub fn timergroup1_timer_clk_conf(&self) -> &TIMERGROUP1_TIMER_CLK_CONF
pub fn timergroup1_timer_clk_conf(&self) -> &TIMERGROUP1_TIMER_CLK_CONF
0x4c - TIMERGROUP1_TIMER_CLK configuration register
sourcepub fn timergroup1_wdt_clk_conf(&self) -> &TIMERGROUP1_WDT_CLK_CONF
pub fn timergroup1_wdt_clk_conf(&self) -> &TIMERGROUP1_WDT_CLK_CONF
0x50 - TIMERGROUP1_WDT_CLK configuration register
sourcepub fn systimer_conf(&self) -> &SYSTIMER_CONF
pub fn systimer_conf(&self) -> &SYSTIMER_CONF
0x54 - SYSTIMER configuration register
sourcepub fn systimer_func_clk_conf(&self) -> &SYSTIMER_FUNC_CLK_CONF
pub fn systimer_func_clk_conf(&self) -> &SYSTIMER_FUNC_CLK_CONF
0x58 - SYSTIMER_FUNC_CLK configuration register
sourcepub fn twai0_conf(&self) -> &TWAI0_CONF
pub fn twai0_conf(&self) -> &TWAI0_CONF
0x5c - TWAI0 configuration register
sourcepub fn twai0_func_clk_conf(&self) -> &TWAI0_FUNC_CLK_CONF
pub fn twai0_func_clk_conf(&self) -> &TWAI0_FUNC_CLK_CONF
0x60 - TWAI0_FUNC_CLK configuration register
sourcepub fn twai1_conf(&self) -> &TWAI1_CONF
pub fn twai1_conf(&self) -> &TWAI1_CONF
0x64 - TWAI1 configuration register
sourcepub fn twai1_func_clk_conf(&self) -> &TWAI1_FUNC_CLK_CONF
pub fn twai1_func_clk_conf(&self) -> &TWAI1_FUNC_CLK_CONF
0x68 - TWAI1_FUNC_CLK configuration register
sourcepub fn i2s_tx_clkm_conf(&self) -> &I2S_TX_CLKM_CONF
pub fn i2s_tx_clkm_conf(&self) -> &I2S_TX_CLKM_CONF
0x70 - I2S_TX_CLKM configuration register
sourcepub fn i2s_tx_clkm_div_conf(&self) -> &I2S_TX_CLKM_DIV_CONF
pub fn i2s_tx_clkm_div_conf(&self) -> &I2S_TX_CLKM_DIV_CONF
0x74 - I2S_TX_CLKM_DIV configuration register
sourcepub fn i2s_rx_clkm_conf(&self) -> &I2S_RX_CLKM_CONF
pub fn i2s_rx_clkm_conf(&self) -> &I2S_RX_CLKM_CONF
0x78 - I2S_RX_CLKM configuration register
sourcepub fn i2s_rx_clkm_div_conf(&self) -> &I2S_RX_CLKM_DIV_CONF
pub fn i2s_rx_clkm_div_conf(&self) -> &I2S_RX_CLKM_DIV_CONF
0x7c - I2S_RX_CLKM_DIV configuration register
sourcepub fn saradc_conf(&self) -> &SARADC_CONF
pub fn saradc_conf(&self) -> &SARADC_CONF
0x80 - SARADC configuration register
sourcepub fn saradc_clkm_conf(&self) -> &SARADC_CLKM_CONF
pub fn saradc_clkm_conf(&self) -> &SARADC_CLKM_CONF
0x84 - SARADC_CLKM configuration register
sourcepub fn tsens_clk_conf(&self) -> &TSENS_CLK_CONF
pub fn tsens_clk_conf(&self) -> &TSENS_CLK_CONF
0x88 - TSENS_CLK configuration register
sourcepub fn usb_device_conf(&self) -> &USB_DEVICE_CONF
pub fn usb_device_conf(&self) -> &USB_DEVICE_CONF
0x8c - USB_DEVICE configuration register
sourcepub fn intmtx_conf(&self) -> &INTMTX_CONF
pub fn intmtx_conf(&self) -> &INTMTX_CONF
0x90 - INTMTX configuration register
sourcepub fn pwm_clk_conf(&self) -> &PWM_CLK_CONF
pub fn pwm_clk_conf(&self) -> &PWM_CLK_CONF
0xa0 - PWM_CLK configuration register
sourcepub fn parl_io_conf(&self) -> &PARL_IO_CONF
pub fn parl_io_conf(&self) -> &PARL_IO_CONF
0xa4 - PARL_IO configuration register
sourcepub fn parl_clk_rx_conf(&self) -> &PARL_CLK_RX_CONF
pub fn parl_clk_rx_conf(&self) -> &PARL_CLK_RX_CONF
0xa8 - PARL_CLK_RX configuration register
sourcepub fn parl_clk_tx_conf(&self) -> &PARL_CLK_TX_CONF
pub fn parl_clk_tx_conf(&self) -> &PARL_CLK_TX_CONF
0xac - PARL_CLK_TX configuration register
sourcepub fn sdio_slave_conf(&self) -> &SDIO_SLAVE_CONF
pub fn sdio_slave_conf(&self) -> &SDIO_SLAVE_CONF
0xb0 - SDIO_SLAVE configuration register
sourcepub fn pvt_monitor_conf(&self) -> &PVT_MONITOR_CONF
pub fn pvt_monitor_conf(&self) -> &PVT_MONITOR_CONF
0xb4 - PVT_MONITOR configuration register
sourcepub fn pvt_monitor_func_clk_conf(&self) -> &PVT_MONITOR_FUNC_CLK_CONF
pub fn pvt_monitor_func_clk_conf(&self) -> &PVT_MONITOR_FUNC_CLK_CONF
0xb8 - PVT_MONITOR function clock configuration register
sourcepub fn spi2_clkm_conf(&self) -> &SPI2_CLKM_CONF
pub fn spi2_clkm_conf(&self) -> &SPI2_CLKM_CONF
0xc4 - SPI2_CLKM configuration register
sourcepub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL
pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL
0xd4 - RSA power control register
sourcepub fn ecc_pd_ctrl(&self) -> &ECC_PD_CTRL
pub fn ecc_pd_ctrl(&self) -> &ECC_PD_CTRL
0xdc - ECC power control register
sourcepub fn iomux_conf(&self) -> &IOMUX_CONF
pub fn iomux_conf(&self) -> &IOMUX_CONF
0xe8 - IOMUX configuration register
sourcepub fn iomux_clk_conf(&self) -> &IOMUX_CLK_CONF
pub fn iomux_clk_conf(&self) -> &IOMUX_CLK_CONF
0xec - IOMUX_CLK configuration register
sourcepub fn mem_monitor_conf(&self) -> &MEM_MONITOR_CONF
pub fn mem_monitor_conf(&self) -> &MEM_MONITOR_CONF
0xf0 - MEM_MONITOR configuration register
sourcepub fn regdma_conf(&self) -> ®DMA_CONF
pub fn regdma_conf(&self) -> ®DMA_CONF
0xf4 - REGDMA configuration register
sourcepub fn retention_conf(&self) -> &RETENTION_CONF
pub fn retention_conf(&self) -> &RETENTION_CONF
0xf8 - retention configuration register
sourcepub fn trace_conf(&self) -> &TRACE_CONF
pub fn trace_conf(&self) -> &TRACE_CONF
0xfc - TRACE configuration register
sourcepub fn assist_conf(&self) -> &ASSIST_CONF
pub fn assist_conf(&self) -> &ASSIST_CONF
0x100 - ASSIST configuration register
sourcepub fn cache_conf(&self) -> &CACHE_CONF
pub fn cache_conf(&self) -> &CACHE_CONF
0x104 - CACHE configuration register
sourcepub fn modem_apb_conf(&self) -> &MODEM_APB_CONF
pub fn modem_apb_conf(&self) -> &MODEM_APB_CONF
0x108 - MODEM_APB configuration register
sourcepub fn timeout_conf(&self) -> &TIMEOUT_CONF
pub fn timeout_conf(&self) -> &TIMEOUT_CONF
0x10c - TIMEOUT configuration register
sourcepub fn sysclk_conf(&self) -> &SYSCLK_CONF
pub fn sysclk_conf(&self) -> &SYSCLK_CONF
0x110 - SYSCLK configuration register
sourcepub fn cpu_waiti_conf(&self) -> &CPU_WAITI_CONF
pub fn cpu_waiti_conf(&self) -> &CPU_WAITI_CONF
0x114 - CPU_WAITI configuration register
sourcepub fn cpu_freq_conf(&self) -> &CPU_FREQ_CONF
pub fn cpu_freq_conf(&self) -> &CPU_FREQ_CONF
0x118 - CPU_FREQ configuration register
sourcepub fn ahb_freq_conf(&self) -> &AHB_FREQ_CONF
pub fn ahb_freq_conf(&self) -> &AHB_FREQ_CONF
0x11c - AHB_FREQ configuration register
sourcepub fn apb_freq_conf(&self) -> &APB_FREQ_CONF
pub fn apb_freq_conf(&self) -> &APB_FREQ_CONF
0x120 - APB_FREQ configuration register
sourcepub fn sysclk_freq_query_0(&self) -> &SYSCLK_FREQ_QUERY_0
pub fn sysclk_freq_query_0(&self) -> &SYSCLK_FREQ_QUERY_0
0x124 - SYSCLK frequency query 0 register
sourcepub fn pll_div_clk_en(&self) -> &PLL_DIV_CLK_EN
pub fn pll_div_clk_en(&self) -> &PLL_DIV_CLK_EN
0x128 - SPLL DIV clock-gating configuration register
sourcepub fn ctrl_clk_out_en(&self) -> &CTRL_CLK_OUT_EN
pub fn ctrl_clk_out_en(&self) -> &CTRL_CLK_OUT_EN
0x12c - CLK_OUT_EN configuration register
sourcepub fn ctrl_tick_conf(&self) -> &CTRL_TICK_CONF
pub fn ctrl_tick_conf(&self) -> &CTRL_TICK_CONF
0x130 - TICK configuration register
sourcepub fn ctrl_32k_conf(&self) -> &CTRL_32K_CONF
pub fn ctrl_32k_conf(&self) -> &CTRL_32K_CONF
0x134 - 32KHz clock configuration register
sourcepub fn sram_power_conf(&self) -> &SRAM_POWER_CONF
pub fn sram_power_conf(&self) -> &SRAM_POWER_CONF
0x138 - HP SRAM/ROM configuration register
sourcepub fn reset_event_bypass(&self) -> &RESET_EVENT_BYPASS
pub fn reset_event_bypass(&self) -> &RESET_EVENT_BYPASS
0xff0 - reset event bypass backdoor configuration register
sourcepub fn fpga_debug(&self) -> &FPGA_DEBUG
pub fn fpga_debug(&self) -> &FPGA_DEBUG
0xff4 - fpga debug register
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0xff8 - PCR clock gating configure register