Struct SYSTEM

Source
pub struct SYSTEM { /* private fields */ }

Implementations§

Source§

impl SYSTEM

Source

pub const PTR: *const <PCR as Deref>::Target = {0x60096000 as *const <esp32c6::PCR as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> SYSTEM

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

Source

pub const fn ptr() -> *const <PCR as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn uart0_conf(&self) -> &Reg<UART0_CONF_SPEC>

0x00 - UART0 configuration register

Source

pub fn uart0_sclk_conf(&self) -> &Reg<UART0_SCLK_CONF_SPEC>

0x04 - UART0_SCLK configuration register

Source

pub fn uart0_pd_ctrl(&self) -> &Reg<UART0_PD_CTRL_SPEC>

0x08 - UART0 power control register

Source

pub fn uart1_conf(&self) -> &Reg<UART1_CONF_SPEC>

0x0c - UART1 configuration register

Source

pub fn uart1_sclk_conf(&self) -> &Reg<UART1_SCLK_CONF_SPEC>

0x10 - UART1_SCLK configuration register

Source

pub fn uart1_pd_ctrl(&self) -> &Reg<UART1_PD_CTRL_SPEC>

0x14 - UART1 power control register

Source

pub fn mspi_conf(&self) -> &Reg<MSPI_CONF_SPEC>

0x18 - MSPI configuration register

Source

pub fn mspi_clk_conf(&self) -> &Reg<MSPI_CLK_CONF_SPEC>

0x1c - MSPI_CLK configuration register

Source

pub fn i2c0_conf(&self) -> &Reg<I2C0_CONF_SPEC>

0x20 - I2C configuration register

Source

pub fn i2c_sclk_conf(&self) -> &Reg<I2C_SCLK_CONF_SPEC>

0x24 - I2C_SCLK configuration register

Source

pub fn uhci_conf(&self) -> &Reg<UHCI_CONF_SPEC>

0x28 - UHCI configuration register

Source

pub fn rmt_conf(&self) -> &Reg<RMT_CONF_SPEC>

0x2c - RMT configuration register

Source

pub fn rmt_sclk_conf(&self) -> &Reg<RMT_SCLK_CONF_SPEC>

0x30 - RMT_SCLK configuration register

Source

pub fn ledc_conf(&self) -> &Reg<LEDC_CONF_SPEC>

0x34 - LEDC configuration register

Source

pub fn ledc_sclk_conf(&self) -> &Reg<LEDC_SCLK_CONF_SPEC>

0x38 - LEDC_SCLK configuration register

Source

pub fn timergroup0_conf(&self) -> &Reg<TIMERGROUP0_CONF_SPEC>

0x3c - TIMERGROUP0 configuration register

Source

pub fn timergroup0_timer_clk_conf( &self, ) -> &Reg<TIMERGROUP0_TIMER_CLK_CONF_SPEC>

0x40 - TIMERGROUP0_TIMER_CLK configuration register

Source

pub fn timergroup0_wdt_clk_conf(&self) -> &Reg<TIMERGROUP0_WDT_CLK_CONF_SPEC>

0x44 - TIMERGROUP0_WDT_CLK configuration register

Source

pub fn timergroup1_conf(&self) -> &Reg<TIMERGROUP1_CONF_SPEC>

0x48 - TIMERGROUP1 configuration register

Source

pub fn timergroup1_timer_clk_conf( &self, ) -> &Reg<TIMERGROUP1_TIMER_CLK_CONF_SPEC>

0x4c - TIMERGROUP1_TIMER_CLK configuration register

Source

pub fn timergroup1_wdt_clk_conf(&self) -> &Reg<TIMERGROUP1_WDT_CLK_CONF_SPEC>

0x50 - TIMERGROUP1_WDT_CLK configuration register

Source

pub fn systimer_conf(&self) -> &Reg<SYSTIMER_CONF_SPEC>

0x54 - SYSTIMER configuration register

Source

pub fn systimer_func_clk_conf(&self) -> &Reg<SYSTIMER_FUNC_CLK_CONF_SPEC>

0x58 - SYSTIMER_FUNC_CLK configuration register

Source

pub fn twai0_conf(&self) -> &Reg<TWAI0_CONF_SPEC>

0x5c - TWAI0 configuration register

Source

pub fn twai0_func_clk_conf(&self) -> &Reg<TWAI0_FUNC_CLK_CONF_SPEC>

0x60 - TWAI0_FUNC_CLK configuration register

Source

pub fn twai1_conf(&self) -> &Reg<TWAI1_CONF_SPEC>

0x64 - TWAI1 configuration register

Source

pub fn twai1_func_clk_conf(&self) -> &Reg<TWAI1_FUNC_CLK_CONF_SPEC>

0x68 - TWAI1_FUNC_CLK configuration register

Source

pub fn i2s_conf(&self) -> &Reg<I2S_CONF_SPEC>

0x6c - I2S configuration register

Source

pub fn i2s_tx_clkm_conf(&self) -> &Reg<I2S_TX_CLKM_CONF_SPEC>

0x70 - I2S_TX_CLKM configuration register

Source

pub fn i2s_tx_clkm_div_conf(&self) -> &Reg<I2S_TX_CLKM_DIV_CONF_SPEC>

0x74 - I2S_TX_CLKM_DIV configuration register

Source

pub fn i2s_rx_clkm_conf(&self) -> &Reg<I2S_RX_CLKM_CONF_SPEC>

0x78 - I2S_RX_CLKM configuration register

Source

pub fn i2s_rx_clkm_div_conf(&self) -> &Reg<I2S_RX_CLKM_DIV_CONF_SPEC>

0x7c - I2S_RX_CLKM_DIV configuration register

Source

pub fn saradc_conf(&self) -> &Reg<SARADC_CONF_SPEC>

0x80 - SARADC configuration register

Source

pub fn saradc_clkm_conf(&self) -> &Reg<SARADC_CLKM_CONF_SPEC>

0x84 - SARADC_CLKM configuration register

Source

pub fn tsens_clk_conf(&self) -> &Reg<TSENS_CLK_CONF_SPEC>

0x88 - TSENS_CLK configuration register

Source

pub fn usb_device_conf(&self) -> &Reg<USB_DEVICE_CONF_SPEC>

0x8c - USB_DEVICE configuration register

Source

pub fn intmtx_conf(&self) -> &Reg<INTMTX_CONF_SPEC>

0x90 - INTMTX configuration register

Source

pub fn pcnt_conf(&self) -> &Reg<PCNT_CONF_SPEC>

0x94 - PCNT configuration register

Source

pub fn etm_conf(&self) -> &Reg<ETM_CONF_SPEC>

0x98 - ETM configuration register

Source

pub fn pwm_conf(&self) -> &Reg<PWM_CONF_SPEC>

0x9c - PWM configuration register

Source

pub fn pwm_clk_conf(&self) -> &Reg<PWM_CLK_CONF_SPEC>

0xa0 - PWM_CLK configuration register

Source

pub fn parl_io_conf(&self) -> &Reg<PARL_IO_CONF_SPEC>

0xa4 - PARL_IO configuration register

Source

pub fn parl_clk_rx_conf(&self) -> &Reg<PARL_CLK_RX_CONF_SPEC>

0xa8 - PARL_CLK_RX configuration register

Source

pub fn parl_clk_tx_conf(&self) -> &Reg<PARL_CLK_TX_CONF_SPEC>

0xac - PARL_CLK_TX configuration register

Source

pub fn sdio_slave_conf(&self) -> &Reg<SDIO_SLAVE_CONF_SPEC>

0xb0 - SDIO_SLAVE configuration register

Source

pub fn pvt_monitor_conf(&self) -> &Reg<PVT_MONITOR_CONF_SPEC>

0xb4 - PVT_MONITOR configuration register

Source

pub fn pvt_monitor_func_clk_conf(&self) -> &Reg<PVT_MONITOR_FUNC_CLK_CONF_SPEC>

0xb8 - PVT_MONITOR function clock configuration register

Source

pub fn gdma_conf(&self) -> &Reg<GDMA_CONF_SPEC>

0xbc - GDMA configuration register

Source

pub fn spi2_conf(&self) -> &Reg<SPI2_CONF_SPEC>

0xc0 - SPI2 configuration register

Source

pub fn spi2_clkm_conf(&self) -> &Reg<SPI2_CLKM_CONF_SPEC>

0xc4 - SPI2_CLKM configuration register

Source

pub fn aes_conf(&self) -> &Reg<AES_CONF_SPEC>

0xc8 - AES configuration register

Source

pub fn sha_conf(&self) -> &Reg<SHA_CONF_SPEC>

0xcc - SHA configuration register

Source

pub fn rsa_conf(&self) -> &Reg<RSA_CONF_SPEC>

0xd0 - RSA configuration register

Source

pub fn rsa_pd_ctrl(&self) -> &Reg<RSA_PD_CTRL_SPEC>

0xd4 - RSA power control register

Source

pub fn ecc_conf(&self) -> &Reg<ECC_CONF_SPEC>

0xd8 - ECC configuration register

Source

pub fn ecc_pd_ctrl(&self) -> &Reg<ECC_PD_CTRL_SPEC>

0xdc - ECC power control register

Source

pub fn ds_conf(&self) -> &Reg<DS_CONF_SPEC>

0xe0 - DS configuration register

Source

pub fn hmac_conf(&self) -> &Reg<HMAC_CONF_SPEC>

0xe4 - HMAC configuration register

Source

pub fn iomux_conf(&self) -> &Reg<IOMUX_CONF_SPEC>

0xe8 - IOMUX configuration register

Source

pub fn iomux_clk_conf(&self) -> &Reg<IOMUX_CLK_CONF_SPEC>

0xec - IOMUX_CLK configuration register

Source

pub fn mem_monitor_conf(&self) -> &Reg<MEM_MONITOR_CONF_SPEC>

0xf0 - MEM_MONITOR configuration register

Source

pub fn regdma_conf(&self) -> &Reg<REGDMA_CONF_SPEC>

0xf4 - REGDMA configuration register

Source

pub fn retention_conf(&self) -> &Reg<RETENTION_CONF_SPEC>

0xf8 - retention configuration register

Source

pub fn trace_conf(&self) -> &Reg<TRACE_CONF_SPEC>

0xfc - TRACE configuration register

Source

pub fn assist_conf(&self) -> &Reg<ASSIST_CONF_SPEC>

0x100 - ASSIST configuration register

Source

pub fn cache_conf(&self) -> &Reg<CACHE_CONF_SPEC>

0x104 - CACHE configuration register

Source

pub fn modem_apb_conf(&self) -> &Reg<MODEM_APB_CONF_SPEC>

0x108 - MODEM_APB configuration register

Source

pub fn timeout_conf(&self) -> &Reg<TIMEOUT_CONF_SPEC>

0x10c - TIMEOUT configuration register

Source

pub fn sysclk_conf(&self) -> &Reg<SYSCLK_CONF_SPEC>

0x110 - SYSCLK configuration register

Source

pub fn cpu_waiti_conf(&self) -> &Reg<CPU_WAITI_CONF_SPEC>

0x114 - CPU_WAITI configuration register

Source

pub fn cpu_freq_conf(&self) -> &Reg<CPU_FREQ_CONF_SPEC>

0x118 - CPU_FREQ configuration register

Source

pub fn ahb_freq_conf(&self) -> &Reg<AHB_FREQ_CONF_SPEC>

0x11c - AHB_FREQ configuration register

Source

pub fn apb_freq_conf(&self) -> &Reg<APB_FREQ_CONF_SPEC>

0x120 - APB_FREQ configuration register

Source

pub fn sysclk_freq_query_0(&self) -> &Reg<SYSCLK_FREQ_QUERY_0_SPEC>

0x124 - SYSCLK frequency query 0 register

Source

pub fn pll_div_clk_en(&self) -> &Reg<PLL_DIV_CLK_EN_SPEC>

0x128 - SPLL DIV clock-gating configuration register

Source

pub fn ctrl_clk_out_en(&self) -> &Reg<CTRL_CLK_OUT_EN_SPEC>

0x12c - CLK_OUT_EN configuration register

Source

pub fn ctrl_tick_conf(&self) -> &Reg<CTRL_TICK_CONF_SPEC>

0x130 - TICK configuration register

Source

pub fn ctrl_32k_conf(&self) -> &Reg<CTRL_32K_CONF_SPEC>

0x134 - 32KHz clock configuration register

Source

pub fn sram_power_conf(&self) -> &Reg<SRAM_POWER_CONF_SPEC>

0x138 - HP SRAM/ROM configuration register

Source

pub fn reset_event_bypass(&self) -> &Reg<RESET_EVENT_BYPASS_SPEC>

0xff0 - reset event bypass backdoor configuration register

Source

pub fn fpga_debug(&self) -> &Reg<FPGA_DEBUG_SPEC>

0xff4 - fpga debug register

Source

pub fn clock_gate(&self) -> &Reg<CLOCK_GATE_SPEC>

0xff8 - PCR clock gating configure register

Source

pub fn date(&self) -> &Reg<DATE_SPEC>

0xffc - Date register.

Trait Implementations§

Source§

impl Debug for SYSTEM

Source§

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

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

impl Deref for SYSTEM

Source§

type Target = <PCR as Deref>::Target

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<SYSTEM as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for SYSTEM

Source§

fn deref_mut(&mut self) -> &mut <SYSTEM as Deref>::Target

Mutably dereferences the value.
Source§

impl Peripheral for SYSTEM

Source§

type P = SYSTEM

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <SYSTEM as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
Source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl Freeze for SYSTEM

§

impl RefUnwindSafe for SYSTEM

§

impl Send for SYSTEM

§

impl Sync for SYSTEM

§

impl Unpin for SYSTEM

§

impl UnwindSafe for SYSTEM

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.
Source§

impl<'d, T> SystemExt<'d> for T
where T: Peripheral<P = SYSTEM> + 'd,

Source§

type Parts = SystemParts<'d>

Source§

fn split(self) -> <T as SystemExt<'d>>::Parts

Splits the SYSTEM/DPORT peripheral into it’s parts.